DittoPeer

data class DittoPeer(    val address: DittoAddress,     val deviceName: String,     val connections: List<DittoConnection>,     val os: String?,     val isConnectedToDittoCloud: Boolean,     val isCompatible: Boolean?,     val dittoSdkVersion: String?,     val queryOverlapGroup: Int)

An instance of Ditto taking part in the mesh network.

Constructors

Link copied to clipboard
fun DittoPeer(    address: DittoAddress,     deviceName: String,     connections: List<DittoConnection>,     os: String?,     isConnectedToDittoCloud: Boolean,     isCompatible: Boolean?,     dittoSdkVersion: String?,     queryOverlapGroup: Int)

Properties

Link copied to clipboard
val address: DittoAddress

The unique network identifier of the peer.

Link copied to clipboard
val connections: List<DittoConnection>

Connections that are currently active with the current peer.

Link copied to clipboard
val deviceName: String

The human-readable device name of the peer. This defaults to the hostname but can be manually set by the application developer of the other peer. It is not necessarily unique.

Link copied to clipboard
val dittoSdkVersion: String?

Version of the Ditto SDK in use by the peer. This detail is learned gradually and may not be known immediately.

Link copied to clipboard
val isCompatible: Boolean?

Indicates whether the peer's Ditto SDK version is compatible with the local version.

Link copied to clipboard
val isConnectedToDittoCloud: Boolean

Indication of whether the peer is connected to the Ditto Cloud (big peer).

Link copied to clipboard
val os: String?

Operating system of the peer, if known. This detail is learned gradually and may not be known immediately.

Link copied to clipboard
val queryOverlapGroup: Int

Used to indicate peers which may not be directly connected are likely to have queries that overlap and sets relative connection priorities to enable them to replicate through other peers on the network.