|
|
|
@@ -55,7 +55,7 @@ extension BridgeEventPatterns on BridgeEvent {
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult maybeMap<TResult extends Object?>({TResult Function( BridgeEvent_Connected value)? connected,TResult Function( BridgeEvent_Lost value)? lost,TResult Function( BridgeEvent_Reconnecting value)? reconnecting,TResult Function( BridgeEvent_Disconnected value)? disconnected,TResult Function( BridgeEvent_AudioStarted value)? audioStarted,TResult Function( BridgeEvent_AudioStopped value)? audioStopped,TResult Function( BridgeEvent_SnapshotChanged value)? snapshotChanged,TResult Function( BridgeEvent_PttCapability value)? pttCapability,TResult Function( BridgeEvent_VoiceState value)? voiceState,TResult Function( BridgeEvent_InterruptionState value)? interruptionState,TResult Function( BridgeEvent_PermissionState value)? permissionState,TResult Function( BridgeEvent_ChatMessage value)? chatMessage,TResult Function( BridgeEvent_ServerActivity value)? serverActivity,TResult Function( BridgeEvent_AudioRouteChanged value)? audioRouteChanged,required TResult orElse(),}){
|
|
|
|
|
@optionalTypeArgs TResult maybeMap<TResult extends Object?>({TResult Function( BridgeEvent_Connected value)? connected,TResult Function( BridgeEvent_Lost value)? lost,TResult Function( BridgeEvent_Reconnecting value)? reconnecting,TResult Function( BridgeEvent_Disconnected value)? disconnected,TResult Function( BridgeEvent_AudioStarted value)? audioStarted,TResult Function( BridgeEvent_AudioStopped value)? audioStopped,TResult Function( BridgeEvent_PttCapability value)? pttCapability,TResult Function( BridgeEvent_VoiceState value)? voiceState,TResult Function( BridgeEvent_InterruptionState value)? interruptionState,TResult Function( BridgeEvent_PermissionState value)? permissionState,TResult Function( BridgeEvent_ChatMessage value)? chatMessage,TResult Function( BridgeEvent_ServerActivity value)? serverActivity,TResult Function( BridgeEvent_AudioRouteChanged value)? audioRouteChanged,TResult Function( BridgeEvent_ClientMoved value)? clientMoved,TResult Function( BridgeEvent_ClientJoined value)? clientJoined,TResult Function( BridgeEvent_ClientLeft value)? clientLeft,TResult Function( BridgeEvent_ClientUpdated value)? clientUpdated,TResult Function( BridgeEvent_ChannelAdded value)? channelAdded,TResult Function( BridgeEvent_ChannelRemoved value)? channelRemoved,TResult Function( BridgeEvent_ChannelUpdated value)? channelUpdated,required TResult orElse(),}){
|
|
|
|
|
final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected() when connected != null:
|
|
|
|
@@ -64,15 +64,21 @@ return lost(_that);case BridgeEvent_Reconnecting() when reconnecting != null:
|
|
|
|
|
return reconnecting(_that);case BridgeEvent_Disconnected() when disconnected != null:
|
|
|
|
|
return disconnected(_that);case BridgeEvent_AudioStarted() when audioStarted != null:
|
|
|
|
|
return audioStarted(_that);case BridgeEvent_AudioStopped() when audioStopped != null:
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_SnapshotChanged() when snapshotChanged != null:
|
|
|
|
|
return snapshotChanged(_that);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return pttCapability(_that);case BridgeEvent_VoiceState() when voiceState != null:
|
|
|
|
|
return voiceState(_that);case BridgeEvent_InterruptionState() when interruptionState != null:
|
|
|
|
|
return interruptionState(_that);case BridgeEvent_PermissionState() when permissionState != null:
|
|
|
|
|
return permissionState(_that);case BridgeEvent_ChatMessage() when chatMessage != null:
|
|
|
|
|
return chatMessage(_that);case BridgeEvent_ServerActivity() when serverActivity != null:
|
|
|
|
|
return serverActivity(_that);case BridgeEvent_AudioRouteChanged() when audioRouteChanged != null:
|
|
|
|
|
return audioRouteChanged(_that);case _:
|
|
|
|
|
return audioRouteChanged(_that);case BridgeEvent_ClientMoved() when clientMoved != null:
|
|
|
|
|
return clientMoved(_that);case BridgeEvent_ClientJoined() when clientJoined != null:
|
|
|
|
|
return clientJoined(_that);case BridgeEvent_ClientLeft() when clientLeft != null:
|
|
|
|
|
return clientLeft(_that);case BridgeEvent_ClientUpdated() when clientUpdated != null:
|
|
|
|
|
return clientUpdated(_that);case BridgeEvent_ChannelAdded() when channelAdded != null:
|
|
|
|
|
return channelAdded(_that);case BridgeEvent_ChannelRemoved() when channelRemoved != null:
|
|
|
|
|
return channelRemoved(_that);case BridgeEvent_ChannelUpdated() when channelUpdated != null:
|
|
|
|
|
return channelUpdated(_that);case _:
|
|
|
|
|
return orElse();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@@ -90,7 +96,7 @@ return audioRouteChanged(_that);case _:
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult map<TResult extends Object?>({required TResult Function( BridgeEvent_Connected value) connected,required TResult Function( BridgeEvent_Lost value) lost,required TResult Function( BridgeEvent_Reconnecting value) reconnecting,required TResult Function( BridgeEvent_Disconnected value) disconnected,required TResult Function( BridgeEvent_AudioStarted value) audioStarted,required TResult Function( BridgeEvent_AudioStopped value) audioStopped,required TResult Function( BridgeEvent_SnapshotChanged value) snapshotChanged,required TResult Function( BridgeEvent_PttCapability value) pttCapability,required TResult Function( BridgeEvent_VoiceState value) voiceState,required TResult Function( BridgeEvent_InterruptionState value) interruptionState,required TResult Function( BridgeEvent_PermissionState value) permissionState,required TResult Function( BridgeEvent_ChatMessage value) chatMessage,required TResult Function( BridgeEvent_ServerActivity value) serverActivity,required TResult Function( BridgeEvent_AudioRouteChanged value) audioRouteChanged,}){
|
|
|
|
|
@optionalTypeArgs TResult map<TResult extends Object?>({required TResult Function( BridgeEvent_Connected value) connected,required TResult Function( BridgeEvent_Lost value) lost,required TResult Function( BridgeEvent_Reconnecting value) reconnecting,required TResult Function( BridgeEvent_Disconnected value) disconnected,required TResult Function( BridgeEvent_AudioStarted value) audioStarted,required TResult Function( BridgeEvent_AudioStopped value) audioStopped,required TResult Function( BridgeEvent_PttCapability value) pttCapability,required TResult Function( BridgeEvent_VoiceState value) voiceState,required TResult Function( BridgeEvent_InterruptionState value) interruptionState,required TResult Function( BridgeEvent_PermissionState value) permissionState,required TResult Function( BridgeEvent_ChatMessage value) chatMessage,required TResult Function( BridgeEvent_ServerActivity value) serverActivity,required TResult Function( BridgeEvent_AudioRouteChanged value) audioRouteChanged,required TResult Function( BridgeEvent_ClientMoved value) clientMoved,required TResult Function( BridgeEvent_ClientJoined value) clientJoined,required TResult Function( BridgeEvent_ClientLeft value) clientLeft,required TResult Function( BridgeEvent_ClientUpdated value) clientUpdated,required TResult Function( BridgeEvent_ChannelAdded value) channelAdded,required TResult Function( BridgeEvent_ChannelRemoved value) channelRemoved,required TResult Function( BridgeEvent_ChannelUpdated value) channelUpdated,}){
|
|
|
|
|
final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected():
|
|
|
|
@@ -99,15 +105,21 @@ return lost(_that);case BridgeEvent_Reconnecting():
|
|
|
|
|
return reconnecting(_that);case BridgeEvent_Disconnected():
|
|
|
|
|
return disconnected(_that);case BridgeEvent_AudioStarted():
|
|
|
|
|
return audioStarted(_that);case BridgeEvent_AudioStopped():
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_SnapshotChanged():
|
|
|
|
|
return snapshotChanged(_that);case BridgeEvent_PttCapability():
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_PttCapability():
|
|
|
|
|
return pttCapability(_that);case BridgeEvent_VoiceState():
|
|
|
|
|
return voiceState(_that);case BridgeEvent_InterruptionState():
|
|
|
|
|
return interruptionState(_that);case BridgeEvent_PermissionState():
|
|
|
|
|
return permissionState(_that);case BridgeEvent_ChatMessage():
|
|
|
|
|
return chatMessage(_that);case BridgeEvent_ServerActivity():
|
|
|
|
|
return serverActivity(_that);case BridgeEvent_AudioRouteChanged():
|
|
|
|
|
return audioRouteChanged(_that);}
|
|
|
|
|
return audioRouteChanged(_that);case BridgeEvent_ClientMoved():
|
|
|
|
|
return clientMoved(_that);case BridgeEvent_ClientJoined():
|
|
|
|
|
return clientJoined(_that);case BridgeEvent_ClientLeft():
|
|
|
|
|
return clientLeft(_that);case BridgeEvent_ClientUpdated():
|
|
|
|
|
return clientUpdated(_that);case BridgeEvent_ChannelAdded():
|
|
|
|
|
return channelAdded(_that);case BridgeEvent_ChannelRemoved():
|
|
|
|
|
return channelRemoved(_that);case BridgeEvent_ChannelUpdated():
|
|
|
|
|
return channelUpdated(_that);}
|
|
|
|
|
}
|
|
|
|
|
/// A variant of `map` that fallback to returning `null`.
|
|
|
|
|
///
|
|
|
|
@@ -121,7 +133,7 @@ return audioRouteChanged(_that);}
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>({TResult? Function( BridgeEvent_Connected value)? connected,TResult? Function( BridgeEvent_Lost value)? lost,TResult? Function( BridgeEvent_Reconnecting value)? reconnecting,TResult? Function( BridgeEvent_Disconnected value)? disconnected,TResult? Function( BridgeEvent_AudioStarted value)? audioStarted,TResult? Function( BridgeEvent_AudioStopped value)? audioStopped,TResult? Function( BridgeEvent_SnapshotChanged value)? snapshotChanged,TResult? Function( BridgeEvent_PttCapability value)? pttCapability,TResult? Function( BridgeEvent_VoiceState value)? voiceState,TResult? Function( BridgeEvent_InterruptionState value)? interruptionState,TResult? Function( BridgeEvent_PermissionState value)? permissionState,TResult? Function( BridgeEvent_ChatMessage value)? chatMessage,TResult? Function( BridgeEvent_ServerActivity value)? serverActivity,TResult? Function( BridgeEvent_AudioRouteChanged value)? audioRouteChanged,}){
|
|
|
|
|
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>({TResult? Function( BridgeEvent_Connected value)? connected,TResult? Function( BridgeEvent_Lost value)? lost,TResult? Function( BridgeEvent_Reconnecting value)? reconnecting,TResult? Function( BridgeEvent_Disconnected value)? disconnected,TResult? Function( BridgeEvent_AudioStarted value)? audioStarted,TResult? Function( BridgeEvent_AudioStopped value)? audioStopped,TResult? Function( BridgeEvent_PttCapability value)? pttCapability,TResult? Function( BridgeEvent_VoiceState value)? voiceState,TResult? Function( BridgeEvent_InterruptionState value)? interruptionState,TResult? Function( BridgeEvent_PermissionState value)? permissionState,TResult? Function( BridgeEvent_ChatMessage value)? chatMessage,TResult? Function( BridgeEvent_ServerActivity value)? serverActivity,TResult? Function( BridgeEvent_AudioRouteChanged value)? audioRouteChanged,TResult? Function( BridgeEvent_ClientMoved value)? clientMoved,TResult? Function( BridgeEvent_ClientJoined value)? clientJoined,TResult? Function( BridgeEvent_ClientLeft value)? clientLeft,TResult? Function( BridgeEvent_ClientUpdated value)? clientUpdated,TResult? Function( BridgeEvent_ChannelAdded value)? channelAdded,TResult? Function( BridgeEvent_ChannelRemoved value)? channelRemoved,TResult? Function( BridgeEvent_ChannelUpdated value)? channelUpdated,}){
|
|
|
|
|
final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected() when connected != null:
|
|
|
|
@@ -130,15 +142,21 @@ return lost(_that);case BridgeEvent_Reconnecting() when reconnecting != null:
|
|
|
|
|
return reconnecting(_that);case BridgeEvent_Disconnected() when disconnected != null:
|
|
|
|
|
return disconnected(_that);case BridgeEvent_AudioStarted() when audioStarted != null:
|
|
|
|
|
return audioStarted(_that);case BridgeEvent_AudioStopped() when audioStopped != null:
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_SnapshotChanged() when snapshotChanged != null:
|
|
|
|
|
return snapshotChanged(_that);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return audioStopped(_that);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return pttCapability(_that);case BridgeEvent_VoiceState() when voiceState != null:
|
|
|
|
|
return voiceState(_that);case BridgeEvent_InterruptionState() when interruptionState != null:
|
|
|
|
|
return interruptionState(_that);case BridgeEvent_PermissionState() when permissionState != null:
|
|
|
|
|
return permissionState(_that);case BridgeEvent_ChatMessage() when chatMessage != null:
|
|
|
|
|
return chatMessage(_that);case BridgeEvent_ServerActivity() when serverActivity != null:
|
|
|
|
|
return serverActivity(_that);case BridgeEvent_AudioRouteChanged() when audioRouteChanged != null:
|
|
|
|
|
return audioRouteChanged(_that);case _:
|
|
|
|
|
return audioRouteChanged(_that);case BridgeEvent_ClientMoved() when clientMoved != null:
|
|
|
|
|
return clientMoved(_that);case BridgeEvent_ClientJoined() when clientJoined != null:
|
|
|
|
|
return clientJoined(_that);case BridgeEvent_ClientLeft() when clientLeft != null:
|
|
|
|
|
return clientLeft(_that);case BridgeEvent_ClientUpdated() when clientUpdated != null:
|
|
|
|
|
return clientUpdated(_that);case BridgeEvent_ChannelAdded() when channelAdded != null:
|
|
|
|
|
return channelAdded(_that);case BridgeEvent_ChannelRemoved() when channelRemoved != null:
|
|
|
|
|
return channelRemoved(_that);case BridgeEvent_ChannelUpdated() when channelUpdated != null:
|
|
|
|
|
return channelUpdated(_that);case _:
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@@ -155,7 +173,7 @@ return audioRouteChanged(_that);case _:
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>({TResult Function( String serverName)? connected,TResult Function( String reason)? lost,TResult Function( int attempt, int delaySecs)? reconnecting,TResult Function( String reason)? disconnected,TResult Function()? audioStarted,TResult Function()? audioStopped,TResult Function( int channels, int clients)? snapshotChanged,TResult Function( String level, String backendId, String boundInputClass)? pttCapability,TResult Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode)? voiceState,TResult Function( bool began, bool shouldResume)? interruptionState,TResult Function( String permission, PermissionStateKind state)? permissionState,TResult Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target)? chatMessage,TResult Function( String message)? serverActivity,TResult Function( BridgeAudioRoute route)? audioRouteChanged,required TResult orElse(),}) {final _that = this;
|
|
|
|
|
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>({TResult Function( String serverName)? connected,TResult Function( String reason)? lost,TResult Function( int attempt, int delaySecs)? reconnecting,TResult Function( String reason)? disconnected,TResult Function()? audioStarted,TResult Function()? audioStopped,TResult Function( String level, String backendId, String boundInputClass)? pttCapability,TResult Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode)? voiceState,TResult Function( bool began, bool shouldResume)? interruptionState,TResult Function( String permission, PermissionStateKind state)? permissionState,TResult Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target)? chatMessage,TResult Function( String message)? serverActivity,TResult Function( BridgeAudioRoute route)? audioRouteChanged,TResult Function( BigInt clientId, BigInt newChannelId)? clientMoved,TResult Function( BigInt clientId, BigInt channelId, String name, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted)? clientJoined,TResult Function( BigInt clientId, String name)? clientLeft,TResult Function( BigInt clientId, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted)? clientUpdated,TResult Function( BigInt id, BigInt parent, String name, PlatformInt64 order, bool hasPassword, int? neededTalkPower)? channelAdded,TResult Function( BigInt id)? channelRemoved,TResult Function( BigInt id, String name, bool hasPassword, int? neededTalkPower)? channelUpdated,required TResult orElse(),}) {final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected() when connected != null:
|
|
|
|
|
return connected(_that.serverName);case BridgeEvent_Lost() when lost != null:
|
|
|
|
@@ -163,15 +181,21 @@ return lost(_that.reason);case BridgeEvent_Reconnecting() when reconnecting != n
|
|
|
|
|
return reconnecting(_that.attempt,_that.delaySecs);case BridgeEvent_Disconnected() when disconnected != null:
|
|
|
|
|
return disconnected(_that.reason);case BridgeEvent_AudioStarted() when audioStarted != null:
|
|
|
|
|
return audioStarted();case BridgeEvent_AudioStopped() when audioStopped != null:
|
|
|
|
|
return audioStopped();case BridgeEvent_SnapshotChanged() when snapshotChanged != null:
|
|
|
|
|
return snapshotChanged(_that.channels,_that.clients);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return audioStopped();case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return pttCapability(_that.level,_that.backendId,_that.boundInputClass);case BridgeEvent_VoiceState() when voiceState != null:
|
|
|
|
|
return voiceState(_that.inChannel,_that.transmitMode,_that.mute,_that.releaseTailMs,_that.currentChannelId,_that.pendingTargetChannelId,_that.canJoin,_that.canLeave,_that.joinSyncState,_that.joinErrorCode);case BridgeEvent_InterruptionState() when interruptionState != null:
|
|
|
|
|
return interruptionState(_that.began,_that.shouldResume);case BridgeEvent_PermissionState() when permissionState != null:
|
|
|
|
|
return permissionState(_that.permission,_that.state);case BridgeEvent_ChatMessage() when chatMessage != null:
|
|
|
|
|
return chatMessage(_that.senderId,_that.senderName,_that.message,_that.target);case BridgeEvent_ServerActivity() when serverActivity != null:
|
|
|
|
|
return serverActivity(_that.message);case BridgeEvent_AudioRouteChanged() when audioRouteChanged != null:
|
|
|
|
|
return audioRouteChanged(_that.route);case _:
|
|
|
|
|
return audioRouteChanged(_that.route);case BridgeEvent_ClientMoved() when clientMoved != null:
|
|
|
|
|
return clientMoved(_that.clientId,_that.newChannelId);case BridgeEvent_ClientJoined() when clientJoined != null:
|
|
|
|
|
return clientJoined(_that.clientId,_that.channelId,_that.name,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ClientLeft() when clientLeft != null:
|
|
|
|
|
return clientLeft(_that.clientId,_that.name);case BridgeEvent_ClientUpdated() when clientUpdated != null:
|
|
|
|
|
return clientUpdated(_that.clientId,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ChannelAdded() when channelAdded != null:
|
|
|
|
|
return channelAdded(_that.id,_that.parent,_that.name,_that.order,_that.hasPassword,_that.neededTalkPower);case BridgeEvent_ChannelRemoved() when channelRemoved != null:
|
|
|
|
|
return channelRemoved(_that.id);case BridgeEvent_ChannelUpdated() when channelUpdated != null:
|
|
|
|
|
return channelUpdated(_that.id,_that.name,_that.hasPassword,_that.neededTalkPower);case _:
|
|
|
|
|
return orElse();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@@ -189,7 +213,7 @@ return audioRouteChanged(_that.route);case _:
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult when<TResult extends Object?>({required TResult Function( String serverName) connected,required TResult Function( String reason) lost,required TResult Function( int attempt, int delaySecs) reconnecting,required TResult Function( String reason) disconnected,required TResult Function() audioStarted,required TResult Function() audioStopped,required TResult Function( int channels, int clients) snapshotChanged,required TResult Function( String level, String backendId, String boundInputClass) pttCapability,required TResult Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode) voiceState,required TResult Function( bool began, bool shouldResume) interruptionState,required TResult Function( String permission, PermissionStateKind state) permissionState,required TResult Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target) chatMessage,required TResult Function( String message) serverActivity,required TResult Function( BridgeAudioRoute route) audioRouteChanged,}) {final _that = this;
|
|
|
|
|
@optionalTypeArgs TResult when<TResult extends Object?>({required TResult Function( String serverName) connected,required TResult Function( String reason) lost,required TResult Function( int attempt, int delaySecs) reconnecting,required TResult Function( String reason) disconnected,required TResult Function() audioStarted,required TResult Function() audioStopped,required TResult Function( String level, String backendId, String boundInputClass) pttCapability,required TResult Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode) voiceState,required TResult Function( bool began, bool shouldResume) interruptionState,required TResult Function( String permission, PermissionStateKind state) permissionState,required TResult Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target) chatMessage,required TResult Function( String message) serverActivity,required TResult Function( BridgeAudioRoute route) audioRouteChanged,required TResult Function( BigInt clientId, BigInt newChannelId) clientMoved,required TResult Function( BigInt clientId, BigInt channelId, String name, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted) clientJoined,required TResult Function( BigInt clientId, String name) clientLeft,required TResult Function( BigInt clientId, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted) clientUpdated,required TResult Function( BigInt id, BigInt parent, String name, PlatformInt64 order, bool hasPassword, int? neededTalkPower) channelAdded,required TResult Function( BigInt id) channelRemoved,required TResult Function( BigInt id, String name, bool hasPassword, int? neededTalkPower) channelUpdated,}) {final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected():
|
|
|
|
|
return connected(_that.serverName);case BridgeEvent_Lost():
|
|
|
|
@@ -197,15 +221,21 @@ return lost(_that.reason);case BridgeEvent_Reconnecting():
|
|
|
|
|
return reconnecting(_that.attempt,_that.delaySecs);case BridgeEvent_Disconnected():
|
|
|
|
|
return disconnected(_that.reason);case BridgeEvent_AudioStarted():
|
|
|
|
|
return audioStarted();case BridgeEvent_AudioStopped():
|
|
|
|
|
return audioStopped();case BridgeEvent_SnapshotChanged():
|
|
|
|
|
return snapshotChanged(_that.channels,_that.clients);case BridgeEvent_PttCapability():
|
|
|
|
|
return audioStopped();case BridgeEvent_PttCapability():
|
|
|
|
|
return pttCapability(_that.level,_that.backendId,_that.boundInputClass);case BridgeEvent_VoiceState():
|
|
|
|
|
return voiceState(_that.inChannel,_that.transmitMode,_that.mute,_that.releaseTailMs,_that.currentChannelId,_that.pendingTargetChannelId,_that.canJoin,_that.canLeave,_that.joinSyncState,_that.joinErrorCode);case BridgeEvent_InterruptionState():
|
|
|
|
|
return interruptionState(_that.began,_that.shouldResume);case BridgeEvent_PermissionState():
|
|
|
|
|
return permissionState(_that.permission,_that.state);case BridgeEvent_ChatMessage():
|
|
|
|
|
return chatMessage(_that.senderId,_that.senderName,_that.message,_that.target);case BridgeEvent_ServerActivity():
|
|
|
|
|
return serverActivity(_that.message);case BridgeEvent_AudioRouteChanged():
|
|
|
|
|
return audioRouteChanged(_that.route);}
|
|
|
|
|
return audioRouteChanged(_that.route);case BridgeEvent_ClientMoved():
|
|
|
|
|
return clientMoved(_that.clientId,_that.newChannelId);case BridgeEvent_ClientJoined():
|
|
|
|
|
return clientJoined(_that.clientId,_that.channelId,_that.name,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ClientLeft():
|
|
|
|
|
return clientLeft(_that.clientId,_that.name);case BridgeEvent_ClientUpdated():
|
|
|
|
|
return clientUpdated(_that.clientId,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ChannelAdded():
|
|
|
|
|
return channelAdded(_that.id,_that.parent,_that.name,_that.order,_that.hasPassword,_that.neededTalkPower);case BridgeEvent_ChannelRemoved():
|
|
|
|
|
return channelRemoved(_that.id);case BridgeEvent_ChannelUpdated():
|
|
|
|
|
return channelUpdated(_that.id,_that.name,_that.hasPassword,_that.neededTalkPower);}
|
|
|
|
|
}
|
|
|
|
|
/// A variant of `when` that fallback to returning `null`
|
|
|
|
|
///
|
|
|
|
@@ -219,7 +249,7 @@ return audioRouteChanged(_that.route);}
|
|
|
|
|
/// }
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>({TResult? Function( String serverName)? connected,TResult? Function( String reason)? lost,TResult? Function( int attempt, int delaySecs)? reconnecting,TResult? Function( String reason)? disconnected,TResult? Function()? audioStarted,TResult? Function()? audioStopped,TResult? Function( int channels, int clients)? snapshotChanged,TResult? Function( String level, String backendId, String boundInputClass)? pttCapability,TResult? Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode)? voiceState,TResult? Function( bool began, bool shouldResume)? interruptionState,TResult? Function( String permission, PermissionStateKind state)? permissionState,TResult? Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target)? chatMessage,TResult? Function( String message)? serverActivity,TResult? Function( BridgeAudioRoute route)? audioRouteChanged,}) {final _that = this;
|
|
|
|
|
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>({TResult? Function( String serverName)? connected,TResult? Function( String reason)? lost,TResult? Function( int attempt, int delaySecs)? reconnecting,TResult? Function( String reason)? disconnected,TResult? Function()? audioStarted,TResult? Function()? audioStopped,TResult? Function( String level, String backendId, String boundInputClass)? pttCapability,TResult? Function( bool inChannel, BridgeTransmitMode transmitMode, bool mute, int releaseTailMs, BigInt? currentChannelId, BigInt? pendingTargetChannelId, bool canJoin, bool canLeave, BridgeVoiceJoinSyncState joinSyncState, BridgeVoiceJoinErrorCode? joinErrorCode)? voiceState,TResult? Function( bool began, bool shouldResume)? interruptionState,TResult? Function( String permission, PermissionStateKind state)? permissionState,TResult? Function( BigInt senderId, String senderName, String message, BridgeMessageTarget target)? chatMessage,TResult? Function( String message)? serverActivity,TResult? Function( BridgeAudioRoute route)? audioRouteChanged,TResult? Function( BigInt clientId, BigInt newChannelId)? clientMoved,TResult? Function( BigInt clientId, BigInt channelId, String name, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted)? clientJoined,TResult? Function( BigInt clientId, String name)? clientLeft,TResult? Function( BigInt clientId, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted)? clientUpdated,TResult? Function( BigInt id, BigInt parent, String name, PlatformInt64 order, bool hasPassword, int? neededTalkPower)? channelAdded,TResult? Function( BigInt id)? channelRemoved,TResult? Function( BigInt id, String name, bool hasPassword, int? neededTalkPower)? channelUpdated,}) {final _that = this;
|
|
|
|
|
switch (_that) {
|
|
|
|
|
case BridgeEvent_Connected() when connected != null:
|
|
|
|
|
return connected(_that.serverName);case BridgeEvent_Lost() when lost != null:
|
|
|
|
@@ -227,15 +257,21 @@ return lost(_that.reason);case BridgeEvent_Reconnecting() when reconnecting != n
|
|
|
|
|
return reconnecting(_that.attempt,_that.delaySecs);case BridgeEvent_Disconnected() when disconnected != null:
|
|
|
|
|
return disconnected(_that.reason);case BridgeEvent_AudioStarted() when audioStarted != null:
|
|
|
|
|
return audioStarted();case BridgeEvent_AudioStopped() when audioStopped != null:
|
|
|
|
|
return audioStopped();case BridgeEvent_SnapshotChanged() when snapshotChanged != null:
|
|
|
|
|
return snapshotChanged(_that.channels,_that.clients);case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return audioStopped();case BridgeEvent_PttCapability() when pttCapability != null:
|
|
|
|
|
return pttCapability(_that.level,_that.backendId,_that.boundInputClass);case BridgeEvent_VoiceState() when voiceState != null:
|
|
|
|
|
return voiceState(_that.inChannel,_that.transmitMode,_that.mute,_that.releaseTailMs,_that.currentChannelId,_that.pendingTargetChannelId,_that.canJoin,_that.canLeave,_that.joinSyncState,_that.joinErrorCode);case BridgeEvent_InterruptionState() when interruptionState != null:
|
|
|
|
|
return interruptionState(_that.began,_that.shouldResume);case BridgeEvent_PermissionState() when permissionState != null:
|
|
|
|
|
return permissionState(_that.permission,_that.state);case BridgeEvent_ChatMessage() when chatMessage != null:
|
|
|
|
|
return chatMessage(_that.senderId,_that.senderName,_that.message,_that.target);case BridgeEvent_ServerActivity() when serverActivity != null:
|
|
|
|
|
return serverActivity(_that.message);case BridgeEvent_AudioRouteChanged() when audioRouteChanged != null:
|
|
|
|
|
return audioRouteChanged(_that.route);case _:
|
|
|
|
|
return audioRouteChanged(_that.route);case BridgeEvent_ClientMoved() when clientMoved != null:
|
|
|
|
|
return clientMoved(_that.clientId,_that.newChannelId);case BridgeEvent_ClientJoined() when clientJoined != null:
|
|
|
|
|
return clientJoined(_that.clientId,_that.channelId,_that.name,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ClientLeft() when clientLeft != null:
|
|
|
|
|
return clientLeft(_that.clientId,_that.name);case BridgeEvent_ClientUpdated() when clientUpdated != null:
|
|
|
|
|
return clientUpdated(_that.clientId,_that.inputMuted,_that.outputMuted,_that.isServerQuery,_that.talkPower,_that.talkPowerGranted);case BridgeEvent_ChannelAdded() when channelAdded != null:
|
|
|
|
|
return channelAdded(_that.id,_that.parent,_that.name,_that.order,_that.hasPassword,_that.neededTalkPower);case BridgeEvent_ChannelRemoved() when channelRemoved != null:
|
|
|
|
|
return channelRemoved(_that.id);case BridgeEvent_ChannelUpdated() when channelUpdated != null:
|
|
|
|
|
return channelUpdated(_that.id,_that.name,_that.hasPassword,_that.neededTalkPower);case _:
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@@ -578,76 +614,6 @@ String toString() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_SnapshotChanged extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_SnapshotChanged({required this.channels, required this.clients}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Latest channel count.
|
|
|
|
|
final int channels;
|
|
|
|
|
/// Latest client count.
|
|
|
|
|
final int clients;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_SnapshotChangedCopyWith<BridgeEvent_SnapshotChanged> get copyWith => _$BridgeEvent_SnapshotChangedCopyWithImpl<BridgeEvent_SnapshotChanged>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_SnapshotChanged&&(identical(other.channels, channels) || other.channels == channels)&&(identical(other.clients, clients) || other.clients == clients));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,channels,clients);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.snapshotChanged(channels: $channels, clients: $clients)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_SnapshotChangedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_SnapshotChangedCopyWith(BridgeEvent_SnapshotChanged value, $Res Function(BridgeEvent_SnapshotChanged) _then) = _$BridgeEvent_SnapshotChangedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
int channels, int clients
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_SnapshotChangedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_SnapshotChangedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_SnapshotChangedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_SnapshotChanged _self;
|
|
|
|
|
final $Res Function(BridgeEvent_SnapshotChanged) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? channels = null,Object? clients = null,}) {
|
|
|
|
|
return _then(BridgeEvent_SnapshotChanged(
|
|
|
|
|
channels: null == channels ? _self.channels : channels // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,clients: null == clients ? _self.clients : clients // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1118,7 +1084,6 @@ class BridgeEvent_AudioRouteChanged extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_AudioRouteChanged({required this.route}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// The new audio route.
|
|
|
|
|
final BridgeAudioRoute route;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
@@ -1176,6 +1141,512 @@ as BridgeAudioRoute,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ClientMoved extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ClientMoved({required this.clientId, required this.newChannelId}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt clientId;
|
|
|
|
|
final BigInt newChannelId;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ClientMovedCopyWith<BridgeEvent_ClientMoved> get copyWith => _$BridgeEvent_ClientMovedCopyWithImpl<BridgeEvent_ClientMoved>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ClientMoved&&(identical(other.clientId, clientId) || other.clientId == clientId)&&(identical(other.newChannelId, newChannelId) || other.newChannelId == newChannelId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,clientId,newChannelId);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.clientMoved(clientId: $clientId, newChannelId: $newChannelId)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ClientMovedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ClientMovedCopyWith(BridgeEvent_ClientMoved value, $Res Function(BridgeEvent_ClientMoved) _then) = _$BridgeEvent_ClientMovedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt clientId, BigInt newChannelId
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ClientMovedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ClientMovedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ClientMovedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ClientMoved _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ClientMoved) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? clientId = null,Object? newChannelId = null,}) {
|
|
|
|
|
return _then(BridgeEvent_ClientMoved(
|
|
|
|
|
clientId: null == clientId ? _self.clientId : clientId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,newChannelId: null == newChannelId ? _self.newChannelId : newChannelId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ClientJoined extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ClientJoined({required this.clientId, required this.channelId, required this.name, required this.inputMuted, required this.outputMuted, required this.isServerQuery, required this.talkPower, required this.talkPowerGranted}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt clientId;
|
|
|
|
|
final BigInt channelId;
|
|
|
|
|
final String name;
|
|
|
|
|
final bool inputMuted;
|
|
|
|
|
final bool outputMuted;
|
|
|
|
|
final bool isServerQuery;
|
|
|
|
|
final int talkPower;
|
|
|
|
|
final bool talkPowerGranted;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ClientJoinedCopyWith<BridgeEvent_ClientJoined> get copyWith => _$BridgeEvent_ClientJoinedCopyWithImpl<BridgeEvent_ClientJoined>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ClientJoined&&(identical(other.clientId, clientId) || other.clientId == clientId)&&(identical(other.channelId, channelId) || other.channelId == channelId)&&(identical(other.name, name) || other.name == name)&&(identical(other.inputMuted, inputMuted) || other.inputMuted == inputMuted)&&(identical(other.outputMuted, outputMuted) || other.outputMuted == outputMuted)&&(identical(other.isServerQuery, isServerQuery) || other.isServerQuery == isServerQuery)&&(identical(other.talkPower, talkPower) || other.talkPower == talkPower)&&(identical(other.talkPowerGranted, talkPowerGranted) || other.talkPowerGranted == talkPowerGranted));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,clientId,channelId,name,inputMuted,outputMuted,isServerQuery,talkPower,talkPowerGranted);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.clientJoined(clientId: $clientId, channelId: $channelId, name: $name, inputMuted: $inputMuted, outputMuted: $outputMuted, isServerQuery: $isServerQuery, talkPower: $talkPower, talkPowerGranted: $talkPowerGranted)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ClientJoinedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ClientJoinedCopyWith(BridgeEvent_ClientJoined value, $Res Function(BridgeEvent_ClientJoined) _then) = _$BridgeEvent_ClientJoinedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt clientId, BigInt channelId, String name, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ClientJoinedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ClientJoinedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ClientJoinedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ClientJoined _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ClientJoined) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? clientId = null,Object? channelId = null,Object? name = null,Object? inputMuted = null,Object? outputMuted = null,Object? isServerQuery = null,Object? talkPower = null,Object? talkPowerGranted = null,}) {
|
|
|
|
|
return _then(BridgeEvent_ClientJoined(
|
|
|
|
|
clientId: null == clientId ? _self.clientId : clientId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,channelId: null == channelId ? _self.channelId : channelId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,inputMuted: null == inputMuted ? _self.inputMuted : inputMuted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,outputMuted: null == outputMuted ? _self.outputMuted : outputMuted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,isServerQuery: null == isServerQuery ? _self.isServerQuery : isServerQuery // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,talkPower: null == talkPower ? _self.talkPower : talkPower // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,talkPowerGranted: null == talkPowerGranted ? _self.talkPowerGranted : talkPowerGranted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ClientLeft extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ClientLeft({required this.clientId, required this.name}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt clientId;
|
|
|
|
|
final String name;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ClientLeftCopyWith<BridgeEvent_ClientLeft> get copyWith => _$BridgeEvent_ClientLeftCopyWithImpl<BridgeEvent_ClientLeft>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ClientLeft&&(identical(other.clientId, clientId) || other.clientId == clientId)&&(identical(other.name, name) || other.name == name));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,clientId,name);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.clientLeft(clientId: $clientId, name: $name)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ClientLeftCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ClientLeftCopyWith(BridgeEvent_ClientLeft value, $Res Function(BridgeEvent_ClientLeft) _then) = _$BridgeEvent_ClientLeftCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt clientId, String name
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ClientLeftCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ClientLeftCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ClientLeftCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ClientLeft _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ClientLeft) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? clientId = null,Object? name = null,}) {
|
|
|
|
|
return _then(BridgeEvent_ClientLeft(
|
|
|
|
|
clientId: null == clientId ? _self.clientId : clientId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ClientUpdated extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ClientUpdated({required this.clientId, required this.inputMuted, required this.outputMuted, required this.isServerQuery, required this.talkPower, required this.talkPowerGranted}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt clientId;
|
|
|
|
|
final bool inputMuted;
|
|
|
|
|
final bool outputMuted;
|
|
|
|
|
final bool isServerQuery;
|
|
|
|
|
final int talkPower;
|
|
|
|
|
final bool talkPowerGranted;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ClientUpdatedCopyWith<BridgeEvent_ClientUpdated> get copyWith => _$BridgeEvent_ClientUpdatedCopyWithImpl<BridgeEvent_ClientUpdated>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ClientUpdated&&(identical(other.clientId, clientId) || other.clientId == clientId)&&(identical(other.inputMuted, inputMuted) || other.inputMuted == inputMuted)&&(identical(other.outputMuted, outputMuted) || other.outputMuted == outputMuted)&&(identical(other.isServerQuery, isServerQuery) || other.isServerQuery == isServerQuery)&&(identical(other.talkPower, talkPower) || other.talkPower == talkPower)&&(identical(other.talkPowerGranted, talkPowerGranted) || other.talkPowerGranted == talkPowerGranted));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,clientId,inputMuted,outputMuted,isServerQuery,talkPower,talkPowerGranted);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.clientUpdated(clientId: $clientId, inputMuted: $inputMuted, outputMuted: $outputMuted, isServerQuery: $isServerQuery, talkPower: $talkPower, talkPowerGranted: $talkPowerGranted)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ClientUpdatedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ClientUpdatedCopyWith(BridgeEvent_ClientUpdated value, $Res Function(BridgeEvent_ClientUpdated) _then) = _$BridgeEvent_ClientUpdatedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt clientId, bool inputMuted, bool outputMuted, bool isServerQuery, int talkPower, bool talkPowerGranted
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ClientUpdatedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ClientUpdatedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ClientUpdatedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ClientUpdated _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ClientUpdated) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? clientId = null,Object? inputMuted = null,Object? outputMuted = null,Object? isServerQuery = null,Object? talkPower = null,Object? talkPowerGranted = null,}) {
|
|
|
|
|
return _then(BridgeEvent_ClientUpdated(
|
|
|
|
|
clientId: null == clientId ? _self.clientId : clientId // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,inputMuted: null == inputMuted ? _self.inputMuted : inputMuted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,outputMuted: null == outputMuted ? _self.outputMuted : outputMuted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,isServerQuery: null == isServerQuery ? _self.isServerQuery : isServerQuery // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,talkPower: null == talkPower ? _self.talkPower : talkPower // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,talkPowerGranted: null == talkPowerGranted ? _self.talkPowerGranted : talkPowerGranted // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ChannelAdded extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ChannelAdded({required this.id, required this.parent, required this.name, required this.order, required this.hasPassword, this.neededTalkPower}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt id;
|
|
|
|
|
final BigInt parent;
|
|
|
|
|
final String name;
|
|
|
|
|
final PlatformInt64 order;
|
|
|
|
|
final bool hasPassword;
|
|
|
|
|
final int? neededTalkPower;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ChannelAddedCopyWith<BridgeEvent_ChannelAdded> get copyWith => _$BridgeEvent_ChannelAddedCopyWithImpl<BridgeEvent_ChannelAdded>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ChannelAdded&&(identical(other.id, id) || other.id == id)&&(identical(other.parent, parent) || other.parent == parent)&&(identical(other.name, name) || other.name == name)&&(identical(other.order, order) || other.order == order)&&(identical(other.hasPassword, hasPassword) || other.hasPassword == hasPassword)&&(identical(other.neededTalkPower, neededTalkPower) || other.neededTalkPower == neededTalkPower));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,id,parent,name,order,hasPassword,neededTalkPower);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.channelAdded(id: $id, parent: $parent, name: $name, order: $order, hasPassword: $hasPassword, neededTalkPower: $neededTalkPower)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ChannelAddedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ChannelAddedCopyWith(BridgeEvent_ChannelAdded value, $Res Function(BridgeEvent_ChannelAdded) _then) = _$BridgeEvent_ChannelAddedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt id, BigInt parent, String name, PlatformInt64 order, bool hasPassword, int? neededTalkPower
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ChannelAddedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ChannelAddedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ChannelAddedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ChannelAdded _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ChannelAdded) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? id = null,Object? parent = null,Object? name = null,Object? order = null,Object? hasPassword = null,Object? neededTalkPower = freezed,}) {
|
|
|
|
|
return _then(BridgeEvent_ChannelAdded(
|
|
|
|
|
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,parent: null == parent ? _self.parent : parent // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,order: null == order ? _self.order : order // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as PlatformInt64,hasPassword: null == hasPassword ? _self.hasPassword : hasPassword // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,neededTalkPower: freezed == neededTalkPower ? _self.neededTalkPower : neededTalkPower // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int?,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ChannelRemoved extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ChannelRemoved({required this.id}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt id;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ChannelRemovedCopyWith<BridgeEvent_ChannelRemoved> get copyWith => _$BridgeEvent_ChannelRemovedCopyWithImpl<BridgeEvent_ChannelRemoved>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ChannelRemoved&&(identical(other.id, id) || other.id == id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,id);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.channelRemoved(id: $id)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ChannelRemovedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ChannelRemovedCopyWith(BridgeEvent_ChannelRemoved value, $Res Function(BridgeEvent_ChannelRemoved) _then) = _$BridgeEvent_ChannelRemovedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt id
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ChannelRemovedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ChannelRemovedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ChannelRemovedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ChannelRemoved _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ChannelRemoved) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? id = null,}) {
|
|
|
|
|
return _then(BridgeEvent_ChannelRemoved(
|
|
|
|
|
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BridgeEvent_ChannelUpdated extends BridgeEvent {
|
|
|
|
|
const BridgeEvent_ChannelUpdated({required this.id, required this.name, required this.hasPassword, this.neededTalkPower}): super._();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final BigInt id;
|
|
|
|
|
final String name;
|
|
|
|
|
final bool hasPassword;
|
|
|
|
|
final int? neededTalkPower;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
|
@pragma('vm:prefer-inline')
|
|
|
|
|
$BridgeEvent_ChannelUpdatedCopyWith<BridgeEvent_ChannelUpdated> get copyWith => _$BridgeEvent_ChannelUpdatedCopyWithImpl<BridgeEvent_ChannelUpdated>(this, _$identity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is BridgeEvent_ChannelUpdated&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.hasPassword, hasPassword) || other.hasPassword == hasPassword)&&(identical(other.neededTalkPower, neededTalkPower) || other.neededTalkPower == neededTalkPower));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(runtimeType,id,name,hasPassword,neededTalkPower);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'BridgeEvent.channelUpdated(id: $id, name: $name, hasPassword: $hasPassword, neededTalkPower: $neededTalkPower)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract mixin class $BridgeEvent_ChannelUpdatedCopyWith<$Res> implements $BridgeEventCopyWith<$Res> {
|
|
|
|
|
factory $BridgeEvent_ChannelUpdatedCopyWith(BridgeEvent_ChannelUpdated value, $Res Function(BridgeEvent_ChannelUpdated) _then) = _$BridgeEvent_ChannelUpdatedCopyWithImpl;
|
|
|
|
|
@useResult
|
|
|
|
|
$Res call({
|
|
|
|
|
BigInt id, String name, bool hasPassword, int? neededTalkPower
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class _$BridgeEvent_ChannelUpdatedCopyWithImpl<$Res>
|
|
|
|
|
implements $BridgeEvent_ChannelUpdatedCopyWith<$Res> {
|
|
|
|
|
_$BridgeEvent_ChannelUpdatedCopyWithImpl(this._self, this._then);
|
|
|
|
|
|
|
|
|
|
final BridgeEvent_ChannelUpdated _self;
|
|
|
|
|
final $Res Function(BridgeEvent_ChannelUpdated) _then;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of BridgeEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
@pragma('vm:prefer-inline') $Res call({Object? id = null,Object? name = null,Object? hasPassword = null,Object? neededTalkPower = freezed,}) {
|
|
|
|
|
return _then(BridgeEvent_ChannelUpdated(
|
|
|
|
|
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as BigInt,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as String,hasPassword: null == hasPassword ? _self.hasPassword : hasPassword // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,neededTalkPower: freezed == neededTalkPower ? _self.neededTalkPower : neededTalkPower // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int?,
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|