コード例 #1
0
        public ReserveQueueRs CallReserveQueue(ReserveQueueRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.reserveQueueUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <ReserveQueueRs>());
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }