|
| 1 | +/* |
| 2 | + * freee API |
| 3 | + * |
| 4 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 5 | + * |
| 6 | + * The version of the OpenAPI document: v1.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 OpenAPIDateConverter = Freee.Accounting.Client.OpenAPIDateConverter; |
| 24 | + |
| 25 | +namespace Freee.Accounting.Models |
| 26 | +{ |
| 27 | + /// <summary> |
| 28 | + /// UserCapabilityWithConfirm |
| 29 | + /// </summary> |
| 30 | + [DataContract(Name = "userCapabilityWithConfirm")] |
| 31 | + public partial class UserCapabilityWithConfirm : IEquatable<UserCapabilityWithConfirm> |
| 32 | + { |
| 33 | + /// <summary> |
| 34 | + /// Initializes a new instance of the <see cref="UserCapabilityWithConfirm" /> class. |
| 35 | + /// </summary> |
| 36 | + /// <param name="confirm">「自動で経理」の操作.</param> |
| 37 | + /// <param name="create">「取得した明細」の作成.</param> |
| 38 | + /// <param name="destroy">「取得した明細」の削除.</param> |
| 39 | + /// <param name="read">「取得した明細」の閲覧.</param> |
| 40 | + /// <param name="update">「取得した明細」の更新.</param> |
| 41 | + public UserCapabilityWithConfirm(bool confirm = default(bool), bool create = default(bool), bool destroy = default(bool), bool read = default(bool), bool update = default(bool)) |
| 42 | + { |
| 43 | + this.Confirm = confirm; |
| 44 | + this.Create = create; |
| 45 | + this.Destroy = destroy; |
| 46 | + this.Read = read; |
| 47 | + this.Update = update; |
| 48 | + } |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// 「自動で経理」の操作 |
| 52 | + /// </summary> |
| 53 | + /// <value>「自動で経理」の操作</value> |
| 54 | + [DataMember(Name = "confirm", EmitDefaultValue = true)] |
| 55 | + public bool Confirm { get; set; } |
| 56 | + |
| 57 | + /// <summary> |
| 58 | + /// 「取得した明細」の作成 |
| 59 | + /// </summary> |
| 60 | + /// <value>「取得した明細」の作成</value> |
| 61 | + [DataMember(Name = "create", EmitDefaultValue = true)] |
| 62 | + public bool Create { get; set; } |
| 63 | + |
| 64 | + /// <summary> |
| 65 | + /// 「取得した明細」の削除 |
| 66 | + /// </summary> |
| 67 | + /// <value>「取得した明細」の削除</value> |
| 68 | + [DataMember(Name = "destroy", EmitDefaultValue = true)] |
| 69 | + public bool Destroy { get; set; } |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// 「取得した明細」の閲覧 |
| 73 | + /// </summary> |
| 74 | + /// <value>「取得した明細」の閲覧</value> |
| 75 | + [DataMember(Name = "read", EmitDefaultValue = true)] |
| 76 | + public bool Read { get; set; } |
| 77 | + |
| 78 | + /// <summary> |
| 79 | + /// 「取得した明細」の更新 |
| 80 | + /// </summary> |
| 81 | + /// <value>「取得した明細」の更新</value> |
| 82 | + [DataMember(Name = "update", EmitDefaultValue = true)] |
| 83 | + public bool Update { get; set; } |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// Returns the string presentation of the object |
| 87 | + /// </summary> |
| 88 | + /// <returns>String presentation of the object</returns> |
| 89 | + public override string ToString() |
| 90 | + { |
| 91 | + StringBuilder sb = new StringBuilder(); |
| 92 | + sb.Append("class UserCapabilityWithConfirm {\n"); |
| 93 | + sb.Append(" Confirm: ").Append(Confirm).Append("\n"); |
| 94 | + sb.Append(" Create: ").Append(Create).Append("\n"); |
| 95 | + sb.Append(" Destroy: ").Append(Destroy).Append("\n"); |
| 96 | + sb.Append(" Read: ").Append(Read).Append("\n"); |
| 97 | + sb.Append(" Update: ").Append(Update).Append("\n"); |
| 98 | + sb.Append("}\n"); |
| 99 | + return sb.ToString(); |
| 100 | + } |
| 101 | + |
| 102 | + /// <summary> |
| 103 | + /// Returns the JSON string presentation of the object |
| 104 | + /// </summary> |
| 105 | + /// <returns>JSON string presentation of the object</returns> |
| 106 | + public virtual string ToJson() |
| 107 | + { |
| 108 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 109 | + } |
| 110 | + |
| 111 | + /// <summary> |
| 112 | + /// Returns true if objects are equal |
| 113 | + /// </summary> |
| 114 | + /// <param name="input">Object to be compared</param> |
| 115 | + /// <returns>Boolean</returns> |
| 116 | + public override bool Equals(object input) |
| 117 | + { |
| 118 | + return this.Equals(input as UserCapabilityWithConfirm); |
| 119 | + } |
| 120 | + |
| 121 | + /// <summary> |
| 122 | + /// Returns true if UserCapabilityWithConfirm instances are equal |
| 123 | + /// </summary> |
| 124 | + /// <param name="input">Instance of UserCapabilityWithConfirm to be compared</param> |
| 125 | + /// <returns>Boolean</returns> |
| 126 | + public bool Equals(UserCapabilityWithConfirm input) |
| 127 | + { |
| 128 | + if (input == null) |
| 129 | + { |
| 130 | + return false; |
| 131 | + } |
| 132 | + return |
| 133 | + ( |
| 134 | + this.Confirm == input.Confirm || |
| 135 | + this.Confirm.Equals(input.Confirm) |
| 136 | + ) && |
| 137 | + ( |
| 138 | + this.Create == input.Create || |
| 139 | + this.Create.Equals(input.Create) |
| 140 | + ) && |
| 141 | + ( |
| 142 | + this.Destroy == input.Destroy || |
| 143 | + this.Destroy.Equals(input.Destroy) |
| 144 | + ) && |
| 145 | + ( |
| 146 | + this.Read == input.Read || |
| 147 | + this.Read.Equals(input.Read) |
| 148 | + ) && |
| 149 | + ( |
| 150 | + this.Update == input.Update || |
| 151 | + this.Update.Equals(input.Update) |
| 152 | + ); |
| 153 | + } |
| 154 | + |
| 155 | + /// <summary> |
| 156 | + /// Gets the hash code |
| 157 | + /// </summary> |
| 158 | + /// <returns>Hash code</returns> |
| 159 | + public override int GetHashCode() |
| 160 | + { |
| 161 | + unchecked // Overflow is fine, just wrap |
| 162 | + { |
| 163 | + int hashCode = 41; |
| 164 | + hashCode = (hashCode * 59) + this.Confirm.GetHashCode(); |
| 165 | + hashCode = (hashCode * 59) + this.Create.GetHashCode(); |
| 166 | + hashCode = (hashCode * 59) + this.Destroy.GetHashCode(); |
| 167 | + hashCode = (hashCode * 59) + this.Read.GetHashCode(); |
| 168 | + hashCode = (hashCode * 59) + this.Update.GetHashCode(); |
| 169 | + return hashCode; |
| 170 | + } |
| 171 | + } |
| 172 | + |
| 173 | + } |
| 174 | + |
| 175 | +} |
0 commit comments