public LogoutRs callLogout(LogoutRq request) { string serviceUrl = ServiceURL.ipServer + ServiceURL.logoutUrl; String resJSON = CallServices.callPost(serviceUrl, request); return(JObject.Parse(resJSON).ToObject <LogoutRs>()); }
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); }
public LogoutRq getLogoutRq(Member input) { LogoutRq ret = JObject.Parse(JsonConvert.SerializeObject(input)).ToObject <LogoutRq>(); return(ret); }