public bool SendJoinRequest() { if (cManager && cManager.IsConnected()) { RequestJoin request = new RequestJoin(); request.send(); cManager.send(request); return(true); } return(false); }
private void derp(RequestJoin arg1, ClientConnection arg2) { if (Player1 == null) { Player1 = arg2; } else if (Player2 == null) { Player2 = arg2; } Debug.Log("Observer Joined"); }
public void Execute(string interactionId, string messageText) { try { RequestJoin reqJoin = RequestJoin.Create(interactionId, Visibility.All, MessageText.Create(messageText)); BaseAction action = new ChatJoinAction(Protocol); action.Request = reqJoin; base.CloneSubscription(ref action); action.Execute(); } catch (Exception ex) { ChatLog.GetInstance().LogException(ex); } }
public void autoID() { showAlert("autoId", "임시 계정의 경우 데이터가 동기화 되지 않습니다.", true, false, (AlertData data, bool isOn, string fieldText) => { if (isOn) { if (nickName.text.Length < 2) { showAlert("errorJoin", "닉네임은 최소 2글자 이상 입력하셔야합니다.", false, false, (AlertData d, bool i, string ft) => { }); } else { RequestJoin req = new RequestJoin("auto", nickName.text, "imsi1234"); SocketManager.Instance().sendMessage(req); } } }); }
public void onJoin() { //email.text = "*****@*****.**"; //password.text = "1234"; //nickName.text = "테스터1"; //year.text = "1985"; //month.text = "10"; //day.text = "21"; if (Common.isMailCheck(email.text) == false) { // DialogManager.Instance.ShowSubmitDialog("이메일 형식이 잘못되었습니다.", (bool result) => { // }); // Debug.Log("이메일 실패"); showAlert("errorJoin", "이메일 형식이 잘못되었습니다.", false, false, (AlertData data, bool isOn, string fieldText) => { }); return; } if (password.text.Length < 4) { // DialogManager.Instance.ShowSubmitDialog("비밀번호는 최소 4글자 이상 입력해야합니다.", (bool result) => { // }); // Debug.Log("비밀번호 실패"); showAlert("errorJoin", "비밀번호는 최소 4글자 이상 입력해야합니다.", false, false, (AlertData data, bool isOn, string fieldText) => { }); return; } if (nickName.text.Length < 2) { // DialogManager.Instance.ShowSubmitDialog("닉네임은 최소 2글자 이상 입력하셔야합니다.", (bool result) => { // }); // Debug.Log("닉네임 실패"); showAlert("errorJoin", "닉네임은 최소 2글자 이상 입력하셔야합니다.", false, false, (AlertData data, bool isOn, string fieldText) => { }); return; } string passwordStr = Security.Instance().cryption(password.text, false); RequestJoin req = new RequestJoin(email.text, nickName.text, passwordStr); SocketManager.Instance().sendMessage(req); }
/// <summary> /// 加入聊天室 /// </summary> public void ChatJoin(string interactionID, string userID, string message) { try { RequestJoin joinMessage = null; MessageText msg = MessageText.Create(message); if (!string.IsNullOrEmpty(interactionID)) { joinMessage = RequestJoin.Create(interactionID, Visibility.All, msg); } else { joinMessage = RequestJoin.Create(Visibility.All, "Resources:default", "I have some question.", msg); } this.SendMessage(userID, joinMessage); } catch (Exception ex) { ChatLog.GetInstance().FormatMessage("异常:RequestJoin 失败!TicketID:{0} SessionID:{1}", this.TicketID, this.RoomID); ChatLog.GetInstance().LogException(ex); } }
public void SendJoin() { var msg = new RequestJoin().ToMessage(); SendMessage(msg); }