Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
565 B
1
Indexable
Never
    override suspend fun postcomment(productid: Int ,reviewer:String ,review:String , email:String  ): Flow<CommentResponse> {
        return flow { emit(apiservice.postcomment(productid , reviewer , review , email)) }

    }

    override suspend fun updatecomment(reviewid: Int, review: String): Flow<CommentResponse> {
        return flow { emit(apiservice.updatecomment(reviewid , review)) }
    }

    override suspend fun deletecomment(reviewid: Int): Flow<CommentResponse> {
        return flow { emit(apiservice.deletecomment(reviewid)) }
    }