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 SessionModel {
///
/// The Name of the App you want to deploy, example: supermario
///
/// The Name of the App you want to deploy, example: supermario
[DataMember(Name="app_name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "app_name")]
public string AppName { get; set; }
///
/// The Name of the App Version you want to deploy, example: v1.0
///
/// The Name of the App Version you want to deploy, example: v1.0
[DataMember(Name="version_name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "version_name")]
public string VersionName { get; set; }
///
/// The List of IP of your user, Array of String, example: [\"162.254.103.13\",\"198.12.116.39\", \"162.254.135.39\", \"162.254.129.34\"]
///
/// The List of IP of your user, Array of String, example: [\"162.254.103.13\",\"198.12.116.39\", \"162.254.135.39\", \"162.254.129.34\"]
[DataMember(Name="ip_list", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "ip_list")]
public List IpList { get; set; }
///
/// The list of IP of your user with their location (latitude, longitude)
///
/// The list of IP of your user with their location (latitude, longitude)
[DataMember(Name="geo_ip_list", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "geo_ip_list")]
public List GeoIpList { get; set; }
///
/// The request id of your deployment. If specified, the session will link to the deployment
///
/// The request id of your deployment. If specified, the session will link to the deployment
[DataMember(Name="deployment_request_id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "deployment_request_id")]
public string DeploymentRequestId { get; set; }
///
/// If you want to specify a centroid for your session.
///
/// If you want to specify a centroid for your session.
[DataMember(Name="location", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "location")]
public LocationModel Location { get; set; }
///
/// If you want your session in a specific city
///
/// If you want your session in a specific city
[DataMember(Name="city", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "city")]
public string City { get; set; }
///
/// If you want your session in a specific country
///
/// If you want your session in a specific country
[DataMember(Name="country", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "country")]
public string Country { get; set; }
///
/// If you want your session in a specific continent
///
/// If you want your session in a specific continent
[DataMember(Name="continent", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "continent")]
public string Continent { get; set; }
///
/// If you want your session in a specific administrative division
///
/// If you want your session in a specific administrative division
[DataMember(Name="administrative_division", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "administrative_division")]
public string AdministrativeDivision { get; set; }
///
/// If you want your session in a specific region
///
/// If you want your session in a specific region
[DataMember(Name="region", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
///
/// List of Selectors to filter potential Deployment to link and tag the Session
///
/// List of Selectors to filter potential Deployment to link and tag the Session
[DataMember(Name="selectors", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "selectors")]
public List Selectors { 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 SessionModel {\n");
sb.Append(" AppName: ").Append(AppName).Append("\n");
sb.Append(" VersionName: ").Append(VersionName).Append("\n");
sb.Append(" IpList: ").Append(IpList).Append("\n");
sb.Append(" GeoIpList: ").Append(GeoIpList).Append("\n");
sb.Append(" DeploymentRequestId: ").Append(DeploymentRequestId).Append("\n");
sb.Append(" Location: ").Append(Location).Append("\n");
sb.Append(" City: ").Append(City).Append("\n");
sb.Append(" Country: ").Append(Country).Append("\n");
sb.Append(" Continent: ").Append(Continent).Append("\n");
sb.Append(" AdministrativeDivision: ").Append(AdministrativeDivision).Append("\n");
sb.Append(" Region: ").Append(Region).Append("\n");
sb.Append(" Selectors: ").Append(Selectors).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);
}
}
}