void ReaderHandlerRegister(string text, string username, SqlRegisterCallback callback)
    {
        RegisterCommandLog command = RegisterCommandLog.none;

        string[] lines = text.Split('|');

        RegisterResponse registerReponse = new RegisterResponse();

        if (RegisterCommandLog.TryParse(lines[0].Substring(0, lines[0].IndexOf(':')), out command))
        {
            registerReponse.command  = command;
            registerReponse.userName = username;
        }
        callback(registerReponse);
    }
Beispiel #2
0
 public RegisterResponse()
 {
     command  = RegisterCommandLog.none;
     userName = "";
 }