类 ListChat.Builder

java.lang.Object
com.lark.oapi.service.im.v1.model.ListChat.Builder
封闭类:
ListChat

public static class ListChat.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • chatId

      public ListChat.Builder chatId(String chatId)
      群组 ID,详情参见[群ID 说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)

      示例值:oc_a0553eda9014c201e6969b478895c230

      参数:
      chatId -
      返回:
    • avatar

      public ListChat.Builder avatar(String avatar)
      群头像 URL

      示例值:https://p3-lark-file.byteimg.com/img/lark-avatar-staging/default-avatar_44ae0ca3-e140-494b-956f-78091e348435~100x100.jpg

      参数:
      avatar -
      返回:
    • name

      public ListChat.Builder name(String name)
      群名称

      示例值:测试群名称

      参数:
      name -
      返回:
    • description

      public ListChat.Builder description(String description)
      群描述

      示例值:测试群描述

      参数:
      description -
      返回:
    • ownerId

      public ListChat.Builder ownerId(String ownerId)
      群主 ID

      示例值:4d7a3c6g

      参数:
      ownerId -
      返回:
    • ownerIdType

      public ListChat.Builder ownerIdType(String ownerIdType)
      群主 ID 类型

      示例值:user_id

      参数:
      ownerIdType -
      返回:
    • external

      public ListChat.Builder external(Boolean external)
      是否是外部群

      示例值:false

      参数:
      external -
      返回:
    • tenantKey

      public ListChat.Builder tenantKey(String tenantKey)
      租户Key,为租户在飞书上的唯一标识,用来换取对应的tenant_access_token,也可以用作租户在应用中的唯一标识

      示例值:736588c9260f175e

      参数:
      tenantKey -
      返回:
    • build

      public ListChat build()