12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Text;
- using System.Collections;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using Newtonsoft.Json;
- namespace IO.Swagger.Model {
- /// <summary>
- ///
- /// </summary>
- [DataContract]
- public class BaseModel {
- /// <summary>
- /// Gets or Sets CreatedAt
- /// </summary>
- [DataMember(Name="created_at", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "created_at")]
- public string CreatedAt { get; set; }
- /// <summary>
- /// Gets or Sets UpdatedAt
- /// </summary>
- [DataMember(Name="updated_at", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "updated_at")]
- public string UpdatedAt { get; set; }
- /// <summary>
- /// Get the string presentation of the object
- /// </summary>
- /// <returns>String presentation of the object</returns>
- public override string ToString() {
- StringBuilder sb = new StringBuilder();
- sb.Append("class BaseModel {\n");
- sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
- sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
- /// <summary>
- /// Get the JSON string presentation of the object
- /// </summary>
- /// <returns>JSON string presentation of the object</returns>
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
- }
- }
|