Fix Channel Post Comments Number

This commit is contained in:
Phenom 2020-04-28 00:51:56 +02:00
parent 738029f96a
commit e8b8119174
4 changed files with 40 additions and 3 deletions

View file

@ -333,6 +333,19 @@ public:
std::vector<RsGxsChannelPost>& posts,
std::vector<RsGxsComment>& comments ) = 0;
/**
* @brief Get channel comments corresponding to the given IDs.
* If the set is empty, nothing is returned.
* @jsonapi{development}
* @param channelId id of the channel of which the content is requested
* @param contentIds ids of requested contents
* @param comments storage for the comments
* @return false if something failed, true otherwhise
*/
virtual bool getChannelComments(const RsGxsGroupId &channelId,
const std::set<RsGxsMessageId> &contentIds,
std::vector<RsGxsComment> &comments) = 0;
/**
* @brief Get channel content summaries
* @jsonapi{development}