MPINode

data class MPINode(id: String, x: Double?, y: Double?, map: String?, externalId: String?, accessible: Boolean?, paths: List<MPIPathNode>?) : MPINavigatable

MPINode represents a position, anchored to a specific MPIMap

Constructors

MPINode
Link copied to clipboard
fun MPINode(id: String, x: Double? = null, y: Double? = null, map: String? = null, externalId: String? = null, accessible: Boolean? = null, paths: List<MPIPathNode>? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): Double?
component3
Link copied to clipboard
operator fun component3(): Double?
component4
Link copied to clipboard
operator fun component4(): String?
component5
Link copied to clipboard
operator fun component5(): String?
component6
Link copied to clipboard
operator fun component6(): Boolean?
component7
Link copied to clipboard
operator fun component7(): List<MPIPathNode>?
copy
Link copied to clipboard
fun copy(id: String, x: Double? = null, y: Double? = null, map: String? = null, externalId: String? = null, accessible: Boolean? = null, paths: List<MPIPathNode>? = null): MPINavigatable.MPINode
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

accessible
Link copied to clipboard
val accessible: Boolean? = null
If MPINode is accessible, accessible is set to true; otherwise, it is false.
externalId
Link copied to clipboard
val externalId: String? = null
externalId of the MPINode
  • Note: externalId is for a more durable use than id or if the data in the Mappedin CMS is being synced from somewhere else

id
Link copied to clipboard
open override val id: String
id of the MPINode
map
Link copied to clipboard
val map: String? = null
Optional id string of the map where MPINode is at.
paths
Link copied to clipboard
val paths: List<MPIPathNode>? = null
Adjacent nodes of the MPINode
x
Link copied to clipboard
val x: Double? = null
The x coordinate of the MPINode
  • Note: x values are scaled to Mappedin units.

y
Link copied to clipboard
val y: Double? = null
The y coordinate of the MPINode
  • Note: y values are scaled to Mappedin units.