listConversations static method

Future<List<Conversation>> listConversations({
  1. int from = 0,
  2. int to = 10,
})

Lists conversations [from, to) in which the current user participates.

Implementation

static Future<List<Conversation>> listConversations({
  int from = 0,
  int to = 10,
}) async {
  MercuryRequest req = await _req();
  req.from = from;
  req.to = to;

  MercuryResponse res = await _client.listConversations(req);
  return res.conversations;
}