Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CutLabelDefinition" /> class.
 /// </summary>
 /// <param name="code">code.</param>
 /// <param name="displayName">displayName.</param>
 /// <param name="description">description.</param>
 /// <param name="cutLocalTime">cutLocalTime.</param>
 /// <param name="timeZone">timeZone.</param>
 /// <param name="href">href.</param>
 /// <param name="links">links.</param>
 public CutLabelDefinition(string code = default(string), string displayName = default(string), string description = default(string), CutLocalTime cutLocalTime = default(CutLocalTime), string timeZone = default(string), string href = default(string), List <Link> links = default(List <Link>))
 {
     this.Code         = code;
     this.DisplayName  = displayName;
     this.Description  = description;
     this.TimeZone     = timeZone;
     this.Href         = href;
     this.Links        = links;
     this.Code         = code;
     this.DisplayName  = displayName;
     this.Description  = description;
     this.CutLocalTime = cutLocalTime;
     this.TimeZone     = timeZone;
     this.Href         = href;
     this.Links        = links;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateCutLabelDefinitionRequest" /> class.
        /// </summary>
        /// <param name="displayName">displayName (required).</param>
        /// <param name="description">description.</param>
        /// <param name="cutLocalTime">cutLocalTime (required).</param>
        /// <param name="timeZone">timeZone (required).</param>
        public UpdateCutLabelDefinitionRequest(string displayName = default(string), string description = default(string), CutLocalTime cutLocalTime = default(CutLocalTime), string timeZone = default(string))
        {
            // to ensure "displayName" is required (not null)
            if (displayName == null)
            {
                throw new InvalidDataException("displayName is a required property for UpdateCutLabelDefinitionRequest and cannot be null");
            }
            else
            {
                this.DisplayName = displayName;
            }

            this.Description = description;
            // to ensure "cutLocalTime" is required (not null)
            if (cutLocalTime == null)
            {
                throw new InvalidDataException("cutLocalTime is a required property for UpdateCutLabelDefinitionRequest and cannot be null");
            }
            else
            {
                this.CutLocalTime = cutLocalTime;
            }

            // to ensure "timeZone" is required (not null)
            if (timeZone == null)
            {
                throw new InvalidDataException("timeZone is a required property for UpdateCutLabelDefinitionRequest and cannot be null");
            }
            else
            {
                this.TimeZone = timeZone;
            }

            this.Description = description;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateCutLabelDefinitionRequest" /> class.
 /// </summary>
 /// <param name="code">code (required).</param>
 /// <param name="displayName">displayName (required).</param>
 /// <param name="description">description.</param>
 /// <param name="cutLocalTime">cutLocalTime (required).</param>
 /// <param name="timeZone">timeZone (required).</param>
 public CreateCutLabelDefinitionRequest(string code = default(string), string displayName = default(string), string description = default(string), CutLocalTime cutLocalTime = default(CutLocalTime), string timeZone = default(string))
 {
     // to ensure "code" is required (not null)
     this.Code = code ?? throw new ArgumentNullException("code is a required property for CreateCutLabelDefinitionRequest and cannot be null");
     // to ensure "displayName" is required (not null)
     this.DisplayName = displayName ?? throw new ArgumentNullException("displayName is a required property for CreateCutLabelDefinitionRequest and cannot be null");
     // to ensure "cutLocalTime" is required (not null)
     this.CutLocalTime = cutLocalTime ?? throw new ArgumentNullException("cutLocalTime is a required property for CreateCutLabelDefinitionRequest and cannot be null");
     // to ensure "timeZone" is required (not null)
     this.TimeZone    = timeZone ?? throw new ArgumentNullException("timeZone is a required property for CreateCutLabelDefinitionRequest and cannot be null");
     this.Description = description;
 }