using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Model { /// /// /// [DataContract] public class SessionGet { /// /// Unique UUID /// /// Unique UUID [DataMember(Name="session_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "session_id")] public string SessionId { get; set; } /// /// Custom ID if Available /// /// Custom ID if Available [DataMember(Name="custom_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "custom_id")] public string CustomId { get; set; } /// /// Current status of the session /// /// Current status of the session [DataMember(Name="status", EmitDefaultValue=false)] [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// If the session is linked to a ready deployment /// /// If the session is linked to a ready deployment [DataMember(Name="ready", EmitDefaultValue=false)] [JsonProperty(PropertyName = "ready")] public bool? Ready { get; set; } /// /// If the session is linked to a deployment /// /// If the session is linked to a deployment [DataMember(Name="linked", EmitDefaultValue=false)] [JsonProperty(PropertyName = "linked")] public bool? Linked { get; set; } /// /// Type of session created /// /// Type of session created [DataMember(Name="kind", EmitDefaultValue=false)] [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } /// /// Count of user this session currently have /// /// Count of user this session currently have [DataMember(Name="user_count", EmitDefaultValue=false)] [JsonProperty(PropertyName = "user_count")] public int? UserCount { get; set; } /// /// App version linked to the session /// /// App version linked to the session [DataMember(Name="app_id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "app_id")] public int? AppId { get; set; } /// /// Session created at /// /// Session created at [DataMember(Name="create_time", EmitDefaultValue=false)] [JsonProperty(PropertyName = "create_time")] public string CreateTime { get; set; } /// /// Elapsed time /// /// Elapsed time [DataMember(Name="elapsed", EmitDefaultValue=false)] [JsonProperty(PropertyName = "elapsed")] public int? Elapsed { get; set; } /// /// Error Detail /// /// Error Detail [DataMember(Name="error", EmitDefaultValue=false)] [JsonProperty(PropertyName = "error")] public string Error { get; set; } /// /// Users in the session /// /// Users in the session [DataMember(Name="session_users", EmitDefaultValue=false)] [JsonProperty(PropertyName = "session_users")] public List SessionUsers { get; set; } /// /// IPS in the session /// /// IPS in the session [DataMember(Name="session_ips", EmitDefaultValue=false)] [JsonProperty(PropertyName = "session_ips")] public List SessionIps { get; set; } /// /// Gets or Sets Deployment /// [DataMember(Name="deployment", EmitDefaultValue=false)] [JsonProperty(PropertyName = "deployment")] public Deployment Deployment { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class SessionGet {\n"); sb.Append(" SessionId: ").Append(SessionId).Append("\n"); sb.Append(" CustomId: ").Append(CustomId).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Ready: ").Append(Ready).Append("\n"); sb.Append(" Linked: ").Append(Linked).Append("\n"); sb.Append(" Kind: ").Append(Kind).Append("\n"); sb.Append(" UserCount: ").Append(UserCount).Append("\n"); sb.Append(" AppId: ").Append(AppId).Append("\n"); sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); sb.Append(" Elapsed: ").Append(Elapsed).Append("\n"); sb.Append(" Error: ").Append(Error).Append("\n"); sb.Append(" SessionUsers: ").Append(SessionUsers).Append("\n"); sb.Append(" SessionIps: ").Append(SessionIps).Append("\n"); sb.Append(" Deployment: ").Append(Deployment).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }