@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class PublishChannel extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PublishChannel.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CONFIG |
static String |
SERIALIZED_NAME_EXT_INFO |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_TYPE |
| 构造器和说明 |
|---|
PublishChannel() |
| 限定符和类型 | 方法和说明 |
|---|---|
PublishChannel |
config(String config) |
boolean |
equals(Object o) |
PublishChannel |
extInfo(String extInfo) |
static PublishChannel |
fromJson(String jsonString)
Create an instance of PublishChannel 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 |
getConfig()
当type为MERCHANT_CROWD时,config需填入口令送的密码和图片,样例如下:\"config\":\"{\\\"PASSWORD\\\":\\\"口令送密码\\\",\\\"BACKGROUND_LOGO\\\":\\\"1T8Pp00AT7eo9NoAJkMR3AAAACMAAQEC\\\"}\"
|
String |
getExtInfo()
扩展信息,无需配置
|
String |
getName()
渠道名称
|
String |
getType()
渠道类型,目前支持以下类型 QR_CODE:二维码投放 SHORT_LINK:短连接投放 SHOP_DETAIL:店铺页投放 PAYMENT_RESULT:支付成功页 MERCHANT_CROWD:口令送 URL_WITH_TOKEN:外部发奖活动,只有活动类型为DIRECT_SEND时才支持 EXTERNAL:外部投放,口碑需要感知任何投放内容
|
int |
hashCode() |
PublishChannel |
name(String name) |
PublishChannel |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setConfig(String config) |
void |
setExtInfo(String extInfo) |
void |
setName(String name) |
void |
setType(String type) |
String |
toJson()
Convert an instance of PublishChannel to an JSON string
|
String |
toString() |
PublishChannel |
type(String type) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public PublishChannel config(String config)
@Nullable public String getConfig()
public void setConfig(String config)
public PublishChannel extInfo(String extInfo)
public void setExtInfo(String extInfo)
public PublishChannel name(String name)
public void setName(String name)
public PublishChannel type(String type)
@Nullable public String getType()
public void setType(String type)
public PublishChannel 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 PublishChannelpublic static PublishChannel fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to PublishChannelpublic String toJson()
Copyright © 2024. All rights reserved.