@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class AlipayOpenPublicLifeMsgSendModel extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AlipayOpenPublicLifeMsgSendModel.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CATEGORY |
static String |
SERIALIZED_NAME_CONTENT |
static String |
SERIALIZED_NAME_DESC |
static String |
SERIALIZED_NAME_MSG_TYPE |
static String |
SERIALIZED_NAME_SOURCE_EXT_INFO |
static String |
SERIALIZED_NAME_TITLE |
static String |
SERIALIZED_NAME_UNIQUE_MSG_ID |
static String |
SERIALIZED_NAME_VIDEO_LENGTH |
static String |
SERIALIZED_NAME_VIDEO_SAMPLES |
static String |
SERIALIZED_NAME_VIDEO_SIZE |
static String |
SERIALIZED_NAME_VIDEO_SOURCE |
static String |
SERIALIZED_NAME_VIDEO_TEMPORARY_URL |
static String |
SERIALIZED_NAME_VIDEO_URL |
| 构造器和说明 |
|---|
AlipayOpenPublicLifeMsgSendModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
AlipayOpenPublicLifeMsgSendModel |
addVideoSamplesItem(String videoSamplesItem) |
AlipayOpenPublicLifeMsgSendModel |
category(String category) |
AlipayOpenPublicLifeMsgSendModel |
content(String content) |
AlipayOpenPublicLifeMsgSendModel |
desc(String desc) |
boolean |
equals(Object o) |
static AlipayOpenPublicLifeMsgSendModel |
fromJson(String jsonString)
Create an instance of AlipayOpenPublicLifeMsgSendModel given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getCategory()
消息分类,请传入对应分类编码值
|
String |
getContent()
消息正文,html原文或纯文本
|
String |
getDesc()
消息概述
|
String |
getMsgType()
媒体资讯类生活号消息类型
|
String |
getSourceExtInfo()
消息来源方附属信息,供搜索、推荐使用 publish_time(int):消息发布时间,单位秒 keyword_list(String): 文章的标签列表,英文逗号分隔 comment(int):消息来源处评论次数 reward(int):消息来源处打赏次数 is_recommended(boolean):消息在来源处是否被推荐 is_news(boolean):消息是否实时性内容 read(int):消息在来源处被阅读次数 like(int):消息在来源处被点赞次数 is_hot(boolean):消息在来源平台是否是热门内容 share(int):文章在来源平台的分享次数 deadline(int):文章的失效时间,单位秒
|
String |
getTitle()
消息标题
|
String |
getUniqueMsgId()
来源方消息唯一标识;若不为空,根据此id和生活号id对消息去重;若为空,不去重
|
String |
getVideoLength()
生活号消息视频时长,单位:秒(视频类消息必填)
|
List<String> |
getVideoSamples()
视频类型消息中视频抽样关键帧截图,视频类消息选填
|
String |
getVideoSize()
视频大小,单位:KB(视频类消息必填)
|
String |
getVideoSource()
视频资源来源id(视频类消息必填),取值限定youku, miaopai, taobao, sina中的一个
|
String |
getVideoTemporaryUrl()
视频的临时链接(优酷来源的视频消息,该字段不能为空)
|
String |
getVideoUrl()
生活号视频类消息视频id或url(视频类消息必填,根据来源区分)
|
int |
hashCode() |
AlipayOpenPublicLifeMsgSendModel |
msgType(String msgType) |
AlipayOpenPublicLifeMsgSendModel |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCategory(String category) |
void |
setContent(String content) |
void |
setDesc(String desc) |
void |
setMsgType(String msgType) |
void |
setSourceExtInfo(String sourceExtInfo) |
void |
setTitle(String title) |
void |
setUniqueMsgId(String uniqueMsgId) |
void |
setVideoLength(String videoLength) |
void |
setVideoSamples(List<String> videoSamples) |
void |
setVideoSize(String videoSize) |
void |
setVideoSource(String videoSource) |
void |
setVideoTemporaryUrl(String videoTemporaryUrl) |
void |
setVideoUrl(String videoUrl) |
AlipayOpenPublicLifeMsgSendModel |
sourceExtInfo(String sourceExtInfo) |
AlipayOpenPublicLifeMsgSendModel |
title(String title) |
String |
toJson()
Convert an instance of AlipayOpenPublicLifeMsgSendModel to an JSON string
|
String |
toString() |
AlipayOpenPublicLifeMsgSendModel |
uniqueMsgId(String uniqueMsgId) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
AlipayOpenPublicLifeMsgSendModel |
videoLength(String videoLength) |
AlipayOpenPublicLifeMsgSendModel |
videoSamples(List<String> videoSamples) |
AlipayOpenPublicLifeMsgSendModel |
videoSize(String videoSize) |
AlipayOpenPublicLifeMsgSendModel |
videoSource(String videoSource) |
AlipayOpenPublicLifeMsgSendModel |
videoTemporaryUrl(String videoTemporaryUrl) |
AlipayOpenPublicLifeMsgSendModel |
videoUrl(String videoUrl) |
public static final String SERIALIZED_NAME_SOURCE_EXT_INFO
public static final String SERIALIZED_NAME_VIDEO_TEMPORARY_URL
public AlipayOpenPublicLifeMsgSendModel category(String category)
public void setCategory(String category)
public AlipayOpenPublicLifeMsgSendModel content(String content)
public void setContent(String content)
public AlipayOpenPublicLifeMsgSendModel desc(String desc)
public void setDesc(String desc)
public AlipayOpenPublicLifeMsgSendModel msgType(String msgType)
public void setMsgType(String msgType)
public AlipayOpenPublicLifeMsgSendModel sourceExtInfo(String sourceExtInfo)
@Nullable public String getSourceExtInfo()
public void setSourceExtInfo(String sourceExtInfo)
public AlipayOpenPublicLifeMsgSendModel title(String title)
public void setTitle(String title)
public AlipayOpenPublicLifeMsgSendModel uniqueMsgId(String uniqueMsgId)
@Nullable public String getUniqueMsgId()
public void setUniqueMsgId(String uniqueMsgId)
public AlipayOpenPublicLifeMsgSendModel videoLength(String videoLength)
public void setVideoLength(String videoLength)
public AlipayOpenPublicLifeMsgSendModel videoSamples(List<String> videoSamples)
public AlipayOpenPublicLifeMsgSendModel addVideoSamplesItem(String videoSamplesItem)
@Nullable public List<String> getVideoSamples()
public AlipayOpenPublicLifeMsgSendModel videoSize(String videoSize)
public void setVideoSize(String videoSize)
public AlipayOpenPublicLifeMsgSendModel videoSource(String videoSource)
@Nullable public String getVideoSource()
public void setVideoSource(String videoSource)
public AlipayOpenPublicLifeMsgSendModel videoTemporaryUrl(String videoTemporaryUrl)
@Nullable public String getVideoTemporaryUrl()
public void setVideoTemporaryUrl(String videoTemporaryUrl)
public AlipayOpenPublicLifeMsgSendModel videoUrl(String videoUrl)
public void setVideoUrl(String videoUrl)
public AlipayOpenPublicLifeMsgSendModel putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to AlipayOpenPublicLifeMsgSendModelpublic static AlipayOpenPublicLifeMsgSendModel fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to AlipayOpenPublicLifeMsgSendModelpublic String toJson()
Copyright © 2024. All rights reserved.