ChatState.cs 2.0 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>Possible states for a Chat Client.</summary>
  9. public enum ChatState
  10. {
  11. /// <summary>Peer is created but not used yet.</summary>
  12. Uninitialized,
  13. /// <summary>Connecting to name server.</summary>
  14. ConnectingToNameServer,
  15. /// <summary>Connected to name server.</summary>
  16. ConnectedToNameServer,
  17. /// <summary>Authenticating on current server.</summary>
  18. Authenticating,
  19. /// <summary>Finished authentication on current server.</summary>
  20. Authenticated,
  21. /// <summary>Disconnecting from name server. This is usually a transition from name server to frontend server.</summary>
  22. DisconnectingFromNameServer,
  23. /// <summary>Connecting to frontend server.</summary>
  24. ConnectingToFrontEnd,
  25. /// <summary>Connected to frontend server.</summary>
  26. ConnectedToFrontEnd,
  27. /// <summary>Disconnecting from frontend server.</summary>
  28. DisconnectingFromFrontEnd,
  29. /// <summary>Currently not used.</summary>
  30. QueuedComingFromFrontEnd,
  31. /// <summary>The client disconnects (from any server).</summary>
  32. Disconnecting,
  33. /// <summary>The client is no longer connected (to any server).</summary>
  34. Disconnected,
  35. /// <summary>Client was unable to connect to Name Server and will attempt to connect with an alternative network protocol (TCP).</summary>
  36. ConnectWithFallbackProtocol
  37. }
  38. }