コード例 #1
0
 public void SwitchReceiverOff()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("PWR", "00"));
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("PWR", "QSTN"));
 }
コード例 #2
0
 public void SetVolume(int level)
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("MVL", level.ToString("X")));
     Thread.Sleep(500);
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("MVL", "QSTN"));
 }
コード例 #3
0
 public void VolumeUp()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("MVL", "UP"));
     Thread.Sleep(500);
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("MVL", "QSTN"));
 }
コード例 #4
0
 public void SwitchReceiverOn()
 {
     if (!currentState.CurrentPowerState)
     {
         SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                              ContructReceiverMessage("PWR", "01"));
         //System.Threading.Thread.Sleep(7000);
     }
 }
コード例 #5
0
 public bool InitiateConnectionToReceiver()
 {
     SocketsHelper.ConnectToTCPSocketAndListenToCallback(localEndPoint, targetEndPoint, ProcessReceivedMessage,
                                                         ContructReceiverMessage("PWR", "QSTN"), null, ProcessReceivedMessage);
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("PWR", "QSTN"));
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("MVL", "QSTN"));
     return(true);
 }
コード例 #6
0
 public void ClickOk()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("NTC", "SELECT"));
 }
コード例 #7
0
 public void SelectItemFromTheList(int itemNumber)
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("NLS", "L" + itemNumber.ToString()));
 }
コード例 #8
0
 public void OpenTvCd()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("SLI", "23"));
 }
コード例 #9
0
 public void UnMute()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("AMT", "00"));
 }
コード例 #10
0
 public void OpenNetworkFavorites()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("SLI", "28"));
     //System.Threading.Thread.Sleep(1500);
 }
コード例 #11
0
 public void SwitchTVOff()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("CTV", "PWROFF"));
 }
コード例 #12
0
 public void Back()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("NTC", "RETURN"));
 }
コード例 #13
0
 public void Stop()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          ContructReceiverMessage("NTC", "STOP"));
 }
コード例 #14
0
 private void SendKeyMessageToTV(string key)
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          Encoding.ASCII.GetBytes(ConstructKeyMessage(key)));
 }
コード例 #15
0
 private void SendConnectionMessageToTV()
 {
     SocketsHelper.SendMessageToTCPSocket(localEndPoint, targetEndPoint,
                                          Encoding.ASCII.GetBytes(ConstructConnectionMessage()));
 }