/// <summary> /// Initializes a new instance of the <see cref="DevicePresentation" /> class. /// </summary> /// <param name="mnmn">The name of the manufacturer (required).</param> /// <param name="vid">A unique identifier for the presentation of a device. This can be a model number on legacy device integrations, but also may be a system generated UUID based on a device's structure and display configuration. (required).</param> /// <param name="version">The version of the device presentation. (default to "0.0.1").</param> /// <param name="iconUrl">DEPRECATED: Please use iconUrl under icons property..</param> /// <param name="icons">icons.</param> /// <param name="dashboard">dashboard.</param> /// <param name="detailView">detailView.</param> /// <param name="automation">automation.</param> /// <param name="dpInfo">Information used for obtaining details page plugins on different platforms. Array of Details page link objects. (required).</param> /// <param name="language">language.</param> public DevicePresentation(string mnmn = default(string), string vid = default(string), string version = "0.0.1", string iconUrl = default(string), List <Object> icons = default(List <Object>), Dashboard dashboard = default(Dashboard), List <DetailViewListItem> detailView = default(List <DetailViewListItem>), Automation automation = default(Automation), List <Object> dpInfo = default(List <Object>), List <LanguageItem> language = default(List <LanguageItem>)) { // to ensure "mnmn" is required (not null) if (mnmn == null) { throw new ArgumentNullException("mnmn is a required property for DevicePresentation and cannot be null"); } this.Mnmn = mnmn; // to ensure "vid" is required (not null) if (vid == null) { throw new ArgumentNullException("vid is a required property for DevicePresentation and cannot be null"); } this.Vid = vid; // to ensure "dpInfo" is required (not null) if (dpInfo == null) { throw new ArgumentNullException("dpInfo is a required property for DevicePresentation and cannot be null"); } this.DpInfo = dpInfo; // use default value if no "version" provided this._Version = version ?? "0.0.1"; this.IconUrl = iconUrl; this.Icons = icons; this.Dashboard = dashboard; this.DetailView = detailView; this.Automation = automation; this.Language = language; }
/// <summary> /// Initializes a new instance of the <see cref="DevicePresentation" /> class. /// </summary> /// <param name="mnmn">The name of the manufacturer (required).</param> /// <param name="vid">A unique identifier for the presentation of a device. This can be a model number on legacy device integrations, but also may be a system generated UUID based on a device's structure and display configuration. (required).</param> /// <param name="iconUrl">Preloaded iconId or URL used to retrieve icons to be drawn on the UI Client..</param> /// <param name="dashboard">dashboard.</param> /// <param name="detailView">detailView.</param> /// <param name="automation">automation.</param> /// <param name="dpInfo">Information used for obtaining details page plugins on different platforms. Array of Details page link objects. (required).</param> /// <param name="language">language.</param> public DevicePresentation(string mnmn = default(string), string vid = default(string), string iconUrl = default(string), Dashboard dashboard = default(Dashboard), List <DetailViewListItem> detailView = default(List <DetailViewListItem>), Automation automation = default(Automation), List <Object> dpInfo = default(List <Object>), List <LanguageItem> language = default(List <LanguageItem>)) { // to ensure "mnmn" is required (not null) this.Mnmn = mnmn ?? throw new ArgumentNullException("mnmn is a required property for DevicePresentation and cannot be null"); // to ensure "vid" is required (not null) this.Vid = vid ?? throw new ArgumentNullException("vid is a required property for DevicePresentation and cannot be null"); // to ensure "dpInfo" is required (not null) this.DpInfo = dpInfo ?? throw new ArgumentNullException("dpInfo is a required property for DevicePresentation and cannot be null"); this.IconUrl = iconUrl; this.Dashboard = dashboard; this.DetailView = detailView; this.Automation = automation; this.Language = language; }