com.dingtalk.api.response.OapiCrmObjectmetaContactDescribeResponse Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.response;
import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.crm.objectmeta.contact.describe response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiCrmObjectmetaContactDescribeResponse extends TaobaoResponse {
private static final long serialVersionUID = 8526252731887428298L;
/**
* 错误码
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误信息
*/
@ApiField("errmsg")
private String errmsg;
/**
* result
*/
@ApiField("result")
private DObject result;
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
public Long getErrcode( ) {
return this.errcode;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public String getErrmsg( ) {
return this.errmsg;
}
public void setResult(DObject result) {
this.result = result;
}
public DObject getResult( ) {
return this.result;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* 选项列表
*
* @author top auto create
* @since 1.0, null
*/
public static class SelectOptions extends TaobaoObject {
private static final long serialVersionUID = 8372529395451367453L;
/**
* 选项key
*/
@ApiField("key")
private String key;
/**
* 选项名
*/
@ApiField("value")
private String value;
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
}
/**
* 引用的关联对象的字段列表
*
* @author top auto create
* @since 1.0, null
*/
public static class ReferenceFields extends TaobaoObject {
private static final long serialVersionUID = 1864453892728996512L;
/**
* 引用的关联对象字段格式
*/
@ApiField("format")
private String format;
/**
* 引用的关联对象字段显示名
*/
@ApiField("label")
private String label;
/**
* 引用的关联对象的字段名称
*/
@ApiField("name")
private String name;
/**
* 引用的关联对象字段是否可空
*/
@ApiField("nillable")
private Boolean nillable;
/**
* 引用的关联对象的字段选项列表
*/
@ApiListField("select_options")
@ApiField("select_options")
private List selectOptions;
/**
* 引用的关联对象字段类型
*/
@ApiField("type")
private String type;
/**
* 引用的关联对象字段单位
*/
@ApiField("unit")
private String unit;
public String getFormat() {
return this.format;
}
public void setFormat(String format) {
this.format = format;
}
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Boolean getNillable() {
return this.nillable;
}
public void setNillable(Boolean nillable) {
this.nillable = nillable;
}
public List getSelectOptions() {
return this.selectOptions;
}
public void setSelectOptions(List selectOptions) {
this.selectOptions = selectOptions;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getUnit() {
return this.unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
}
/**
* 对MasterDetail类型有效:roll-up summary字段列表
*
* @author top auto create
* @since 1.0, null
*/
public static class RollUpSummaryFields extends TaobaoObject {
private static final long serialVersionUID = 2823448949396574322L;
/**
* 汇总方法
*/
@ApiField("aggregator")
private String aggregator;
/**
* 需要汇总的明细内字段名
*/
@ApiField("name")
private String name;
public String getAggregator() {
return this.aggregator;
}
public void setAggregator(String aggregator) {
this.aggregator = aggregator;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
/**
* 字段列表
*
* @author top auto create
* @since 1.0, null
*/
public static class Fields extends TaobaoObject {
private static final long serialVersionUID = 2695656522554553697L;
/**
* 是否自定义字段
*/
@ApiField("customized")
private Boolean customized;
/**
* 日期格式
*/
@ApiField("format")
private String format;
/**
* 字段展示名
*/
@ApiField("label")
private String label;
/**
* 字段名称
*/
@ApiField("name")
private String name;
/**
* 是否可空
*/
@ApiField("nillable")
private Boolean nillable;
/**
* 是否引用关联
*/
@ApiField("quote")
private Boolean quote;
/**
* 引用的关联对象的字段列表
*/
@ApiListField("reference_fields")
@ApiField("reference_fields")
private List referenceFields;
/**
* 关联对象名称
*/
@ApiField("reference_to")
private String referenceTo;
/**
* 对MasterDetail类型有效:roll-up summary字段列表
*/
@ApiListField("roll_up_summary_fields")
@ApiField("roll_up_summary_fields")
private List rollUpSummaryFields;
/**
* 选项列表
*/
@ApiListField("select_options")
@ApiField("select_options")
private List selectOptions;
/**
* 字段类型
*/
@ApiField("type")
private String type;
/**
* 日期单位金额单位
*/
@ApiField("unit")
private String unit;
public Boolean getCustomized() {
return this.customized;
}
public void setCustomized(Boolean customized) {
this.customized = customized;
}
public String getFormat() {
return this.format;
}
public void setFormat(String format) {
this.format = format;
}
public String getLabel() {
return this.label;
}
public void setLabel(String label) {
this.label = label;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Boolean getNillable() {
return this.nillable;
}
public void setNillable(Boolean nillable) {
this.nillable = nillable;
}
public Boolean getQuote() {
return this.quote;
}
public void setQuote(Boolean quote) {
this.quote = quote;
}
public List getReferenceFields() {
return this.referenceFields;
}
public void setReferenceFields(List referenceFields) {
this.referenceFields = referenceFields;
}
public String getReferenceTo() {
return this.referenceTo;
}
public void setReferenceTo(String referenceTo) {
this.referenceTo = referenceTo;
}
public List getRollUpSummaryFields() {
return this.rollUpSummaryFields;
}
public void setRollUpSummaryFields(List rollUpSummaryFields) {
this.rollUpSummaryFields = rollUpSummaryFields;
}
public List getSelectOptions() {
return this.selectOptions;
}
public void setSelectOptions(List selectOptions) {
this.selectOptions = selectOptions;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getUnit() {
return this.unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
}
/**
* result
*
* @author top auto create
* @since 1.0, null
*/
public static class DObject extends TaobaoObject {
private static final long serialVersionUID = 4469363977186951964L;
/**
* 表单code
*/
@ApiField("code")
private String code;
/**
* 是否自定义对象
*/
@ApiField("customized")
private Boolean customized;
/**
* 字段列表
*/
@ApiListField("fields")
@ApiField("fields")
private List fields;
/**
* 对象名称
*/
@ApiField("name")
private String name;
/**
* 表单状态
*/
@ApiField("status")
private String status;
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Boolean getCustomized() {
return this.customized;
}
public void setCustomized(Boolean customized) {
this.customized = customized;
}
public List getFields() {
return this.fields;
}
public void setFields(List fields) {
this.fields = fields;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy