// ----------------------------------------------------------------------------------------------------------------------
// The Photon Chat Api enables clients to connect to a chat server and communicate with other clients.
// ChatClient is the main class of this api.
// Photon Chat Api - Copyright (C) 2014 Exit Games GmbH
// ----------------------------------------------------------------------------------------------------------------------
namespace Photon.Chat
{
///
/// Wraps up codes for parameters (in operations and events) used internally in Photon Chat. You don't have to use them directly usually.
///
public class ChatParameterCode
{
/// (0) Array of chat channels.
public const byte Channels = 0;
/// (1) Name of a single chat channel.
public const byte Channel = 1;
/// (2) Array of chat messages.
public const byte Messages = 2;
/// (3) A single chat message.
public const byte Message = 3;
/// (4) Array of names of the users who sent the array of chat messages.
public const byte Senders = 4;
/// (5) Name of a the user who sent a chat message.
public const byte Sender = 5;
/// (6) Not used.
public const byte ChannelUserCount = 6;
/// (225) Name of user to send a (private) message to.The code is used in LoadBalancing and copied over here.
public const byte UserId = 225;
/// (8) Id of a message.
public const byte MsgId = 8;
/// (9) Not used.
public const byte MsgIds = 9;
/// (221) Secret token to identify an authorized user.The code is used in LoadBalancing and copied over here.
public const byte Secret = 221;
/// (15) Subscribe operation result parameter. A bool[] with result per channel.
public const byte SubscribeResults = 15;
/// (10) Status
public const byte Status = 10;
/// (11) Friends
public const byte Friends = 11;
/// (12) SkipMessage is used in SetOnlineStatus and if true, the message is not being broadcast.
public const byte SkipMessage = 12;
/// (14) Number of message to fetch from history. 0: no history. 1 and higher: number of messages in history. -1: all history.
public const byte HistoryLength = 14;
public const byte DebugMessage = 17;
/// (21) WebFlags object for changing behaviour of webhooks from client.
public const byte WebFlags = 21;
/// (22) WellKnown or custom properties of channel or user.
///
/// In event it's always channel properties,
/// in event it's always user properties,
/// in event it's channel properties unless parameter value is not null
///
public const byte Properties = 22;
/// (23) Array of UserIds of users already subscribed to a channel.
/// Used in Subscribe event when PublishSubscribers is enabled.
/// Does not include local user who just subscribed.
/// Maximum length is ( - 1).
public const byte ChannelSubscribers = 23;
/// (24) Optional data sent in ErrorInfo event from Chat WebHooks.
public const byte DebugData = 24;
/// (25) Code for values to be used for "Check And Swap" (CAS) when changing properties.
public const byte ExpectedValues = 25;
/// (26) Code for broadcast parameter of method.
public const byte Broadcast = 26;
///
/// WellKnown and custom user properties.
///
///
/// Used only in event
///
public const byte UserProperties = 28;
///
/// Generated unique reusable room id
///
public const byte UniqueRoomId = 29;
}
}