CustomCounter

data class CustomCounter(val key: String, var value: Int, val versionNumber: String, val timestampUpdatedAt: String?, val disabled: Boolean) : Parcelable

Represents a custom counter.

Constructors

Link copied to clipboard
constructor(key: String, value: Int, versionNumber: String, timestampUpdatedAt: String?, disabled: Boolean)

Properties

Link copied to clipboard
@SerializedName(value = "disabled")
val disabled: Boolean

Whether the custom counter is disabled or not.

Link copied to clipboard
@SerializedName(value = "key")
val key: String

Key of the custom counter.

Link copied to clipboard
@SerializedName(value = "updated_at")
val timestampUpdatedAt: String?

Timestamp when the custom counter was last updated.

Link copied to clipboard
@SerializedName(value = "value")
var value: Int

Current count value of the custom counter.

Link copied to clipboard
@SerializedName(value = "version_number")
val versionNumber: String

Version of the counter that is useful to check the ordering with other versions.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)