Ejemplo n.º 1
0
        public IftttTestingModule(ILinnApiActions actions)
        {
            this.actions = actions;
            this.RequiresIftttServiceKey();

            this.Post("/ifttt/v1/test/setup", this.GenerateTestData);
        }
Ejemplo n.º 2
0
        public ActionsModule(ILinnApiActions linnApiProxy)
        {
            this.linnApiProxy = linnApiProxy;

            this.RequiresAccessToken();

            this.Post("/ifttt/v1/actions/turn_off_all_devices", this.TurnOffAllDevices);
            this.Post("/ifttt/v1/actions/turn_off_device", this.TurnOffDevice);
            this.Post("/ifttt/v1/actions/turn_off_device/fields/device_id/options", this.ListDevices);
            this.Post("/ifttt/v1/actions/play_single_media", this.PlaySingleMedia);
            this.Post("/ifttt/v1/actions/play_single_media/fields/device_id/options", this.ListDevices);
            this.Post("/ifttt/v1/actions/play_playlist", this.PlayPlaylist);
            this.Post("/ifttt/v1/actions/play_playlist/fields/device_id/options", this.ListDevices);
            this.Post("/ifttt/v1/actions/play_playlist/fields/playlist_id/options", this.ListPlaylists);
            this.Post("/ifttt/v1/actions/mute_device", this.MuteDevice);
            this.Post("/ifttt/v1/actions/mute_device/fields/device_id/options", this.ListDevices);
            this.Post("/ifttt/v1/actions/unmute_device", this.UnmuteDevice);
            this.Post("/ifttt/v1/actions/unmute_device/fields/device_id/options", this.ListDevices);
            this.Post("/ifttt/v1/actions/invoke_pin", this.InvokePin);
            this.Post("/ifttt/v1/actions/invoke_pin/fields/device_id/options", this.ListDevices);
        }