示例#1
0
    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);
    }
示例#2
0
 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;
 }
示例#3
0
 public ResponseMsg_CreateAccount(MessageEnums.Status status)
 {
     op          = MessageEnums.OperationCode.CreateAccountResponse;
     this.Status = status;
 }
示例#4
0
 public ResponseMsg_FollowList(MessageEnums.Status status, List <PublicInfo> follows)
 {
     op           = MessageEnums.OperationCode.FollowListResponse;
     this.Status  = status;
     this.Follows = follows;
 }
示例#5
0
 public ResponseMsg_FollowAddRemove(MessageEnums.Status status, PublicInfo follow)
 {
     op          = MessageEnums.OperationCode.FollowAddRemoveResponse;
     this.Status = status;
     this.Follow = follow;
 }