private bool SendToClient(GwentClient Client, Package pkg) { Client.SendMessage(pkg); Package RecievedRkg = Client.GetMessage(); if ((RecievedRkg as ICommandable).Command != ConfigurationManager.AppSettings["IsGood"]) { return(false); } else { return(true); } }
private Package GetFromClient(GwentClient Client) { Package RecivedPkg = Client.GetMessage(); return(RecivedPkg); }