WSEvent constructor

WSEvent({
  1. UserResponse? blockedByUser,
  2. required String callCid,
  3. required DateTime createdAt,
  4. String type = 'user.unbanned',
  5. required UserObject user,
  6. required CallResponse call,
  7. List<MemberResponse> members = const [],
  8. required String hlsPlaylistUrl,
  9. Map<String, List<String>> capabilitiesByRole = const {},
  10. required bool notifyUser,
  11. required String sessionId,
  12. required ReactionResponse reaction,
  13. required CallRecording callRecording,
  14. String? reason,
  15. required bool video,
  16. required String name,
  17. required int anonymousParticipantCount,
  18. Map<String, int> participantsCountByRole = const {},
  19. required CallParticipantResponse participant,
  20. required CallTranscription callTranscription,
  21. required String fromUserId,
  22. List<String> mutedUserIds = const [],
  23. required CallClosedCaption closedCaption,
  24. required String connectionId,
  25. required OwnUserResponse me,
  26. required APIError error,
  27. Map<String, Object> custom = const {},
  28. ReviewQueueItem? item,
  29. Message? message,
  30. String? objectId,
  31. List<String> permissions = const [],
  32. List<OwnCapability> ownCapabilities = const [],
  33. required String channelId,
  34. required String channelType,
  35. required String cid,
  36. required UserObject createdBy,
  37. DateTime? expiration,
  38. required bool shadow,
  39. String? team,
  40. required bool deleteConversationChannels,
  41. required bool hardDelete,
  42. required bool markMessagesDeleted,
  43. String? targetUser,
  44. List<String> targetUsers = const [],
})

Returns a new WSEvent instance.

Implementation

WSEvent({
  this.blockedByUser,
  required this.callCid,
  required this.createdAt,
  this.type = 'user.unbanned',
  required this.user,
  required this.call,
  this.members = const [],
  required this.hlsPlaylistUrl,
  this.capabilitiesByRole = const {},
  required this.notifyUser,
  required this.sessionId,
  required this.reaction,
  required this.callRecording,
  this.reason,
  required this.video,
  required this.name,
  required this.anonymousParticipantCount,
  this.participantsCountByRole = const {},
  required this.participant,
  required this.callTranscription,
  required this.fromUserId,
  this.mutedUserIds = const [],
  required this.closedCaption,
  required this.connectionId,
  required this.me,
  required this.error,
  this.custom = const {},
  this.item,
  this.message,
  this.objectId,
  this.permissions = const [],
  this.ownCapabilities = const [],
  required this.channelId,
  required this.channelType,
  required this.cid,
  required this.createdBy,
  this.expiration,
  required this.shadow,
  this.team,
  required this.deleteConversationChannels,
  required this.hardDelete,
  required this.markMessagesDeleted,
  this.targetUser,
  this.targetUsers = const [],
});