using Server.System; using Newtonsoft.Json; namespace Server.Service { public class UseItem : AbstractService { private UseItemReq req; public override string Process() { return makeResp(); } public override Protocol ProtocolValue() => Protocol.UseItem; public override Req Requst(string json) { req = JsonConvert.DeserializeObject(json); return req; } private string makeResp() { UseItemResp resp = new UseItemResp(); resp.status = 200; return resp.ToJson(); } } public class UseItemReq : Req { public override bool IsReceivedAllField() { return true; } } public class UseItemResp : Resp { } }