public List <CampConfig> GetCampInfo() { _client = new CampEventsService.CampEventsServiceClient(); List <CampConfig> result = new List <CampConfig>(); try { result = _client.GetCampInfo(); _client.Close(); return(result); } catch (Exception ex) { _client.CloseCatch(ex, "GetCampInfo Failed"); return(result); } }
public List <RankListTop20> GetRankListTop20(UserInfo userinfo) { _client = new CampEventsService.CampEventsServiceClient(); List <RankListTop20> result = new List <RankListTop20>(); try { result = _client.GetRankListTop20(userinfo); _client.Close(); return(result); } catch (Exception ex) { _client.CloseCatch(ex, "GetRankListTop20 Failed"); return(result); } }
public ResultInfo GetUserInfo(UserInfo userinfo) { _client = new CampEventsService.CampEventsServiceClient(); ResultInfo result = new ResultInfo() { Result = ErrorCode.UnSuccessful }; try { result = _client.GetUserInfo(userinfo); _client.Close(); return(result); } catch (Exception ex) { _client.CloseCatch(ex, "GetUserInfo Failed"); return(result); } }