示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateDeviceConfigRequest" /> class.
 /// </summary>
 /// <param name="type">type (default to TypeEnum.Profile).</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>
 public CreateDeviceConfigRequest(TypeEnum?type = TypeEnum.Profile, string iconUrl = default(string), CreateDeviceConfigRequestDashboard dashboard = default(CreateDeviceConfigRequestDashboard), List <DeviceConfigEntry> detailView = default(List <DeviceConfigEntry>), CreateDeviceConfigRequestAutomation automation = default(CreateDeviceConfigRequestAutomation))
 {
     this.Type       = type;
     this.IconUrl    = iconUrl;
     this.Dashboard  = dashboard;
     this.DetailView = detailView;
     this.Automation = automation;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConfiguration" /> 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="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">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>
 public DeviceConfiguration(string mnmn = default(string), string vid = default(string), TypeEnum?type = TypeEnum.Profile, List <Object> dpInfo = default(List <Object>), string iconUrl = default(string), CreateDeviceConfigRequestDashboard dashboard = default(CreateDeviceConfigRequestDashboard), List <DeviceConfigEntry> detailView = default(List <DeviceConfigEntry>), CreateDeviceConfigRequestAutomation automation = default(CreateDeviceConfigRequestAutomation))
 {
     // to ensure "mnmn" is required (not null)
     this.Mnmn = mnmn ?? throw new ArgumentNullException("mnmn is a required property for DeviceConfiguration and cannot be null");
     // to ensure "vid" is required (not null)
     this.Vid        = vid ?? throw new ArgumentNullException("vid is a required property for DeviceConfiguration and cannot be null");
     this.Type       = type;
     this.DpInfo     = dpInfo;
     this.IconUrl    = iconUrl;
     this.Dashboard  = dashboard;
     this.DetailView = detailView;
     this.Automation = automation;
 }