using Server.System; using Newtonsoft.Json; namespace Server.Service { public class AwakeTest : AbstractService { private AwakeTestReq req; public override string Process() { return makeResp(); } public override Protocol ProtocolValue() => Protocol.Test; public override Req Requst(string json) { req = JsonConvert.DeserializeObject(json); return req; } private string makeResp() { AwakeTestResp resp = new AwakeTestResp(); resp.status = 200; return resp.ToJson(); } } //요청값 public class AwakeTestReq : Req { public override bool IsReceivedAllField() { if(uuid == string.Empty) return false; return true; } } //반환값 public class AwakeTestResp : Resp { } }