コード例 #1
0
 public static GroupResponse from(Shared.ResponseEnvelope response)
 {
     if (response.response != null)
     {
         GroupResponse result = ((JObject)response.response).ToObject <GroupResponse>();
         return(result);
     }
     return(null);
 }
コード例 #2
0
 public static PromotedListResponse from(Shared.ResponseEnvelope response)
 {
     if (response.pagination != null || response.products != null)
     {
         PromotedListResponse result = new PromotedListResponse();
         result.pagination = response.pagination;
         result.products   = ((JArray)response.products).ToObject <List <PromotedListItem> >();
         return(result);
     }
     return(null);
 }