public ReserveQueueRs CallReserveQueue(ReserveQueueRq request) { string serviceUrl = ServiceURL.ipServer + ServiceURL.reserveQueueUrl; String resJSON = CallServices.callPost(serviceUrl, request); return(JObject.Parse(resJSON).ToObject <ReserveQueueRs>()); }
public ReserveQueueRq getReserveQueueRq(Queue input) { ReserveQueueRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <ReserveQueueRq>(); ret.memberID = SessionModel.loginMember.memberID; ret.queueType = Constants.QUEUE_TYPE_RECHECK; return(ret); }
public ReserveQueueRq getReserveQueueRq(Service input) { ReserveQueueRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <ReserveQueueRq>(); ret.memberID = SessionModel.loginMember.memberID; ret.queueType = Utils.getQueueType(); return(ret); }
public UIReturn reserveQueue(Queue input) { ReserveQueueRq req = ReserveQueueService.getInstance().getReserveQueueRq(input); ReserveQueueRs res = ReserveQueueService.getInstance().CallReserveQueue(req); if (res.header.isSuccess) { SessionModel.bookingQ = res.queue; } UIReturn ret = new UIReturn(res.header); ret.returnObject = res.queue; return(ret); }
public UIReturn reserveQueue(Service input) { Service inputService = SessionModel.services.Find(s => s.serviceID == input.serviceID && s.branchID == input.branchID); ReserveQueueRq req = ReserveQueueService.getInstance().getReserveQueueRq(inputService); ReserveQueueRs res = ReserveQueueService.getInstance().CallReserveQueue(req); if (res.header.isSuccess) { SessionModel.bookingQ = res.queue; } UIReturn ret = new UIReturn(res.header); ret.returnObject = res.queue; return(ret); }