Package-level declarations
用于存放QQ频道中各API的响应数据模型。
数据模型与文档中定义的类型基本对应,以不可变数据类 (immutable data class
) 的形式定义实现,并通过API模块下的各API响应结果对外提供。
Types
Link copied to clipboard
data class ApiPermission(val path: String, val method: String, val desc: String, val authStatus: Int)
Link copied to clipboard
data class ApiPermissionDemand(val guildId: String, val channelId: String, val apiIdentify: ApiPermissionDemandIdentify, val title: String, val desc: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ChannelPermissions(val channelId: String, val userId: String? = null, val roleId: String? = null, val permissions: Permissions)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object EmojiTypes
Link copied to clipboard
interface Guild
Link copied to clipboard
interface Member
Link copied to clipboard
Link copied to clipboard
data class Message(val id: String, val channelId: String, val guildId: String, val content: String, val timestamp: String, val editedTimestamp: String? = null, val mentionEveryone: Boolean = false, val author: User, val attachments: List<Message.Attachment> = emptyList(), val embeds: List<Message.Embed> = emptyList(), val mentions: List<User> = emptyList(), val member: MessageMember? = null, val ark: Message.Ark? = null, val seqInChannel: String, val messageReference: Message.Reference? = null, val srcGuildId: String? = null)
Link copied to clipboard
data class MessageKeyboard(val id: String? = null, val renderData: MessageKeyboard.RenderData? = null, val action: MessageKeyboard.Action? = null)
Link copied to clipboard
data class MessageMedia(val fileUuid: String, val fileInfo: String, val ttl: Int, val id: String? = null)
Link copied to clipboard
data class MessageMember(val nick: String = "", val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : Member
在 MessageMember 中使用的 Member 实现。 其中的 user 来自 Message.author
Link copied to clipboard
Link copied to clipboard
data class PinsMessage(val guildId: String, val channelId: String, val messageIds: List<String> = emptyList())
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SimpleChannel(val id: String, val guildId: String, val name: String, val type: ChannelType, val subType: ChannelSubType, val position: Int, val parentId: String, val ownerId: String, val privateType: PrivateType? = null, val speakPermission: SpeakPermission? = null, val applicationId: String? = null, val permissions: Permissions? = null) : Channel
Channel 的基础实现。
Link copied to clipboard
Link copied to clipboard
data class SimpleMemberWithGuildId(val guildId: String, val user: User, val nick: String, val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : MemberWithGuildId
MemberWithGuildId 的简单基本实现。
Link copied to clipboard