com.mizhousoft.weixin.mp.domain.material.WxMpMaterialNewsBatchGetResult Maven / Gradle / Ivy
The newest version!
package com.mizhousoft.weixin.mp.domain.material;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mizhousoft.weixin.common.WxError;
/**
* 永久图文消息素材
*
*/
public class WxMpMaterialNewsBatchGetResult extends WxError
{
// 该类型的素材的总数
@JsonProperty("total_count")
private int totalCount;
// 本次调用获取的素材的数量
@JsonProperty("item_count")
private int itemCount;
// 素材
@JsonProperty("item")
private List items;
/**
* 获取totalCount
*
* @return
*/
public int getTotalCount()
{
return totalCount;
}
/**
* 设置totalCount
*
* @param totalCount
*/
public void setTotalCount(int totalCount)
{
this.totalCount = totalCount;
}
/**
* 获取itemCount
*
* @return
*/
public int getItemCount()
{
return itemCount;
}
/**
* 设置itemCount
*
* @param itemCount
*/
public void setItemCount(int itemCount)
{
this.itemCount = itemCount;
}
/**
* 获取items
*
* @return
*/
public List getItems()
{
return items;
}
/**
* 设置items
*
* @param items
*/
public void setItems(List items)
{
this.items = items;
}
/**
*
* @return
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("{\"totalCount\":\"");
builder.append(totalCount);
builder.append("\", \"itemCount\":\"");
builder.append(itemCount);
builder.append("\", \"items\":\"");
builder.append(items);
builder.append("\", \"errorCode\":\"");
builder.append(errorCode);
builder.append("\", \"errorMsg\":\"");
builder.append(errorMsg);
builder.append("\"}");
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy