public RatingRs rating(RatingRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.ratingUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <RatingRs>());
        }
Esempio n. 2
0
        public UIReturn ratingStaff(Queue input)
        {
            RatingRq req = ReserveQueueService.getInstance().getRatingRq(input);
            RatingRs res = ReserveQueueService.getInstance().rating(req);

            if (res.header.isSuccess)
            {
                SessionModel.bookingQ = null;
            }

            UIReturn ret = new UIReturn(res.header);

            return(ret);
        }
        public RatingRq getRatingRq(Queue input)
        {
            RatingRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <RatingRq>();

            return(ret);
        }