Skip to content

//core/com.petersamokhin.vksdk.core.model.event/IncomingMessage

IncomingMessage

[common]\ data class IncomingMessage(id: Int, date: Int, peerId: Int, fromId: Int, text: String, randomId: Int, ref: String?, refSource: String?, attachments: List, important: Boolean, geo: IncomingMessage.Geo?, payload: String?, keyboard: IncomingMessage.Keyboard?, fwdMessages: List<MessagePartial>, replyMessage: JsonElement?, action: IncomingMessage.Action?, isHidden: Boolean?)

VK incoming message object, e.g. for Long Poll events

https://vk.com/dev/objects/message

Constructors

IncomingMessage [common]
fun IncomingMessage(id: Int, date: Int, peerId: Int, fromId: Int, text: String, randomId: Int, ref: String? = null, refSource: String? = null, attachments: List, important: Boolean, geo: IncomingMessage.Geo? = null, payload: String? = null, keyboard: IncomingMessage.Keyboard? = null, fwdMessages: List<MessagePartial>, replyMessage: JsonElement? = null, action: IncomingMessage.Action? = null, isHidden: Boolean? = null)

Types

Name Summary
Action [common]
data class Action(type: String, memberId: Int?, text: String?, email: String?, photo: IncomingMessage.Action.ChatPhoto?)
Geo [common]
data class Geo(type: String, coordinates: List<Double>?, place: IncomingMessage.Geo.Place?)
Keyboard [common]
data class Keyboard(oneTime: Boolean, inline: Boolean, buttons: List<IncomingMessage.Keyboard.Button>)

Functions

Name Summary
isFromChat [common]
fun isFromChat(): Boolean

Properties

Name Summary
action [common]
val action: IncomingMessage.Action? = null
attachments [common]
val attachments: List
date [common]
val date: Int
fromId [common]
val fromId: Int
fwdMessages [common]
val fwdMessages: List<MessagePartial>
geo [common]
val geo: IncomingMessage.Geo? = null
id [common]
val id: Int
important [common]
val important: Boolean
isHidden [common]
val isHidden: Boolean? = null
keyboard [common]
val keyboard: IncomingMessage.Keyboard? = null
payload [common]
val payload: String? = null
peerId [common]
val peerId: Int
randomId [common]
val randomId: Int
ref [common]
val ref: String? = null
refSource [common]
val refSource: String? = null
replyMessage [common]
val replyMessage: JsonElement? = null
text [common]
val text: String