Class SubscribeToChannelsMessage
to allow subscribing / unsubscribing to channels.
Inheritance
System.Object
SubscribeToChannelsMessage
Assembly: LlamaSoftware.Chat.Model.dll
Syntax
public class SubscribeToChannelsMessage : MessageBase
Constructors
SubscribeToChannelsMessage(Boolean)
Declaration
public SubscribeToChannelsMessage(bool Subscribe)
Parameters
Type |
Name |
Description |
System.Boolean |
Subscribe |
|
SubscribeToChannelsMessage(Boolean, ChatChannel)
Declaration
public SubscribeToChannelsMessage(bool Subscribe, ChatChannel ChatChannel)
Parameters
Type |
Name |
Description |
System.Boolean |
Subscribe |
|
ChatChannel |
ChatChannel |
|
SubscribeToChannelsMessage(Boolean, ChatChannel, String)
Declaration
public SubscribeToChannelsMessage(bool Subscribe, ChatChannel ChatChannel, string PlayerId)
Parameters
Type |
Name |
Description |
System.Boolean |
Subscribe |
|
ChatChannel |
ChatChannel |
|
System.String |
PlayerId |
|
SubscribeToChannelsMessage(Boolean, List<ChatChannel>)
Declaration
public SubscribeToChannelsMessage(bool Subscribe, List<ChatChannel> Channels)
Parameters
Type |
Name |
Description |
System.Boolean |
Subscribe |
|
System.Collections.Generic.List<ChatChannel> |
Channels |
|
SubscribeToChannelsMessage(Boolean, List<ChatChannel>, String)
Declaration
public SubscribeToChannelsMessage(bool Subscribe, List<ChatChannel> Channels, string PlayerId)
Parameters
Type |
Name |
Description |
System.Boolean |
Subscribe |
|
System.Collections.Generic.List<ChatChannel> |
Channels |
|
System.String |
PlayerId |
|
Fields
Channels
List of ChatChannels to un/subscribe to
Declaration
public List<ChatChannel> Channels
Field Value
Type |
Description |
System.Collections.Generic.List<ChatChannel> |
|
PlayerId
PlayerId of the player making the request
Declaration
Field Value
Type |
Description |
System.String |
|
Subscribe
If it is subscribe, or unsubscribe message. (true/false respectively).
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Methods
Deserialize(NetworkReader)
Declaration
public override void Deserialize(NetworkReader reader)
Parameters
Type |
Name |
Description |
NetworkReader |
reader |
|
Serialize(NetworkWriter)
Declaration
public override void Serialize(NetworkWriter writer)
Parameters
Type |
Name |
Description |
NetworkWriter |
writer |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|