VideoEvent constructor

VideoEvent({
  1. UserResponse? blockedByUser,
  2. required String callCid,
  3. required DateTime createdAt,
  4. String type = 'user.updated',
  5. required UserEventPayload 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 int durationSeconds,
  21. required CallTranscription callTranscription,
  22. required String fromUserId,
  23. List<String> mutedUserIds = const [],
  24. required CallClosedCaption closedCaption,
  25. required String connectionId,
  26. required OwnUserResponse me,
  27. required APIError error,
  28. Map<String, Object> custom = const {},
  29. String? cid,
  30. DateTime? receivedAt,
  31. List<String> permissions = const [],
  32. List<OwnCapability> ownCapabilities = const [],
})

Returns a new VideoEvent instance.

Implementation

VideoEvent({
  this.blockedByUser,
  required this.callCid,
  required this.createdAt,
  this.type = 'user.updated',
  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.durationSeconds,
  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.cid,
  this.receivedAt,
  this.permissions = const [],
  this.ownCapabilities = const [],
});