ChatEventCode.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 internally used constants in Photon Chat events. You don't have to use them directly usually.
  10. /// </summary>
  11. public class ChatEventCode
  12. {
  13. /// <summary>(0) Event code for messages published in public channels.</summary>
  14. public const byte ChatMessages = 0;
  15. /// <summary>(1) Not Used. </summary>
  16. public const byte Users = 1;// List of users or List of changes for List of users
  17. /// <summary>(2) Event code for messages published in private channels</summary>
  18. public const byte PrivateMessage = 2;
  19. /// <summary>(3) Not Used. </summary>
  20. public const byte FriendsList = 3;
  21. /// <summary>(4) Event code for status updates. </summary>
  22. public const byte StatusUpdate = 4;
  23. /// <summary>(5) Event code for subscription acks. </summary>
  24. public const byte Subscribe = 5;
  25. /// <summary>(6) Event code for unsubscribe acks. </summary>
  26. public const byte Unsubscribe = 6;
  27. /// <summary>(7) Event code for properties update. </summary>
  28. public const byte PropertiesChanged = 7;
  29. /// <summary>(8) Event code for new user subscription to a channel where <see cref="ChatChannel.PublishSubscribers"/> is enabled. </summary>
  30. public const byte UserSubscribed = 8;
  31. /// <summary>(9) Event code for when user unsubscribes from a channel where <see cref="ChatChannel.PublishSubscribers"/> is enabled. </summary>
  32. public const byte UserUnsubscribed = 9;
  33. /// <summary>(10) Event code for when the server sends an error to the client. </summary>
  34. /// <remarks> This is currently only used by Chat WebHooks. </remarks>
  35. public const byte ErrorInfo = 10;
  36. }
  37. }