예제 #1
0
        public async Task <Result> RestartTcp()
        {
            var tcp = new TcpServer();

            return(await tcp.SendCommandToServer <Result>(TcpCommands.Pandora.PANDORA_RESTART));
        }
예제 #2
0
        public async Task <Result> StopTcp()
        {
            var tcp = new TcpServer();

            return(await tcp.SendCommandToServer <Result>(TcpCommands.Pandora.PANDORA_STOP));
        }
예제 #3
0
        public async Task <Result> TimerTcp()
        {
            var tcp = new TcpServer();

            return(await tcp.SendCommandToServer <Result>(TcpCommands.SmartHouse.TIMER));
        }
예제 #4
0
        public async Task <Result> RestartOpenVPNServiceTcp()
        {
            var tcp = new TcpServer();

            return(await tcp.SendCommandToServer <Result>(TcpCommands.SmartHouse.RESTART_VPN));
        }
예제 #5
0
        public async Task <Result> PlayAlarmTcp()
        {
            var tcp = new TcpServer();

            return(await tcp.SendCommandToServer <Result>(TcpCommands.SmartHouse.PLAY_ALARM));
        }