ChatOperationCode.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // ----------------------------------------------------------------------------------------------------------------------
  2. // <summary>The Photon Chat Api enables clients to connect to a chat server and communicate with other clients.</summary>
  3. // <remarks>ChatClient is the main class of this api.</remarks>
  4. // <copyright company="Exit Games GmbH">Photon Chat Api - Copyright (C) 2014 Exit Games GmbH</copyright>
  5. // ----------------------------------------------------------------------------------------------------------------------
  6. namespace Photon.Chat
  7. {
  8. /// <summary>
  9. /// Wraps up codes for operations used internally in Photon Chat. You don't have to use them directly usually.
  10. /// </summary>
  11. public class ChatOperationCode
  12. {
  13. /// <summary>(230) Operation Authenticate.</summary>
  14. public const byte Authenticate = 230;
  15. /// <summary>(0) Operation to subscribe to chat channels.</summary>
  16. public const byte Subscribe = 0;
  17. /// <summary>(1) Operation to unsubscribe from chat channels.</summary>
  18. public const byte Unsubscribe = 1;
  19. /// <summary>(2) Operation to publish a message in a chat channel.</summary>
  20. public const byte Publish = 2;
  21. /// <summary>(3) Operation to send a private message to some other user.</summary>
  22. public const byte SendPrivate = 3;
  23. /// <summary>(4) Not used yet.</summary>
  24. public const byte ChannelHistory = 4;
  25. /// <summary>(5) Set your (client's) status.</summary>
  26. public const byte UpdateStatus = 5;
  27. /// <summary>(6) Add friends the list of friends that should update you of their status.</summary>
  28. public const byte AddFriends = 6;
  29. /// <summary>(7) Remove friends from list of friends that should update you of their status.</summary>
  30. public const byte RemoveFriends = 7;
  31. /// <summary>(8) Operation to set properties of public chat channel or users in public chat channels.</summary>
  32. public const byte SetProperties = 8;
  33. }
  34. }