コード例 #1
0
ファイル: Config.cs プロジェクト: jebbett/Plex2SmartThings
            public DelayItem(string typ, string evnt, int delay)
            {
                Type = typ;
                Event = evnt;
                Delay = delay;

                if (Event == "play") PlayState = UserStateManager.PlayStates.PLAY;
                else if (Event == "pause") PlayState = UserStateManager.PlayStates.PAUSE;
                else if (Event == "stop") PlayState = UserStateManager.PlayStates.STOP;
            }
コード例 #2
0
ファイル: Config.cs プロジェクト: tunstetb/Plex2SmartThings
            public DelayItem(string typ, string evnt, int delay)
            {
                Type  = typ;
                Event = evnt;
                Delay = delay;

                if (Event == "play")
                {
                    PlayState = UserStateManager.PlayStates.PLAY;
                }
                else if (Event == "pause")
                {
                    PlayState = UserStateManager.PlayStates.PAUSE;
                }
                else if (Event == "stop")
                {
                    PlayState = UserStateManager.PlayStates.STOP;
                }
            }