| | | 1 | | /* |
| | | 2 | | * WeShare API |
| | | 3 | | * |
| | | 4 | | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| | | 5 | | * |
| | | 6 | | * The version of the OpenAPI document: 1.0 |
| | | 7 | | * Generated by: https://github.com/openapitools/openapi-generator.git |
| | | 8 | | */ |
| | | 9 | | |
| | | 10 | | |
| | | 11 | | using System; |
| | | 12 | | using System.Collections; |
| | | 13 | | using System.Collections.Generic; |
| | | 14 | | using System.Collections.ObjectModel; |
| | | 15 | | using System.Linq; |
| | | 16 | | using System.IO; |
| | | 17 | | using System.Runtime.Serialization; |
| | | 18 | | using System.Text; |
| | | 19 | | using System.Text.RegularExpressions; |
| | | 20 | | using Newtonsoft.Json; |
| | | 21 | | using Newtonsoft.Json.Converters; |
| | | 22 | | using Newtonsoft.Json.Linq; |
| | | 23 | | using System.ComponentModel.DataAnnotations; |
| | | 24 | | using OpenAPIDateConverter = Applications.WeShare.Swagger.Client.OpenAPIDateConverter; |
| | | 25 | | |
| | | 26 | | namespace Applications.WeShare.Swagger.Model |
| | | 27 | | { |
| | | 28 | | /// <summary> |
| | | 29 | | /// LoginDTO |
| | | 30 | | /// </summary> |
| | | 31 | | [DataContract(Name = "LoginDTO")] |
| | | 32 | | public partial class LoginDTO : IEquatable<LoginDTO>, IValidatableObject |
| | | 33 | | { |
| | | 34 | | /// <summary> |
| | | 35 | | /// Initializes a new instance of the <see cref="LoginDTO" /> class. |
| | | 36 | | /// </summary> |
| | | 37 | | /// <param name="email">email.</param> |
| | 2 | 38 | | public LoginDTO(string email = default(string)) |
| | 2 | 39 | | { |
| | 2 | 40 | | this.Email = email; |
| | 2 | 41 | | } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or Sets Email |
| | | 45 | | /// </summary> |
| | | 46 | | [DataMember(Name = "email", EmitDefaultValue = false)] |
| | 4 | 47 | | public string Email { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Returns the string presentation of the object |
| | | 51 | | /// </summary> |
| | | 52 | | /// <returns>String presentation of the object</returns> |
| | | 53 | | public override string ToString() |
| | 0 | 54 | | { |
| | 0 | 55 | | StringBuilder sb = new StringBuilder(); |
| | 0 | 56 | | sb.Append("class LoginDTO {\n"); |
| | 0 | 57 | | sb.Append(" Email: ").Append(Email).Append("\n"); |
| | 0 | 58 | | sb.Append("}\n"); |
| | 0 | 59 | | return sb.ToString(); |
| | 0 | 60 | | } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Returns the JSON string presentation of the object |
| | | 64 | | /// </summary> |
| | | 65 | | /// <returns>JSON string presentation of the object</returns> |
| | | 66 | | public virtual string ToJson() |
| | 0 | 67 | | { |
| | 0 | 68 | | return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| | 0 | 69 | | } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// Returns true if objects are equal |
| | | 73 | | /// </summary> |
| | | 74 | | /// <param name="input">Object to be compared</param> |
| | | 75 | | /// <returns>Boolean</returns> |
| | | 76 | | public override bool Equals(object input) |
| | 0 | 77 | | { |
| | 0 | 78 | | return this.Equals(input as LoginDTO); |
| | 0 | 79 | | } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// Returns true if LoginDTO instances are equal |
| | | 83 | | /// </summary> |
| | | 84 | | /// <param name="input">Instance of LoginDTO to be compared</param> |
| | | 85 | | /// <returns>Boolean</returns> |
| | | 86 | | public bool Equals(LoginDTO input) |
| | 0 | 87 | | { |
| | 0 | 88 | | if (input == null) |
| | 0 | 89 | | { |
| | 0 | 90 | | return false; |
| | | 91 | | } |
| | 0 | 92 | | return |
| | 0 | 93 | | ( |
| | 0 | 94 | | this.Email == input.Email || |
| | 0 | 95 | | (this.Email != null && |
| | 0 | 96 | | this.Email.Equals(input.Email)) |
| | 0 | 97 | | ); |
| | 0 | 98 | | } |
| | | 99 | | |
| | | 100 | | /// <summary> |
| | | 101 | | /// Gets the hash code |
| | | 102 | | /// </summary> |
| | | 103 | | /// <returns>Hash code</returns> |
| | | 104 | | public override int GetHashCode() |
| | 0 | 105 | | { |
| | | 106 | | unchecked // Overflow is fine, just wrap |
| | 0 | 107 | | { |
| | 0 | 108 | | int hashCode = 41; |
| | 0 | 109 | | if (this.Email != null) |
| | 0 | 110 | | { |
| | 0 | 111 | | hashCode = (hashCode * 59) + this.Email.GetHashCode(); |
| | 0 | 112 | | } |
| | 0 | 113 | | return hashCode; |
| | | 114 | | } |
| | 0 | 115 | | } |
| | | 116 | | |
| | | 117 | | /// <summary> |
| | | 118 | | /// To validate all properties of the instance |
| | | 119 | | /// </summary> |
| | | 120 | | /// <param name="validationContext">Validation context</param> |
| | | 121 | | /// <returns>Validation Result</returns> |
| | | 122 | | public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validation |
| | 0 | 123 | | { |
| | 0 | 124 | | yield break; |
| | | 125 | | } |
| | | 126 | | } |
| | | 127 | | |
| | | 128 | | } |