ConnectRoomResponse constructor

ConnectRoomResponse({
  1. String? roomId,
  2. RoomInfo? roomInfo,
  3. ProtoRtpCapabilities? routerRTPCapabilities,
  4. Iterable<ConnectRoomResponse_RTCIceServer>? turnServers,
})

Implementation

factory ConnectRoomResponse({
  $core.String? roomId,
  RoomInfo? roomInfo,
  $7.ProtoRtpCapabilities? routerRTPCapabilities,
  $core.Iterable<ConnectRoomResponse_RTCIceServer>? turnServers,
}) {
  final $result = create();
  if (roomId != null) {
    $result.roomId = roomId;
  }
  if (roomInfo != null) {
    $result.roomInfo = roomInfo;
  }
  if (routerRTPCapabilities != null) {
    $result.routerRTPCapabilities = routerRTPCapabilities;
  }
  if (turnServers != null) {
    $result.turnServers.addAll(turnServers);
  }
  return $result;
}