SessionContext.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using System;
  2. using System.Text;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Runtime.Serialization;
  6. using Newtonsoft.Json;
  7. namespace IO.Swagger.Model {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [DataContract]
  12. public class SessionContext {
  13. /// <summary>
  14. /// Unique UUID
  15. /// </summary>
  16. /// <value>Unique UUID</value>
  17. [DataMember(Name="session_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "session_id")]
  19. public string SessionId { get; set; }
  20. /// <summary>
  21. /// Custom ID if Available
  22. /// </summary>
  23. /// <value>Custom ID if Available</value>
  24. [DataMember(Name="custom_id", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "custom_id")]
  26. public string CustomId { get; set; }
  27. /// <summary>
  28. /// Current status of the session
  29. /// </summary>
  30. /// <value>Current status of the session</value>
  31. [DataMember(Name="status", EmitDefaultValue=false)]
  32. [JsonProperty(PropertyName = "status")]
  33. public string Status { get; set; }
  34. /// <summary>
  35. /// If the session is linked to a Ready deployment
  36. /// </summary>
  37. /// <value>If the session is linked to a Ready deployment</value>
  38. [DataMember(Name="ready", EmitDefaultValue=false)]
  39. [JsonProperty(PropertyName = "ready")]
  40. public bool? Ready { get; set; }
  41. /// <summary>
  42. /// If the session is linked to a deployment
  43. /// </summary>
  44. /// <value>If the session is linked to a deployment</value>
  45. [DataMember(Name="linked", EmitDefaultValue=false)]
  46. [JsonProperty(PropertyName = "linked")]
  47. public bool? Linked { get; set; }
  48. /// <summary>
  49. /// Type of session created
  50. /// </summary>
  51. /// <value>Type of session created</value>
  52. [DataMember(Name="kind", EmitDefaultValue=false)]
  53. [JsonProperty(PropertyName = "kind")]
  54. public string Kind { get; set; }
  55. /// <summary>
  56. /// Count of user this session currently have
  57. /// </summary>
  58. /// <value>Count of user this session currently have</value>
  59. [DataMember(Name="user_count", EmitDefaultValue=false)]
  60. [JsonProperty(PropertyName = "user_count")]
  61. public int? UserCount { get; set; }
  62. /// <summary>
  63. /// Unique UUID
  64. /// </summary>
  65. /// <value>Unique UUID</value>
  66. [DataMember(Name="deployment_request_id", EmitDefaultValue=false)]
  67. [JsonProperty(PropertyName = "deployment_request_id")]
  68. public string DeploymentRequestId { get; set; }
  69. /// <summary>
  70. /// Get the string presentation of the object
  71. /// </summary>
  72. /// <returns>String presentation of the object</returns>
  73. public override string ToString() {
  74. StringBuilder sb = new StringBuilder();
  75. sb.Append("class SessionContext {\n");
  76. sb.Append(" SessionId: ").Append(SessionId).Append("\n");
  77. sb.Append(" CustomId: ").Append(CustomId).Append("\n");
  78. sb.Append(" Status: ").Append(Status).Append("\n");
  79. sb.Append(" Ready: ").Append(Ready).Append("\n");
  80. sb.Append(" Linked: ").Append(Linked).Append("\n");
  81. sb.Append(" Kind: ").Append(Kind).Append("\n");
  82. sb.Append(" UserCount: ").Append(UserCount).Append("\n");
  83. sb.Append(" DeploymentRequestId: ").Append(DeploymentRequestId).Append("\n");
  84. sb.Append("}\n");
  85. return sb.ToString();
  86. }
  87. /// <summary>
  88. /// Get the JSON string presentation of the object
  89. /// </summary>
  90. /// <returns>JSON string presentation of the object</returns>
  91. public string ToJson() {
  92. return JsonConvert.SerializeObject(this, Formatting.Indented);
  93. }
  94. }
  95. }