Response constructor
Response({
- Hello? hello,
- ConnectRoomResponse? connectRoomResponse,
- CreateTransportOnClient? createTransportOnClient,
- ProduceResponse? produceResponse,
- ProduceDataResponse? produceDataResponse,
- SyncMeetingStateResponse? syncMeetingStateResponse,
- ConsumeResponse? consumeResponse,
- CloseProducerSuccess? closeProducerSuccess,
- CloseConsumerSuccess? closeConsumerSuccess,
- ConnectTransportResponse? connectTransportResponse,
- RestartTransportIceResponse? restartTransportIceResponse,
- NewPeerJoined? newPeerJoined,
- NewLobbyPeer? newLobbyPeer,
- NewPermissions? newPermissions,
- NewRoomControls? newRoomControls,
- NewPeerRole? newPeerRole,
- ReceiveData? receiveData,
- PeerMetadataUpdated? peerMetadataUpdated,
- RoomMetadataUpdated? roomMetadataUpdated,
- RoomClosedProducers? roomClosedProducers,
- PeerLeft? peerLeft,
- LobbyPeerLeft? lobbyPeerLeft,
- WaitingRoom? waitingRoom,
- Error? error,
- ConsumeDataResponse? consumeDataResponse,
Implementation
factory Response({
Hello? hello,
ConnectRoomResponse? connectRoomResponse,
CreateTransportOnClient? createTransportOnClient,
ProduceResponse? produceResponse,
ProduceDataResponse? produceDataResponse,
SyncMeetingStateResponse? syncMeetingStateResponse,
ConsumeResponse? consumeResponse,
CloseProducerSuccess? closeProducerSuccess,
CloseConsumerSuccess? closeConsumerSuccess,
ConnectTransportResponse? connectTransportResponse,
RestartTransportIceResponse? restartTransportIceResponse,
NewPeerJoined? newPeerJoined,
NewLobbyPeer? newLobbyPeer,
NewPermissions? newPermissions,
NewRoomControls? newRoomControls,
NewPeerRole? newPeerRole,
ReceiveData? receiveData,
PeerMetadataUpdated? peerMetadataUpdated,
RoomMetadataUpdated? roomMetadataUpdated,
RoomClosedProducers? roomClosedProducers,
PeerLeft? peerLeft,
LobbyPeerLeft? lobbyPeerLeft,
WaitingRoom? waitingRoom,
Error? error,
ConsumeDataResponse? consumeDataResponse,
}) {
final $result = create();
if (hello != null) {
$result.hello = hello;
}
if (connectRoomResponse != null) {
$result.connectRoomResponse = connectRoomResponse;
}
if (createTransportOnClient != null) {
$result.createTransportOnClient = createTransportOnClient;
}
if (produceResponse != null) {
$result.produceResponse = produceResponse;
}
if (produceDataResponse != null) {
$result.produceDataResponse = produceDataResponse;
}
if (syncMeetingStateResponse != null) {
$result.syncMeetingStateResponse = syncMeetingStateResponse;
}
if (consumeResponse != null) {
$result.consumeResponse = consumeResponse;
}
if (closeProducerSuccess != null) {
$result.closeProducerSuccess = closeProducerSuccess;
}
if (closeConsumerSuccess != null) {
$result.closeConsumerSuccess = closeConsumerSuccess;
}
if (connectTransportResponse != null) {
$result.connectTransportResponse = connectTransportResponse;
}
if (restartTransportIceResponse != null) {
$result.restartTransportIceResponse = restartTransportIceResponse;
}
if (newPeerJoined != null) {
$result.newPeerJoined = newPeerJoined;
}
if (newLobbyPeer != null) {
$result.newLobbyPeer = newLobbyPeer;
}
if (newPermissions != null) {
$result.newPermissions = newPermissions;
}
if (newRoomControls != null) {
$result.newRoomControls = newRoomControls;
}
if (newPeerRole != null) {
$result.newPeerRole = newPeerRole;
}
if (receiveData != null) {
$result.receiveData = receiveData;
}
if (peerMetadataUpdated != null) {
$result.peerMetadataUpdated = peerMetadataUpdated;
}
if (roomMetadataUpdated != null) {
$result.roomMetadataUpdated = roomMetadataUpdated;
}
if (roomClosedProducers != null) {
$result.roomClosedProducers = roomClosedProducers;
}
if (peerLeft != null) {
$result.peerLeft = peerLeft;
}
if (lobbyPeerLeft != null) {
$result.lobbyPeerLeft = lobbyPeerLeft;
}
if (waitingRoom != null) {
$result.waitingRoom = waitingRoom;
}
if (error != null) {
$result.error = error;
}
if (consumeDataResponse != null) {
$result.consumeDataResponse = consumeDataResponse;
}
return $result;
}