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 CallParticipantResponse participant,
  18. required CallTranscription callTranscription,
  19. required String fromUserId,
  20. List<String> mutedUserIds = const [],
  21. required CallClosedCaption closedCaption,
  22. required String connectionId,
  23. required OwnUser me,
  24. required APIError error,
  25. Map<String, Object> custom = const {},
  26. required String cid,
  27. ReviewQueueItem? item,
  28. Message? message,
  29. String? objectId,
  30. List<String> permissions = const [],
  31. List<OwnCapability> ownCapabilities = const [],
  32. required String channelId,
  33. required String channelType,
  34. required UserObject createdBy,
  35. DateTime? expiration,
  36. required bool shadow,
  37. String? team,
  38. required bool deleteConversationChannels,
  39. required bool hardDelete,
  40. required bool markMessagesDeleted,
  41. String? targetUser,
  42. 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.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 {},
  required this.cid,
  this.item,
  this.message,
  this.objectId,
  this.permissions = const [],
  this.ownCapabilities = const [],
  required this.channelId,
  required this.channelType,
  required this.createdBy,
  this.expiration,
  required this.shadow,
  this.team,
  required this.deleteConversationChannels,
  required this.hardDelete,
  required this.markMessagesDeleted,
  this.targetUser,
  this.targetUsers = const [],
});