Package com.sensorberg.smartspaces.sdk.model

Types

Booking
Link copied to clipboard
data class Booking(id: String, iotUnit: IotUnit?, startsAt: Long, endsAt: Long?) : Parcelable

Represents a booking of a unit by the logged user.

DeprecatedIotDevice
Link copied to clipboard
data class DeprecatedIotDevice(deviceId: String, states: List<DeprecatedIotDeviceState>)
DeprecatedIotDeviceRequest
Link copied to clipboard
data class DeprecatedIotDeviceRequest(deviceId: String, states: List<DeprecatedIotDeviceState>)
DeprecatedIotDeviceState
Link copied to clipboard
data class DeprecatedIotDeviceState(type: String, value: String)
IotDevice
Link copied to clipboard
data class IotDevice(id: String, name: String, deviceType: IotDeviceType, containedUnit: SmartspaceUnit, proximity: Proximity, position: Int, properties: List<Property>) : Parcelable

Represents an IotDevice. The base object for control and monitoring data in a Smartspace

IotDeviceType
Link copied to clipboard
data class IotDeviceType(id: String, name: String, externalIdentifier: String) : Parcelable
IotUnit
Link copied to clipboard
data class IotUnit(id: String, grouping: String, displayName: String, type: IotUnit.Type, hardwareType: IotUnit.HardwareType, bookable: Boolean, unitId: String, actuatorId: String, backendUnitType: String?, clusterId: String?, bookableParams: BookableParams?, actuatorType: String, action: String, connectors: List<Connector>) : Openable

Class that represents an IotUnit that can be interacted with. e.g. A door or locker box.

Openable
Link copied to clipboard
interface Openable : Parcelable

Interface to group and provide type safety for all classes that can be used on UnitController.openLiveData.

Property
Link copied to clipboard
sealed class Property : Parcelable
Proximity
Link copied to clipboard
enum Proximity : Enum<Proximity>
Schedule
Link copied to clipboard
data class Schedule(iotUnit: IotUnit, busy: List<TimePeriod>)

Represents the time periods when this unit has a booking.

SmartspaceUnit
Link copied to clipboard
data class SmartspaceUnit(id: String, name: String, position: Int) : Parcelable
StateChangeRequest
Link copied to clipboard
class StateChangeRequest : Parcelable
User
Link copied to clipboard
data class User(id: String, fullName: String?, email: String?) : Parcelable

Data class that represents the current logged user