|
| 1 | +// -------------------------------------------------------------------------------------------------------------------- |
| 2 | +// <copyright company="Aspose Pty Ltd" file="ApiError.cs"> |
| 3 | +// Copyright (c) 2003-2023 Aspose Pty Ltd |
| 4 | +// </copyright> |
| 5 | +// <summary> |
| 6 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | +// of this software and associated documentation files (the "Software"), to deal |
| 8 | +// in the Software without restriction, including without limitation the rights |
| 9 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | +// copies of the Software, and to permit persons to whom the Software is |
| 11 | +// furnished to do so, subject to the following conditions: |
| 12 | +// |
| 13 | +// The above copyright notice and this permission notice shall be included in all |
| 14 | +// copies or substantial portions of the Software. |
| 15 | +// |
| 16 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +// SOFTWARE. |
| 23 | +// </summary> |
| 24 | +// -------------------------------------------------------------------------------------------------------------------- |
| 25 | + |
| 26 | +namespace GroupDocs.Conversion.Cloud.Sdk.Model |
| 27 | +{ |
| 28 | + using System; |
| 29 | + using System.Collections; |
| 30 | + using System.Collections.Generic; |
| 31 | + using System.Runtime.Serialization; |
| 32 | + using System.Text; |
| 33 | + using Newtonsoft.Json; |
| 34 | + using Newtonsoft.Json.Converters; |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// |
| 38 | + /// </summary> |
| 39 | + public class ApiError |
| 40 | + { |
| 41 | + /// <summary> |
| 42 | + /// Gets or sets Code |
| 43 | + /// </summary> |
| 44 | + public string Code { get; set; } |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// Gets or sets Message |
| 48 | + /// </summary> |
| 49 | + public string Message { get; set; } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Gets or sets Description |
| 53 | + /// </summary> |
| 54 | + public string Description { get; set; } |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Gets or sets DateTime |
| 58 | + /// </summary> |
| 59 | + public DateTime? DateTime { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Gets or sets InnerError |
| 63 | + /// </summary> |
| 64 | + public ApiError InnerError { get; set; } |
| 65 | + |
| 66 | + /// <summary> |
| 67 | + /// Get the string presentation of the object |
| 68 | + /// </summary> |
| 69 | + /// <returns>String presentation of the object</returns> |
| 70 | + public override string ToString() |
| 71 | + { |
| 72 | + var sb = new StringBuilder(); |
| 73 | + sb.Append("class ApiError {\n"); |
| 74 | + sb.Append(" Code: ").Append(this.Code).Append("\n"); |
| 75 | + sb.Append(" Message: ").Append(this.Message).Append("\n"); |
| 76 | + sb.Append(" Description: ").Append(this.Description).Append("\n"); |
| 77 | + sb.Append(" DateTime: ").Append(this.DateTime).Append("\n"); |
| 78 | + sb.Append(" InnerError: ").Append(this.InnerError).Append("\n"); |
| 79 | + sb.Append("}\n"); |
| 80 | + return sb.ToString(); |
| 81 | + } |
| 82 | + } |
| 83 | +} |
0 commit comments