Esempio n. 1
0
        public async Task <Result> RestartTcp()
        {
            var tcp = new TcpServer();

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

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

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

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

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