createMeeting static method

Future<OverMediaResponse> createMeeting(
  1. P2PStream stream, {
  2. required String title,
  3. String? description,
  4. List<String>? tags,
  5. String? hostName,
  6. int? expectedSpeakers,
  7. bool? isPublic,
  8. bool? recordOnStart,
  9. bool? liveStreamOnStart,
  10. bool? allowRequests,
  11. bool? spotlightEnabled,
  12. int? spotlightFeeSats,
  13. int? spotlightDurationSecs,
})

Create a new meeting

Implementation

static Future<OverMediaResponse> createMeeting(
  P2PStream stream, {
  required String title,
  String? description,
  List<String>? tags,
  String? hostName,
  int? expectedSpeakers,
  bool? isPublic,
  bool? recordOnStart,
  bool? liveStreamOnStart,
  bool? allowRequests,
  bool? spotlightEnabled,
  int? spotlightFeeSats,
  int? spotlightDurationSecs,
}) async {
  return _send(stream, {
    'type': 'create_meeting',
    'title': title,
    if (description != null) 'description': description,
    if (tags != null) 'tags': tags,
    if (hostName != null) 'hostName': hostName,
    if (expectedSpeakers != null) 'expectedSpeakers': expectedSpeakers,
    if (isPublic != null) 'isPublic': isPublic,
    if (recordOnStart != null) 'recordOnStart': recordOnStart,
    if (liveStreamOnStart != null) 'liveStreamOnStart': liveStreamOnStart,
    if (allowRequests != null) 'allowRequests': allowRequests,
    if (spotlightEnabled != null) 'spotlightEnabled': spotlightEnabled,
    if (spotlightFeeSats != null) 'spotlightFeeSats': spotlightFeeSats,
    if (spotlightDurationSecs != null)
      'spotlightDurationSecs': spotlightDurationSecs,
  });
}