WSEvent constructor
WSEvent({
- UserResponse? blockedByUser,
- required String callCid,
- required DateTime createdAt,
- String type = 'user.unbanned',
- required UserObject user,
- required CallResponse call,
- List<
MemberResponse> members = const [], - required String hlsPlaylistUrl,
- Map<
String, List< capabilitiesByRole = const {},String> > - required bool notifyUser,
- required String sessionId,
- required ReactionResponse reaction,
- required CallRecording callRecording,
- String? reason,
- required bool video,
- required String name,
- required int anonymousParticipantCount,
- Map<
String, int> participantsCountByRole = const {}, - required CallParticipantResponse participant,
- required CallTranscription callTranscription,
- required String fromUserId,
- List<
String> mutedUserIds = const [], - required CallClosedCaption closedCaption,
- required String connectionId,
- required OwnUserResponse me,
- required APIError error,
- Map<
String, Object> custom = const {}, - ReviewQueueItem? item,
- Message? message,
- String? objectId,
- List<
String> permissions = const [], - List<
OwnCapability> ownCapabilities = const [], - required String channelId,
- required String channelType,
- required String cid,
- required UserObject createdBy,
- DateTime? expiration,
- required bool shadow,
- String? team,
- required bool deleteConversationChannels,
- required bool hardDelete,
- required bool markMessagesDeleted,
- String? targetUser,
- 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 [],
});