Пример #1
0
        public LogoutRs callLogout(LogoutRq request)
        {
            string serviceUrl = ServiceURL.ipServer + ServiceURL.logoutUrl;
            String resJSON    = CallServices.callPost(serviceUrl, request);

            return(JObject.Parse(resJSON).ToObject <LogoutRs>());
        }
Пример #2
0
        public UIReturn LogutMember()
        {
            LogoutRq req = LoginService.getInstance().getLogoutRq(SessionModel.loginMember);
            LogoutRs res = LoginService.getInstance().callLogout(req);

            if (res.header.isSuccess)
            {
                SessionModel.loginMember = null;
                App.Database.DeleteItem(DBConstants.ID_LOGIN_MEMBER);
            }

            UIReturn ret = new UIReturn(res.header);

            return(ret);
        }
Пример #3
0
        public LogoutRq getLogoutRq(Member input)
        {
            LogoutRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <LogoutRq>();

            return(ret);
        }