Body

class Body @ApiModelConstructor constructor(val fileType: Int, val url: String, val srvSendMsg: Boolean)(source)

Deprecated

Use `BodyValue`

Deprecated: 使用非数据类的 BodyValue 代替此类型。

Constructors

Link copied to clipboard
constructor(fileType: Int, url: String, srvSendMsg: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "file_type")
val fileType: Int

媒体类型:1 图片,2 视频,3 语音,4 文件(暂不开放) 资源格式要求: 图片:png/jpg,视频:mp4,语音:silk

Link copied to clipboard
@SerialName(value = "srv_send_msg")
val srvSendMsg: Boolean

设置 true 会直接发送消息到目标端,且会占用主动消息频次

Link copied to clipboard
val url: String

需要发送媒体资源的url

Functions

Link copied to clipboard
operator fun component1(): Int
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
operator fun component3(): Boolean
Link copied to clipboard
fun copy(fileType: Int = this.fileType, url: String = this.url, srvSendMsg: Boolean = this.srvSendMsg): UploadUserFilesApi.Body
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String