Package

com.ubirch.avatar.model

device

Permalink

package device

Visibility
  1. Public
  2. All

Type Members

  1. case class AvatarDraft(id: String, stateDesired: Option[JValue], stateReported: Option[JValue], created: Option[DateTime], updated: Option[DateTime], lastActive: Option[DateTime]) extends Product with Serializable

    Permalink

    we might use this draft in the future

  2. case class AvatarState(desired: Option[JValue], reported: Option[JValue]) extends Product with Serializable

    Permalink
  3. case class Device(deviceId: String, deviceTypeKey: String = "unknownDeviceType", deviceName: String = "unnamedDevice", hwDeviceId: String = "unknownHwDeviceId", hashedHwDeviceId: String = "unknownHwDeviceId", tags: Set[String] = Set(), deviceConfig: Option[JValue] = None, deviceProperties: Option[JValue] = None, subscriptions: Option[Seq[String]] = None, avatarLastUpdated: Option[DateTime] = None, deviceLastUpdated: Option[DateTime] = None, updated: Option[DateTime] = None, created: DateTime = DateTime.now()) extends Product with Serializable

    Permalink

    author: cvandrei since: 2016-09-23

  4. case class DeviceDataProcessed(deviceId: String, messageId: UUID, deviceDataRawId: UUID, deviceType: String, timestamp: DateTime, deviceTags: Set[String], deviceMessage: JValue, deviceDataRaw: Option[DeviceDataRaw] = None) extends Product with Serializable

    Permalink

    author: cvandrei since: 2016-11-02

  5. case class DeviceDataRaw(id: UUID = UUIDUtil.uuid, v: String = "0.0.3", a: String, k: Option[String] = None, ts: DateTime = DateTime.now(), s: String, p: JValue) extends Product with Serializable

    Permalink

    Payload could contain e, which contains a error message

    Payload could contain e, which contains a error message

    author: derMicha since: 2016-10-28

    v

    message type version

    a

    hashed hardware deviceId

    k

    public key

    ts

    timestamp

    s

    hashed auth token or public key

    p

    payload

  6. case class DeviceDataRawEnvelope(validationState: String, deviceMessage: DeviceDataRaw, signature: Option[String], timestamp: DateTime = DateTime.now()) extends Product with Serializable

    Permalink
  7. case class DeviceDataV3(c: JValue, d: JValue) extends Product with Serializable

    Permalink
  8. case class DeviceDraft(id: String, name: Option[String], hwType: Option[String], hwId: Option[String], syncState: Option[Int], tags: Option[Set[String]], properties: Option[JValue], subscriptions: Option[Set[String]], config: Option[JValue], avatar: Option[AvatarDraft], created: Option[DateTime], updated: Option[DateTime], lastActive: Option[DateTime]) extends Product with Serializable

    Permalink

    we might use this draft in the future

  9. final case class DeviceInfo(deviceId: String, deviceName: String, deviceTypeKey: String = "unknownDeviceType", deviceLastUpdated: Option[DateTime], inSync: Option[Boolean]) extends Product with Serializable

    Permalink
  10. case class DeviceShortInfo(deviceId: String, deviceName: String, deviceTypeKey: String = "unknownDeviceType") extends Product with Serializable

    Permalink

    Created by derMicha on 07/11/16.

  11. final case class DeviceShortInfos(deviceShortInfos: Set[DeviceShortInfo]) extends Product with Serializable

    Permalink

    Created by derMicha on 07/11/16.

  12. case class DeviceStateUpdate(id: UUID = UUIDUtil.uuid, v: String = "0.0.2", k: String, s: String, p: JValue, ts: DateTime = DateTime.now) extends Product with Serializable

    Permalink

    Payload could contain e, which contains a error message

    Payload could contain e, which contains a error message

    author: derMicha since: 2016-10-28

    v

    message type version

    k

    public key

    s

    hashed auth token or public key

    p

    payload

    ts

    timestamp

  13. case class DeviceType(key: String, name: DeviceTypeName, icon: String, displayKeys: Option[Array[String]] = Some(Array()), transformerQueue: Option[String] = None, defaults: DeviceTypeDefaults) extends Product with Serializable

    Permalink

    author: derMicha since: 2016-10-28.

    author: derMicha since: 2016-10-28.

    key

    unique descriptive id which identifies the current DeviceType

    name

    human readable name

    defaults

    default properties of a device

  14. case class DeviceTypeDefaults(properties: JValue, config: JValue, tags: Set[String]) extends Product with Serializable

    Permalink
  15. case class DeviceTypeName(de: String, en: String) extends Product with Serializable

    Permalink
  16. final case class EnvSensorPayload(temperature: Double, presure: Double, humidity: Double, batteryLevel: Option[Int], latitude: Option[Double], longitude: Option[Double], loops: Option[Long], altitude: Option[Double], errorCode: Option[Int]) extends Product with Serializable

    Permalink

    Created by derMicha on 29/11/16.

  17. final case class EnvSensorRawPayload(t: Int, p: Int, h: Int, ba: Option[Int], la: Option[String], lo: Option[String], lp: Option[Long], a: Option[Double], e: Option[Int]) extends Product with Serializable

    Permalink
  18. case class PayloadV3(c: JValue, p: Array[JValue]) extends Product with Serializable

    Permalink
  19. case class TransformedDeviceMessage(version: String = "0.0.3", messageId: UUID = UUIDUtil.uuid, deviceId: String, validationState: Option[String], signature: Option[String], simpleDeviceMessageRefId: UUID, error: Option[String], config: JValue, payload: JValue, timestamp: Option[DateTime] = None) extends Product with Serializable

    Permalink

    Created by derMicha on 28/10/16.

    Created by derMicha on 28/10/16.

    version

    verison Id which identifies the version of the message type

    messageId

    unique message id

    deviceId

    id of the device which sends the message

    simpleDeviceMessageRefId

    refers to original DeviceDataRaw

    error

    device error message

    config

    device config

    payload

    data as JSON / JValue

    timestamp

    timestamp of the original DeviceDataRaw

Ungrouped