ResourceEventData

data class ResourceEventData(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean)

The data class for event data in Observer

Constructors

ResourceEventData
Link copied to clipboard
fun ResourceEventData(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean)

Functions

component1
Link copied to clipboard
operator fun component1(): Long
component2
Link copied to clipboard
operator fun component2(): Long?
component3
Link copied to clipboard
operator fun component3(): DataSourceType
component4
Link copied to clipboard
operator fun component4(): Request
component5
Link copied to clipboard
operator fun component5(): Response?
component6
Link copied to clipboard
operator fun component6(): Boolean
copy
Link copied to clipboard
fun copy(begin: Long, end: Long?, dataSource: DataSourceType, request: Request, response: Response?, cancelled: Boolean): ResourceEventData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

begin
Link copied to clipboard
@SerializedName(value = "begin")
val begin: Long
Representing timestamp taken at the time of an event creation, in microseconds, since the epoch.
cancelled
Link copied to clipboard
@SerializedName(value = "cancelled")
val cancelled: Boolean
"cancelled" property
dataSource
Link copied to clipboard
@SerializedName(value = "data-source")
val dataSource: DataSourceType
"data-source" property
end
Link copied to clipboard
@SerializedName(value = "end")
val end: Long?
For an interval events, an optional end property will be present that represents timestamp taken at the time of an event completion.
request
Link copied to clipboard
@SerializedName(value = "request")
val request: Request
"request" property
response
Link copied to clipboard
@SerializedName(value = "response")
val response: Response?
"response" property