Class WeChatWorkExternalContact
java.lang.Object
com.bytedesk.wechat.work.customer.WeChatWorkExternalContact
企业微信外部联系人信息
参考文档:https://developer.work.weixin.qq.com/document/path/92113
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
外部联系人头像private String
外部联系人所在企业的主体名称 仅当联系人类型是企业微信用户时有此字段private String
外部联系人所在企业的简称 仅当联系人类型是企业微信用户时有此字段外部联系人的自定义展示信息private String
外部联系人的useridprivate Integer
外部联系人性别 0-未知 1-男性 2-女性private String
外部联系人的名称,如果是微信用户,则返回其微信昵称;如果是企业微信联系人,则返回其设置对外展示的别名或实名private String
外部联系人的职位,如果外部企业或用户选择隐藏职位,则不返回 仅当联系人类型是企业微信用户时有此字段private Integer
外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户private String
外部联系人在微信开放平台的唯一身份标识(微信unionid) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WeChatWorkExternalContact
从Map创建WeChatWorkExternalContact对象private static Integer
getIntegerValue
(Map<String, Object> map, String key) 安全地从Map获取Integer值private static String
getStringValue
(Map<String, Object> map, String key) 安全地从Map获取String值
-
Field Details
-
externalUserid
外部联系人的userid -
name
外部联系人的名称,如果是微信用户,则返回其微信昵称;如果是企业微信联系人,则返回其设置对外展示的别名或实名 -
position
外部联系人的职位,如果外部企业或用户选择隐藏职位,则不返回 仅当联系人类型是企业微信用户时有此字段 -
avatar
外部联系人头像 -
corpName
外部联系人所在企业的简称 仅当联系人类型是企业微信用户时有此字段 -
corpFullName
外部联系人所在企业的主体名称 仅当联系人类型是企业微信用户时有此字段 -
type
外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户 -
gender
外部联系人性别 0-未知 1-男性 2-女性 -
unionid
外部联系人在微信开放平台的唯一身份标识(微信unionid) -
externalProfile
外部联系人的自定义展示信息
-
-
Constructor Details
-
WeChatWorkExternalContact
public WeChatWorkExternalContact()
-
-
Method Details
-
fromMap
从Map创建WeChatWorkExternalContact对象- Parameters:
map
- 从API响应解析的Map数据- Returns:
- WeChatWorkExternalContact对象
-
getStringValue
安全地从Map获取String值 -
getIntegerValue
安全地从Map获取Integer值
-