/// <summary>
 /// Initializes a new instance of the <see cref="PublicDeviceConfiguration" /> 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&#39;s structure and display configuration. (required).</param>
 /// <param name="version">The version of the device configuration. (default to &quot;0.0.1&quot;).</param>
 /// <param name="type">type (default to TypeEnum.Profile).</param>
 /// <param name="dpInfo">Information used for obtaining details page plugins on different platforms. Array of Details page link objects..</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="presentationId">System generated identifier that corresponds to a device presentation (formerly &#x60;vid&#x60;).</param>
 /// <param name="manufacturerName">Secondary namespacing key for grouping presentations (formerly &#x60;mnmn&#x60;).</param>
 public PublicDeviceConfiguration(string mnmn = default(string), string vid = default(string), string version = "0.0.1", TypeEnum?type = TypeEnum.Profile, List <Object> dpInfo = default(List <Object>), string iconUrl = default(string), List <Object> icons = default(List <Object>), CreateProfileDeviceConfigRequestDashboard dashboard = default(CreateProfileDeviceConfigRequestDashboard), List <DeviceConfigEntry> detailView = default(List <DeviceConfigEntry>), CreateProfileDeviceConfigRequestAutomation automation = default(CreateProfileDeviceConfigRequestAutomation), string presentationId = default(string), string manufacturerName = default(string))
 {
     // to ensure "mnmn" is required (not null)
     if (mnmn == null)
     {
         throw new ArgumentNullException("mnmn is a required property for PublicDeviceConfiguration 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 PublicDeviceConfiguration and cannot be null");
     }
     this.Vid = vid;
     // use default value if no "version" provided
     this._Version         = version ?? "0.0.1";
     this.Type             = type;
     this.DpInfo           = dpInfo;
     this.IconUrl          = iconUrl;
     this.Icons            = icons;
     this.Dashboard        = dashboard;
     this.DetailView       = detailView;
     this.Automation       = automation;
     this.PresentationId   = presentationId;
     this.ManufacturerName = manufacturerName;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateDeviceConfigRequest" /> class.
 /// </summary>
 /// <param name="iconUrl">Icon Id used to retrieve icons to be drawn on the UI Client. If iconUrl is omitted, then UI client shows default icon of device&#39;s category..</param>
 /// <param name="icons">icons.</param>
 /// <param name="dashboard">dashboard.</param>
 /// <param name="detailView">detailView.</param>
 /// <param name="automation">automation.</param>
 /// <param name="type">type (default to TypeEnum.Profile).</param>
 public CreateDeviceConfigRequest(string iconUrl = default(string), List <Object> icons = default(List <Object>), CreateProfileDeviceConfigRequestDashboard dashboard = default(CreateProfileDeviceConfigRequestDashboard), List <DeviceConfigEntry> detailView = default(List <DeviceConfigEntry>), CreateProfileDeviceConfigRequestAutomation automation = default(CreateProfileDeviceConfigRequestAutomation), TypeEnum?type = TypeEnum.Profile)
 {
     this.IconUrl    = iconUrl;
     this.Icons      = icons;
     this.Dashboard  = dashboard;
     this.DetailView = detailView;
     this.Automation = automation;
     this.Type       = type;
 }