private void ResponseCreateAccount(RequestMsg_CreateAccount msg, int hostId, int connectionId) { Debug.Log(string.Format("RequestMsg_CreateAccount: {0},{1},{2}", msg.Username, msg.Password, msg.Email)); MessageEnums.Status s = mongo.InsertAccount(msg.Username, msg.Password, msg.Email); ResponseMsg_CreateAccount responseMsg = new ResponseMsg_CreateAccount(s); SendToClient(hostId, connectionId, responseMsg); }
public ResponseMsg_Login(MessageEnums.Status Status, Account account) { op = MessageEnums.OperationCode.LoginResponse; this.Status = Status; if (Status != MessageEnums.Status.OK) { return; } this.Username = account.Username; this.Discriminator = account.Discriminator; this.Token = account.Token; this.Email = account.Email; }
public ResponseMsg_CreateAccount(MessageEnums.Status status) { op = MessageEnums.OperationCode.CreateAccountResponse; this.Status = status; }
public ResponseMsg_FollowList(MessageEnums.Status status, List <PublicInfo> follows) { op = MessageEnums.OperationCode.FollowListResponse; this.Status = status; this.Follows = follows; }
public ResponseMsg_FollowAddRemove(MessageEnums.Status status, PublicInfo follow) { op = MessageEnums.OperationCode.FollowAddRemoveResponse; this.Status = status; this.Follow = follow; }