Пример #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));
        }