CustomBulkSessionModel.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 CustomBulkSessionModel {
  13. /// <summary>
  14. /// Custom Session ID
  15. /// </summary>
  16. /// <value>Custom Session ID</value>
  17. [DataMember(Name="custom_id", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "custom_id")]
  19. public string CustomId { get; set; }
  20. /// <summary>
  21. /// 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\"]
  22. /// </summary>
  23. /// <value>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\"]</value>
  24. [DataMember(Name="ip_list", EmitDefaultValue=false)]
  25. [JsonProperty(PropertyName = "ip_list")]
  26. public List<string> IpList { get; set; }
  27. /// <summary>
  28. /// Get the string presentation of the object
  29. /// </summary>
  30. /// <returns>String presentation of the object</returns>
  31. public override string ToString() {
  32. StringBuilder sb = new StringBuilder();
  33. sb.Append("class CustomBulkSessionModel {\n");
  34. sb.Append(" CustomId: ").Append(CustomId).Append("\n");
  35. sb.Append(" IpList: ").Append(IpList).Append("\n");
  36. sb.Append("}\n");
  37. return sb.ToString();
  38. }
  39. /// <summary>
  40. /// Get the JSON string presentation of the object
  41. /// </summary>
  42. /// <returns>JSON string presentation of the object</returns>
  43. public string ToJson() {
  44. return JsonConvert.SerializeObject(this, Formatting.Indented);
  45. }
  46. }
  47. }