AnnouncementParametersBuilder

class AnnouncementParametersBuilder @JvmOverloads constructor(prototype: AnnouncementParameters = AnnouncementParameters.DEFAULT)

AnnouncementParameters 的构建器. 可以构建一个 AnnouncementParameters 实例.

获得实例

直接构造实例: new AnnouncementParametersBuilder() 或者从已有的公告中获取 AnnouncementParameters.builder.

使用

在 Kotlin 使用

val parameters = buildAnnouncementParameters {
sendToNewMember = true
// ...
}

在 Java 使用

AnnouncementParameters parameters = new AnnouncementParametersBuilder()
.sendToNewMember(true)
.pinned(true)
.build();

Since

2.7

See also

Constructors

Link copied to clipboard
fun AnnouncementParametersBuilder(prototype: AnnouncementParameters = AnnouncementParameters.DEFAULT)

Functions

Link copied to clipboard
fun build(): AnnouncementParameters

使用当前参数构造 AnnouncementParameters.

Link copied to clipboard
fun image(image: AnnouncementImage?): AnnouncementParametersBuilder
Link copied to clipboard
fun isPinned(isPinned: Boolean): AnnouncementParametersBuilder
Link copied to clipboard
fun requireConfirmation(requireConfirmation: Boolean): AnnouncementParametersBuilder
Link copied to clipboard
fun sendToNewMember(sendToNewMember: Boolean): AnnouncementParametersBuilder
Link copied to clipboard
fun showEditCard(isShowEditCard: Boolean): AnnouncementParametersBuilder
Link copied to clipboard
fun showPopup(showPopup: Boolean): AnnouncementParametersBuilder

Properties

Link copied to clipboard
@get:JvmName(name = "image")
var image: AnnouncementImage?
Link copied to clipboard
@get:JvmName(name = "isPinned")
var isPinned: Boolean
Link copied to clipboard
@get:JvmName(name = "requireConfirmation")
var requireConfirmation: Boolean
Link copied to clipboard
@get:JvmName(name = "sendToNewMember")
var sendToNewMember: Boolean
Link copied to clipboard
@get:JvmName(name = "showEditCard")
var showEditCard: Boolean
Link copied to clipboard
@get:JvmName(name = "showPopup")
var showPopup: Boolean