public void RefreshActivePageListCache()
        {
            using (var client = new ActivityClient())
            {
                var request = new ActivtyPageRequest()
                {
                    HashKey = "F3AC38EC",

                    Channel      = "wap",
                    OrderChannel = "kH5"
                };
                var result = client.RefreshActivePageListModelCache(request);
                Assert.IsNotNull(result.Result);
            }
        }
 public void GetActivePageListModel()
 {
     using (var client = new ActivityClient())
     {
         var request = new ActivtyPageRequest()
         {
             HashKey      = "3E8593F0",
             Channel      = "wap",
             OrderChannel = "kH5",
             UserId       = new Guid("1ab0fa62-91bb-4fe7-8cf2-eb57367463d4"),
             Width        = "205",
             AspectRatio  = "55",
             Rim          = "16",
             CityId       = "1",
             VehiclId     = "VE-JEJ7YSDZ",
             Tid          = "108627"
         };
         var result = client.GetActivePageListModel(request);
         Assert.IsNotNull(result.Result);
     }
 }
 public void GetActivePageListModel()
 {
     using (var client = new ActivityClient())
     {
         var request = new ActivtyPageRequest()
         {
             HashKey      = "0C96F72A",
             Channel      = "wap",
             OrderChannel = "kH5",
             UserId       = Guid.Empty,
             Width        = "215",
             AspectRatio  = "55",
             Rim          = "17",
             CityId       = "1",
             VehiclId     = "VE-PEUG508L",
             Tid          = "14601"
         };
         //var result = client.GetActivePageListModel(request);
         var result2 = client.GetActivePageListModelZip(request);
         //Assert.IsNotNull(result.Result);
     }
 }
 public async Task <OperationResult <bool> > RefreshActivePageListModelCacheAsync(ActivtyPageRequest request)
 {
     return
         (OperationResult.FromResult(await ActivityManager.RefreshActivePageListModelCache(request.Id,
                                                                                           request.Channel, request.HashKey)));
 }
 public async Task <OperationResult <ActivePageListModel> > GetActivePageListModelAsync(ActivtyPageRequest request)
 {
     if (!string.IsNullOrEmpty(request.CityId) && !int.TryParse(request.CityId, out int region))
     {
         return(OperationResult.FromError <ActivePageListModel>(ErrorCode.ParameterError, "城市id传的不对"));
     }
     return(OperationResult.FromResult(await ActivityManager.GetActivePageListModel(request.Id, request, request.HashKey)));
 }