public VingroupCardResponse GetListVingroupcardByUserId(int userId) { var response = new VingroupCardResponse(); try { var request = new UserInfoRequest() { UserId = userId }; IHttpOrderClient client = new HttpOrderClient(Publickey, true); var dic = new Dictionary <string, string>(); var url = GetUrl(BusinessObjectPublicUser.RequestFunction.GetListVingroupCardByUserId); var result = client.Post(request, url, dic, Appid, Uid); if (result != null && result.ResponseData != null) { Status = result.Status; ResponseMessage = result.Message; return(SerializerObject.ProtoBufDeserialize <VingroupCardResponse>(result.ResponseData, client.Saltkey)); } return(null); } catch (Exception exception) { Status = 0; ResponseMessage = SetResponseMessage(exception); return(null); } }
public VingroupCardResponse GetListVingroupcardByUserId(int userId) { var response = new VingroupCardResponse(); try { var request = new UserInfoRequest() { UserId = userId }; IHttpOrderClient client = new HttpOrderClient(Publickey, true); var dic = new Dictionary<string, string>(); var url = GetUrl(BusinessObjectPublicUser.RequestFunction.GetListVingroupCardByUserId); var result = client.Post(request, url, dic, Appid, Uid); if (result != null && result.ResponseData != null) { Status = result.Status; ResponseMessage = result.Message; return SerializerObject.ProtoBufDeserialize<VingroupCardResponse>(result.ResponseData, client.Saltkey); } return null; } catch (Exception exception) { Status = 0; ResponseMessage = SetResponseMessage(exception); return null; } }