UserUnreadItemCountGetRequest constructor

UserUnreadItemCountGetRequest(
  1. List<UnreadItemKey> keys, {
  2. String? userId,
})

Implementation

UserUnreadItemCountGetRequest(List<UnreadItemKey> keys, {String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/unread_item_count';
  queryParams = {
    'item_keys': keys.map((e) => unreadItemKeyEnumMap[e]).toList()
  };
}