Envelope constructor
Envelope({
- String? cid,
- Channel? channel,
- ChannelJoin? channelJoin,
- ChannelLeave? channelLeave,
- ChannelMessage? channelMessage,
- ChannelMessageAck? channelMessageAck,
- ChannelMessageSend? channelMessageSend,
- ChannelMessageUpdate? channelMessageUpdate,
- ChannelMessageRemove? channelMessageRemove,
- ChannelPresenceEvent? channelPresenceEvent,
- Error? error,
- Match? match,
- MatchCreate? matchCreate,
- MatchData? matchData,
- MatchDataSend? matchDataSend,
- MatchJoin? matchJoin,
- MatchLeave? matchLeave,
- MatchPresenceEvent? matchPresenceEvent,
- MatchmakerAdd? matchmakerAdd,
- MatchmakerMatched? matchmakerMatched,
- MatchmakerRemove? matchmakerRemove,
- MatchmakerTicket? matchmakerTicket,
- Notifications? notifications,
- Rpc? rpc,
- Status? status,
- StatusFollow? statusFollow,
- StatusPresenceEvent? statusPresenceEvent,
- StatusUnfollow? statusUnfollow,
- StatusUpdate? statusUpdate,
- StreamData? streamData,
- StreamPresenceEvent? streamPresenceEvent,
- Ping? ping,
- Pong? pong,
- Party? party,
- PartyCreate? partyCreate,
- PartyJoin? partyJoin,
- PartyLeave? partyLeave,
- PartyPromote? partyPromote,
- PartyLeader? partyLeader,
- PartyAccept? partyAccept,
- PartyRemove? partyRemove,
- PartyClose? partyClose,
- PartyJoinRequestList? partyJoinRequestList,
- PartyJoinRequest? partyJoinRequest,
- PartyMatchmakerAdd? partyMatchmakerAdd,
- PartyMatchmakerRemove? partyMatchmakerRemove,
- PartyMatchmakerTicket? partyMatchmakerTicket,
- PartyData? partyData,
- PartyDataSend? partyDataSend,
- PartyPresenceEvent? partyPresenceEvent,
Implementation
factory Envelope({
$core.String? cid,
Channel? channel,
ChannelJoin? channelJoin,
ChannelLeave? channelLeave,
$2.ChannelMessage? channelMessage,
ChannelMessageAck? channelMessageAck,
ChannelMessageSend? channelMessageSend,
ChannelMessageUpdate? channelMessageUpdate,
ChannelMessageRemove? channelMessageRemove,
ChannelPresenceEvent? channelPresenceEvent,
Error? error,
Match? match,
MatchCreate? matchCreate,
MatchData? matchData,
MatchDataSend? matchDataSend,
MatchJoin? matchJoin,
MatchLeave? matchLeave,
MatchPresenceEvent? matchPresenceEvent,
MatchmakerAdd? matchmakerAdd,
MatchmakerMatched? matchmakerMatched,
MatchmakerRemove? matchmakerRemove,
MatchmakerTicket? matchmakerTicket,
Notifications? notifications,
$2.Rpc? rpc,
Status? status,
StatusFollow? statusFollow,
StatusPresenceEvent? statusPresenceEvent,
StatusUnfollow? statusUnfollow,
StatusUpdate? statusUpdate,
StreamData? streamData,
StreamPresenceEvent? streamPresenceEvent,
Ping? ping,
Pong? pong,
Party? party,
PartyCreate? partyCreate,
PartyJoin? partyJoin,
PartyLeave? partyLeave,
PartyPromote? partyPromote,
PartyLeader? partyLeader,
PartyAccept? partyAccept,
PartyRemove? partyRemove,
PartyClose? partyClose,
PartyJoinRequestList? partyJoinRequestList,
PartyJoinRequest? partyJoinRequest,
PartyMatchmakerAdd? partyMatchmakerAdd,
PartyMatchmakerRemove? partyMatchmakerRemove,
PartyMatchmakerTicket? partyMatchmakerTicket,
PartyData? partyData,
PartyDataSend? partyDataSend,
PartyPresenceEvent? partyPresenceEvent,
}) {
final _result = create();
if (cid != null) {
_result.cid = cid;
}
if (channel != null) {
_result.channel = channel;
}
if (channelJoin != null) {
_result.channelJoin = channelJoin;
}
if (channelLeave != null) {
_result.channelLeave = channelLeave;
}
if (channelMessage != null) {
_result.channelMessage = channelMessage;
}
if (channelMessageAck != null) {
_result.channelMessageAck = channelMessageAck;
}
if (channelMessageSend != null) {
_result.channelMessageSend = channelMessageSend;
}
if (channelMessageUpdate != null) {
_result.channelMessageUpdate = channelMessageUpdate;
}
if (channelMessageRemove != null) {
_result.channelMessageRemove = channelMessageRemove;
}
if (channelPresenceEvent != null) {
_result.channelPresenceEvent = channelPresenceEvent;
}
if (error != null) {
_result.error = error;
}
if (match != null) {
_result.match = match;
}
if (matchCreate != null) {
_result.matchCreate = matchCreate;
}
if (matchData != null) {
_result.matchData = matchData;
}
if (matchDataSend != null) {
_result.matchDataSend = matchDataSend;
}
if (matchJoin != null) {
_result.matchJoin = matchJoin;
}
if (matchLeave != null) {
_result.matchLeave = matchLeave;
}
if (matchPresenceEvent != null) {
_result.matchPresenceEvent = matchPresenceEvent;
}
if (matchmakerAdd != null) {
_result.matchmakerAdd = matchmakerAdd;
}
if (matchmakerMatched != null) {
_result.matchmakerMatched = matchmakerMatched;
}
if (matchmakerRemove != null) {
_result.matchmakerRemove = matchmakerRemove;
}
if (matchmakerTicket != null) {
_result.matchmakerTicket = matchmakerTicket;
}
if (notifications != null) {
_result.notifications = notifications;
}
if (rpc != null) {
_result.rpc = rpc;
}
if (status != null) {
_result.status = status;
}
if (statusFollow != null) {
_result.statusFollow = statusFollow;
}
if (statusPresenceEvent != null) {
_result.statusPresenceEvent = statusPresenceEvent;
}
if (statusUnfollow != null) {
_result.statusUnfollow = statusUnfollow;
}
if (statusUpdate != null) {
_result.statusUpdate = statusUpdate;
}
if (streamData != null) {
_result.streamData = streamData;
}
if (streamPresenceEvent != null) {
_result.streamPresenceEvent = streamPresenceEvent;
}
if (ping != null) {
_result.ping = ping;
}
if (pong != null) {
_result.pong = pong;
}
if (party != null) {
_result.party = party;
}
if (partyCreate != null) {
_result.partyCreate = partyCreate;
}
if (partyJoin != null) {
_result.partyJoin = partyJoin;
}
if (partyLeave != null) {
_result.partyLeave = partyLeave;
}
if (partyPromote != null) {
_result.partyPromote = partyPromote;
}
if (partyLeader != null) {
_result.partyLeader = partyLeader;
}
if (partyAccept != null) {
_result.partyAccept = partyAccept;
}
if (partyRemove != null) {
_result.partyRemove = partyRemove;
}
if (partyClose != null) {
_result.partyClose = partyClose;
}
if (partyJoinRequestList != null) {
_result.partyJoinRequestList = partyJoinRequestList;
}
if (partyJoinRequest != null) {
_result.partyJoinRequest = partyJoinRequest;
}
if (partyMatchmakerAdd != null) {
_result.partyMatchmakerAdd = partyMatchmakerAdd;
}
if (partyMatchmakerRemove != null) {
_result.partyMatchmakerRemove = partyMatchmakerRemove;
}
if (partyMatchmakerTicket != null) {
_result.partyMatchmakerTicket = partyMatchmakerTicket;
}
if (partyData != null) {
_result.partyData = partyData;
}
if (partyDataSend != null) {
_result.partyDataSend = partyDataSend;
}
if (partyPresenceEvent != null) {
_result.partyPresenceEvent = partyPresenceEvent;
}
return _result;
}