This commit is contained in:
jinyu
2016-06-11 11:31:37 +08:00
parent 57daea99a8
commit 31a66335a8
11 changed files with 126 additions and 179 deletions
@@ -505,9 +505,9 @@ public class MediaApi extends MpApi {
}
});
} else {
mediaRecord = response
.getAsObject(new TypeReference<MediaRecord>() {
});
obj = response.getAsJson();
obj.put("items", obj.remove("itemlist"));
mediaRecord = JSON.toJavaObject(obj, MediaRecord.class);
}
mediaRecord.setMediaType(mediaType);
mediaRecord.setPageable(pageable);
@@ -4,7 +4,7 @@ import com.foxinmy.weixin4j.mp.type.CardType;
/**
* 卡券
*
*
* @className CardCoupon
* @author jinyu(foxinmy@gmail.com)
* @date 2016年4月4日
@@ -14,8 +14,29 @@ import com.foxinmy.weixin4j.mp.type.CardType;
public interface CardCoupon {
/**
* 卡券类型
*
*
* @return
*/
public CardType getCardType();
/**
* 卡券基本信息
*
* @return
*/
public CouponBaseInfo getBaseInfo();
/**
* 卡券高级信息
*
* @return
*/
public CouponAdvancedInfo getAdvancedInfo();
/**
* 卡券详细信息
*
* @return
*/
public CouponDetailInfo getDetailInfo();
}