예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiError" /> class.
 /// </summary>
 /// <param name="Code">Code.</param>
 /// <param name="ErrorId">ErrorId.</param>
 /// <param name="ErrorList">ErrorList.</param>
 /// <param name="Message">Message.</param>
 public ApiError(CodeEnum?Code = default(CodeEnum?), string ErrorId = default(string), List <ApiError> ErrorList = default(List <ApiError>), string Message = default(string))
 {
     this.Code      = Code;
     this.ErrorId   = ErrorId;
     this.ErrorList = ErrorList;
     this.Message   = Message;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseMessageDTO" /> class.
 /// </summary>
 /// <param name="code">code.</param>
 /// <param name="message">message.</param>
 /// <param name="type">type.</param>
 /// <param name="detailCode">detailCode.</param>
 public ResponseMessageDTO(CodeEnum?code = default(CodeEnum?), string message = default(string), TypeEnum?type = default(TypeEnum?), DetailCodeEnum?detailCode = default(DetailCodeEnum?))
 {
     this.Code       = code;
     this.Message    = message;
     this.Type       = type;
     this.DetailCode = detailCode;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventMessage" /> class.
 /// </summary>
 /// <param name="Code">Code.</param>
 /// <param name="Message">Message.</param>
 /// <param name="MessageWithParams">MessageWithParams.</param>
 /// <param name="MessageParams">MessageParams.</param>
 /// <param name="DocumentationUri">DocumentationUri.</param>
 /// <param name="ResourceURIs">ResourceURIs.</param>
 public EventMessage(CodeEnum?Code = null, string Message = null, string MessageWithParams = null, Dictionary <string, Object> MessageParams = null, string DocumentationUri = null, List <string> ResourceURIs = null)
 {
     this.Code              = Code;
     this.Message           = Message;
     this.MessageWithParams = MessageWithParams;
     this.MessageParams     = MessageParams;
     this.DocumentationUri  = DocumentationUri;
     this.ResourceURIs      = ResourceURIs;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdiFabricCoreModelEdiErrorContextsDataElementErrorContext" /> class.
 /// </summary>
 /// <param name="name">name.</param>
 /// <param name="position">position.</param>
 /// <param name="code">code.</param>
 /// <param name="value">value.</param>
 /// <param name="componentPosition">componentPosition.</param>
 /// <param name="repetitionPosition">repetitionPosition.</param>
 /// <param name="message">message.</param>
 public EdiFabricCoreModelEdiErrorContextsDataElementErrorContext(string name = default(string), int?position = default(int?), CodeEnum?code = default(CodeEnum?), string value = default(string), int?componentPosition = default(int?), int?repetitionPosition = default(int?), string message = default(string))
 {
     this.Name               = name;
     this.Position           = position;
     this.Code               = code;
     this.Value              = value;
     this.ComponentPosition  = componentPosition;
     this.RepetitionPosition = repetitionPosition;
     this.Message            = message;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorResponse" /> class.
 /// </summary>
 /// <param name="Code">Response code..</param>
 /// <param name="Fields">Failed input fields during request object validation..</param>
 /// <param name="Message">A human readable message with detailed info..</param>
 /// <param name="_Object">Entity name, always &#39;error&#39;. (default to ObjectEnum.Error).</param>
 /// <param name="RequestId">Request ID..</param>
 /// <param name="Type">Error type..</param>
 public ErrorResponse(CodeEnum?Code = default(CodeEnum?), List <Field> Fields = default(List <Field>), string Message = default(string), ObjectEnum?_Object = ObjectEnum.Error, string RequestId = default(string), TypeEnum?Type = default(TypeEnum?))
 {
     this.Code    = Code;
     this.Fields  = Fields;
     this.Message = Message;
     // use default value if no "_Object" provided
     if (_Object == null)
     {
         this._Object = ObjectEnum.Error;
     }
     else
     {
         this._Object = _Object;
     }
     this.RequestId = RequestId;
     this.Type      = Type;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Error" /> class.
 /// </summary>
 /// <param name="Category">The error&#39;s high-level category. See [ErrorCategory](#type-errorcategory) for possible values. (required).</param>
 /// <param name="Code">The error&#39;s specific code. See [ErrorCode](#type-errorcode) for possible values (required).</param>
 /// <param name="Detail">A human-readable description of the error for debugging purposes..</param>
 /// <param name="Field">The name of the field provided in the original request that the error pertains to, if any..</param>
 public Error(CategoryEnum?Category = default(CategoryEnum?), CodeEnum?Code = default(CodeEnum?), string Detail = default(string), string Field = default(string))
 {
     // to ensure "Category" is required (not null)
     if (Category == null)
     {
         throw new InvalidDataException("Category is a required property for Error and cannot be null");
     }
     else
     {
         this.Category = Category;
     }
     // to ensure "Code" is required (not null)
     if (Code == null)
     {
         throw new InvalidDataException("Code is a required property for Error and cannot be null");
     }
     else
     {
         this.Code = Code;
     }
     this.Detail = Detail;
     this.Field  = Field;
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetTransacBlockedContactsReason" /> class.
 /// </summary>
 /// <param name="code">Reason code for blocking / unsubscribing (This code is safe for comparison).</param>
 /// <param name="message">Reason for blocking / unsubscribing (This string is not safe for comparison).</param>
 public GetTransacBlockedContactsReason(CodeEnum?code = default(CodeEnum?), string message = default(string))
 {
     this.Code    = code;
     this.Message = message;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V2ConversationMessageTypingEventForWorkflowTopicConversationReason" /> class.
 /// </summary>
 /// <param name="Code">Code.</param>
 /// <param name="Message">Message.</param>
 public V2ConversationMessageTypingEventForWorkflowTopicConversationReason(CodeEnum?Code = null, string Message = null)
 {
     this.Code    = Code;
     this.Message = Message;
 }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserStatusUpdateResponse" /> class.
 /// </summary>
 /// <param name="Code">The result of the attempt to activate or deactivate the user.</param>
 /// <param name="Message">String result message if there was no error.</param>
 /// <param name="State">A status value showing the result of this operation.</param>
 public UserStatusUpdateResponse(CodeEnum?Code = default(CodeEnum?), string Message = default(string), StateEnum?State = default(StateEnum?))
 {
     this.Code    = Code;
     this.Message = Message;
     this.State   = State;
 }
예제 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Reason" /> class.
 /// </summary>
 /// <param name="Code">The reason code for the failed message receipt..</param>
 /// <param name="Message">Description of the reason for the failed message receipt. (required).</param>
 public Reason(CodeEnum?Code = null, string Message = null)
 {
     this.Code    = Code;
     this.Message = Message;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseMessageDTO" /> class.
 /// </summary>
 /// <param name="Code">Code.</param>
 /// <param name="Message">Message.</param>
 /// <param name="Type">Type.</param>
 public ResponseMessageDTO(CodeEnum?Code = default(CodeEnum?), string Message = default(string), TypeEnum?Type = default(TypeEnum?))
 {
     this.Code    = Code;
     this.Message = Message;
     this.Type    = Type;
 }
예제 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="APIError" /> class.
 /// </summary>
 /// <param name="code">Error code:   * server_error - Internal server error.   * invalid_parameter - Validation error, parameter will contain invalid field and message will contain the reason.   * invalid_body - Body could not be parsed, message will contain the reason.   * invalid_request - Validation error, the protocol used to make the request was not https.   * unauthorized - Credentials were found but permissions were not sufficient.   * unauthenticated - Credentials were not found or were not valid.   * not_found - The requested resource was not found.   * rate_limited - The request was refused because a rate limit was exceeded. There is an account wide rate limit of 3600 requests per-minute, although that is subject to change. The current remaining rate limit can be viewed by checking the X-Ratelimit-Remaining header.   * prohibited_action - The request was refused because an action was not valid for the requested resource. Typically this will happen if you try to make changes to a locked resource. .</param>
 /// <param name="message">Human readable error message.</param>
 /// <param name="_parameter">The invalid parameter, if &#39;code&#39; is invalid_parameter.</param>
 public APIError(CodeEnum?code = default(CodeEnum?), string message = default(string), string _parameter = default(string))
 {
     this.Code      = code;
     this.Message   = message;
     this.Parameter = _parameter;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConversationReason" /> class.
 /// </summary>
 /// <param name="Code">The reason code for the failed message receipt..</param>
 /// <param name="Message">Description of the reason for the failed message receipt. (required).</param>
 public ConversationReason(CodeEnum?Code = null, string Message = null)
 {
     this.Code    = Code;
     this.Message = Message;
 }