Simple Robot
Toggle table of contents
5.0.0-Alpha2
common
Target filter
common
Switch theme
Search in API
Skip to content
Simple Robot
simbot-component-qq-api
/
love.forte.simbot.qguild.model.forum
/
Elem
Elem
@
ApiModel
@
Serializable
class
Elem
(
source
)
富文本元素列表结构。
参考
forum文档
Author
ForteScarlet
Members
Properties
elem
Type
Link copied to clipboard
@
SerialName
(
value
=
"type"
)
@get:
JvmExposeBoxed
val
elemType
:
ElemType
image
Link copied to clipboard
val
image
:
ImageElem
图片元素。
text
Link copied to clipboard
val
text
:
TextElem
文本元素。
type
Link copied to clipboard
val
type
:
Int
元素类型。
url
Link copied to clipboard
val
url
:
URLElem
URL 元素。
video
Link copied to clipboard
val
video
:
VideoElem
视频元素。
Functions
component1
Link copied to clipboard
operator
fun
component1
(
)
:
TextElem
component2
Link copied to clipboard
operator
fun
component2
(
)
:
ImageElem
component3
Link copied to clipboard
operator
fun
component3
(
)
:
VideoElem
component4
Link copied to clipboard
operator
fun
component4
(
)
:
URLElem
component5
Link copied to clipboard
operator
fun
component5
(
)
:
Int
copy
Link copied to clipboard
fun
copy
(
text
:
TextElem
=
this.text
,
image
:
ImageElem
=
this.image
,
video
:
VideoElem
=
this.video
,
url
:
URLElem
=
this.url
,
type
:
Int
=
this.elemType.value
)
:
Elem
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String