User Data Type

User model. (Database annotations)

Available Since
1.0
Properties
name data type description
userId number
username string
lastLogin number
role Role
person Person Returns the person bound to this user.
userMapping string

Example

{
  "userId" : 12345,
  "username" : "...",
  "lastLogin" : 12345,
  "role" : "UNKNOWN",
  "person" : {
    "mobiles" : [ {
      "mobileId" : 12345,
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "person" : { },
      "created" : 12345
    }, {
      "mobileId" : 12345,
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "person" : { },
      "created" : 12345
    } ],
    "id" : 12345,
    "geoLocation" : {
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "distance" : 12345.0,
      "lastUpdate" : "..."
    },
    "userMapping" : "...",
    "firstName" : "...",
    "lastName" : "..."
  },
  "userMapping" : "..."
}