AppCreation.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 AppCreation {
  13. /// <summary>
  14. /// If the creation happened correctly
  15. /// </summary>
  16. /// <value>If the creation happened correctly</value>
  17. [DataMember(Name="success", EmitDefaultValue=false)]
  18. [JsonProperty(PropertyName = "success")]
  19. public bool? Success { get; set; }
  20. /// <summary>
  21. /// Gets or Sets Version
  22. /// </summary>
  23. [DataMember(Name="version", EmitDefaultValue=false)]
  24. [JsonProperty(PropertyName = "version")]
  25. public AppVersion Version { get; set; }
  26. /// <summary>
  27. /// Get the string presentation of the object
  28. /// </summary>
  29. /// <returns>String presentation of the object</returns>
  30. public override string ToString() {
  31. StringBuilder sb = new StringBuilder();
  32. sb.Append("class AppCreation {\n");
  33. sb.Append(" Success: ").Append(Success).Append("\n");
  34. sb.Append(" Version: ").Append(Version).Append("\n");
  35. sb.Append("}\n");
  36. return sb.ToString();
  37. }
  38. /// <summary>
  39. /// Get the JSON string presentation of the object
  40. /// </summary>
  41. /// <returns>JSON string presentation of the object</returns>
  42. public string ToJson() {
  43. return JsonConvert.SerializeObject(this, Formatting.Indented);
  44. }
  45. }
  46. }