/// <summary> /// Initializes a new instance of the <see cref="SceneRequest" /> class. /// </summary> /// <param name="sceneName">The user-defined name of the Scene (required).</param> /// <param name="sceneIcon">The name of the icon.</param> /// <param name="sceneColor">The color of the icon.</param> /// <param name="devices">Non-sequential list of device actions (required).</param> /// <param name="sequences">List of parallel action sequences.</param> /// <param name="mode">mode.</param> /// <param name="securityMode">securityMode.</param> /// <param name="devicegroups">List of device group actions.</param> public SceneRequest(string sceneName = default(string), string sceneIcon = default(string), string sceneColor = default(string), List <SceneDeviceRequest> devices = default(List <SceneDeviceRequest>), List <List <string> > sequences = default(List <List <string> >), SceneModeRequest mode = default(SceneModeRequest), SceneSecurityModeRequest securityMode = default(SceneSecurityModeRequest), List <SceneDeviceGroupRequest> devicegroups = default(List <SceneDeviceGroupRequest>)) { // to ensure "sceneName" is required (not null) if (sceneName == null) { throw new ArgumentNullException("sceneName is a required property for SceneRequest and cannot be null"); } this.SceneName = sceneName; // to ensure "devices" is required (not null) if (devices == null) { throw new ArgumentNullException("devices is a required property for SceneRequest and cannot be null"); } this.Devices = devices; this.SceneIcon = sceneIcon; this.SceneColor = sceneColor; this.Sequences = sequences; this.Mode = mode; this.SecurityMode = securityMode; this.Devicegroups = devicegroups; }
/// <summary> /// Initializes a new instance of the <see cref="SceneAction" /> class. /// </summary> /// <param name="deviceRequest">deviceRequest.</param> /// <param name="modeRequest">modeRequest.</param> /// <param name="sleepRequest">sleepRequest.</param> /// <param name="deviceGroupRequest">deviceGroupRequest.</param> public SceneAction(SceneDeviceRequest deviceRequest = default(SceneDeviceRequest), SceneModeRequest modeRequest = default(SceneModeRequest), SceneSleepRequest sleepRequest = default(SceneSleepRequest), SceneDeviceGroupRequest deviceGroupRequest = default(SceneDeviceGroupRequest)) { this.DeviceRequest = deviceRequest; this.ModeRequest = modeRequest; this.SleepRequest = sleepRequest; this.DeviceGroupRequest = deviceGroupRequest; }