public override void Join(string data) { string sendString = "{\"cmd\":\"join_launcher\",\"l_code\":\"" + launcherCode + "\",\"package_name\":\"" + data + "\"}" + DATA_DELIMITER; UXConnectController.SetRoomNumber(launcherCode); UXLog.SetLogMessage("sen" + sendString); Send(sendString); }
public void GetFirstUser() { string sendString = "{\"cmd\":\"first_user\",\"l_code\":\"" + UXConnectController.GetRoomNumber() + "\"}" + DATA_DELIMITER; Send(sendString); }
/** Send leave message */ public void Leave() { UXPlayerController player = UXPlayerController.Instance; string sendString = "{\"cmd\":\"leave_user\",\"u_code\":\"" + player.GetCode() + "\",\"l_code\":\"" + UXConnectController.GetRoomNumber() + "\"}" + DATA_DELIMITER; Send(sendString); }
/** Send message to server * @param data left,right - Scroll direction, click - click index * @param buttonType "ok", "up", "down", "left", "right", "back", "click" */ public void SendData(string data, string buttonType) { UXPlayerController player = UXPlayerController.Instance; string sendString = "{\"cmd\":\"pad_button_touch\",\"u_code\":\"" + player.GetCode() + "\",\"l_code\":\"" + UXConnectController.GetRoomNumber() + "\",\"data\":\"" + data + "\",\"button_type\":\"" + buttonType + "\"}" + DATA_DELIMITER; Send(sendString); }