public void RequestOutPublicPark(Action <Client, LeavePublicParkResponse> callBack) { LeavePublicParkRequest request = new LeavePublicParkRequest(); AddCallback(callBack, request); SendMessage(request); }
public void LeavePublicParkRequestHandler(LeavePublicParkRequest request) { LeavePublicParkResponse response = new LeavePublicParkResponse(request); this.SendMessage(response); RemovePlayerRequest requestR = new RemovePlayerRequest(); requestR.UserName = this.Email; this.Status = StatusEnum.Validated; foreach (Receiver receiver in Server.Receivers.Where(x => (x != this))) { receiver.SendMessage(requestR); } }
public LeavePublicParkResponse(LeavePublicParkRequest request) : base(request) { }