Inbox constructor

Inbox({
  1. String id = "",
  2. bool isPrivate = true,
  3. List<String> profileIds = const [],
  4. InboxMessage? lastMessage,
  5. int createdTime = 0,
  6. String handlerMode = 'itzli',
  7. bool needsHuman = false,
  8. String assignedSupportId = '',
  9. int lastHumanAt = 0,
  10. int lastUserAt = 0,
  11. bool isSupportRoom = false,
  12. bool isTeamRoom = false,
  13. int csatScore = 0,
  14. int csatAt = 0,
  15. String supportTopic = '',
  16. int summaryEmailedAt = 0,
  17. InboxRoomKind? roomKind,
  18. String name = '',
  19. String photoUrl = '',
  20. String description = '',
  21. List<String> adminIds = const [],
  22. List<String> pinnedByProfileIds = const [],
  23. List<String> mutedByProfileIds = const [],
  24. String transportMode = 'cloud',
  25. String groupKeyId = '',
  26. String geohashZone = '',
})

Implementation

Inbox({
  this.id = "",
  this.isPrivate = true,
  this.profileIds = const [],
  this.lastMessage,
  this.createdTime = 0,
  this.handlerMode = 'itzli',
  this.needsHuman = false,
  this.assignedSupportId = '',
  this.lastHumanAt = 0,
  this.lastUserAt = 0,
  this.isSupportRoom = false,
  this.isTeamRoom = false,
  this.csatScore = 0,
  this.csatAt = 0,
  this.supportTopic = '',
  this.summaryEmailedAt = 0,
  InboxRoomKind? roomKind,
  this.name = '',
  this.photoUrl = '',
  this.description = '',
  this.adminIds = const [],
  this.pinnedByProfileIds = const [],
  this.mutedByProfileIds = const [],
  this.transportMode = 'cloud',
  this.groupKeyId = '',
  this.geohashZone = '',
}) : roomKind = roomKind ??
          _inferKind(
            rawKind: null,
            isSupportRoom: isSupportRoom,
            isTeamRoom: isTeamRoom,
            profileIds: profileIds,
            id: id,
          );