Inheritance: ICommandBody
Ejemplo n.º 1
0
        public Task <HueResults> RecallSceneAsync(string sceneId, string groupId = "0")
        {
            if (sceneId == null)
            {
                throw new ArgumentNullException(nameof(sceneId));
            }

            var groupCommand = new SceneCommand()
            {
                Scene = sceneId
            };

            return(this.SendGroupCommandAsync(groupCommand, groupId));
        }
Ejemplo n.º 2
0
    public Task<HueResults> RecallSceneAsync(string sceneId, string groupId = "0")
    {
      if (sceneId == null)
        throw new ArgumentNullException("sceneId");

      var groupCommand = new SceneCommand() { Scene = sceneId };

      return this.SendGroupCommandAsync(groupCommand, groupId);

    }