Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneDeviceGroup" /> class.
 /// </summary>
 /// <param name="deviceGroupId">the id of the device.</param>
 /// <param name="capability">capability.</param>
 public SceneDeviceGroup(string deviceGroupId = default(string), SceneCapability capability = default(SceneCapability))
 {
     this.DeviceGroupId = deviceGroupId;
     this.Capability    = capability;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneDeviceGroupRequest" /> class.
 /// </summary>
 /// <param name="deviceGroupId">the id of the device group (required).</param>
 /// <param name="actionId">the id of the action to be created. Optional, sent by Reaver only.</param>
 /// <param name="capability">capability.</param>
 public SceneDeviceGroupRequest(string deviceGroupId = default(string), string actionId = default(string), SceneCapability capability = default(SceneCapability))
 {
     // to ensure "deviceGroupId" is required (not null)
     if (deviceGroupId == null)
     {
         throw new ArgumentNullException("deviceGroupId is a required property for SceneDeviceGroupRequest and cannot be null");
     }
     this.DeviceGroupId = deviceGroupId;
     this.ActionId      = actionId;
     this.Capability    = capability;
 }