/// <summary> /// Initializes a new instance of the <see cref="VideoPropertyDefinitionResource" /> class. /// </summary> /// <param name="Description">The description of the property.</param> /// <param name="FieldList">A list of the fields on both the property definition and property of this type.</param> /// <param name="FriendlyName">The friendly front-facing name of the property.</param> /// <param name="Name">The name of the property (required).</param> /// <param name="OptionLabelPath">The JSON path to the option label.</param> /// <param name="OptionValuePath">The JSON path to the option value.</param> /// <param name="OptionsUrl">URL of service containing the property options (assumed JSON array).</param> /// <param name="Required">Whether the property is required (required).</param> /// <param name="Type">The type of the property. Used for polymorphic type recognition and thus must match an expected type with additional properties. (required).</param> /// <param name="FileType">If provided, a file type that teh property must match.</param> /// <param name="MaxHeight">If provided, the maximum height of the video.</param> /// <param name="MaxLength">If provided, the maximum length of the video.</param> /// <param name="MaxWidth">If provided, the maximum width of the video.</param> /// <param name="MinHeight">If provided, the minimum height of the video.</param> /// <param name="MinLength">If provided, the minimum length of the video.</param> /// <param name="MinWidth">If provided, the minimum width of the video.</param> public VideoPropertyDefinitionResource(string Description = default(string), PropertyFieldListResource FieldList = default(PropertyFieldListResource), string FriendlyName = default(string), string Name = default(string), string OptionLabelPath = default(string), string OptionValuePath = default(string), string OptionsUrl = default(string), bool?Required = default(bool?), string Type = default(string), string FileType = default(string), int?MaxHeight = default(int?), int?MaxLength = default(int?), int?MaxWidth = default(int?), int?MinHeight = default(int?), int?MinLength = default(int?), int?MinWidth = default(int?)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for VideoPropertyDefinitionResource and cannot be null"); } else { this.Name = Name; } // to ensure "Required" is required (not null) if (Required == null) { throw new InvalidDataException("Required is a required property for VideoPropertyDefinitionResource and cannot be null"); } else { this.Required = Required; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for VideoPropertyDefinitionResource and cannot be null"); } else { this.Type = Type; } this.Description = Description; this.FieldList = FieldList; this.FriendlyName = FriendlyName; this.OptionLabelPath = OptionLabelPath; this.OptionValuePath = OptionValuePath; this.OptionsUrl = OptionsUrl; this.FileType = FileType; this.MaxHeight = MaxHeight; this.MaxLength = MaxLength; this.MaxWidth = MaxWidth; this.MinHeight = MinHeight; this.MinLength = MinLength; this.MinWidth = MinWidth; }
/// <summary> /// Initializes a new instance of the <see cref="MapPropertyDefinitionResource" /> class. /// </summary> /// <param name="Description">The description of the property.</param> /// <param name="FieldList">A list of the fields on both the property definition and property of this type.</param> /// <param name="FriendlyName">The friendly front-facing name of the property.</param> /// <param name="Name">The name of the property (required).</param> /// <param name="OptionLabelPath">The JSON path to the option label.</param> /// <param name="OptionValuePath">The JSON path to the option value.</param> /// <param name="OptionsUrl">URL of service containing the property options (assumed JSON array).</param> /// <param name="Required">Whether the property is required (required).</param> /// <param name="Type">The type of the property. Used for polymorphic type recognition and thus must match an expected type with additional properties. (required).</param> /// <param name="AllowAdditional">Whether to allow additional properties beyond those specified or not.</param> /// <param name="Properties">If provided, a list of property definitions for each map entry.</param> public MapPropertyDefinitionResource(string Description = default(string), PropertyFieldListResource FieldList = default(PropertyFieldListResource), string FriendlyName = default(string), string Name = default(string), string OptionLabelPath = default(string), string OptionValuePath = default(string), string OptionsUrl = default(string), bool?Required = default(bool?), string Type = default(string), bool?AllowAdditional = default(bool?), List <PropertyDefinitionResource> Properties = default(List <PropertyDefinitionResource>)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for MapPropertyDefinitionResource and cannot be null"); } else { this.Name = Name; } // to ensure "Required" is required (not null) if (Required == null) { throw new InvalidDataException("Required is a required property for MapPropertyDefinitionResource and cannot be null"); } else { this.Required = Required; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for MapPropertyDefinitionResource and cannot be null"); } else { this.Type = Type; } this.Description = Description; this.FieldList = FieldList; this.FriendlyName = FriendlyName; this.OptionLabelPath = OptionLabelPath; this.OptionValuePath = OptionValuePath; this.OptionsUrl = OptionsUrl; this.AllowAdditional = AllowAdditional; this.Properties = Properties; }