private PushMsgResult ProcessInitiate(ref Msg msg) { PushMsgResult result = PushMsgResult.Ok; if (!IsCommand("INITIATE", ref msg)) { Console.WriteLine("Wrong command received for state " + state); return(PushMsgResult.Error); } return(result); }
private PushMsgResult ProcessHello(ref Msg msg) { PushMsgResult result = PushMsgResult.Ok; if (!IsCommand("WELCOME", ref msg)) { Console.WriteLine("Wrong command received for state " + state); return(PushMsgResult.Error); } // TODO: Check username & password return(result); }