UserLogin 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.
initialLogin boolean
modified number

Example

{
  "userId" : 12345,
  "username" : "...",
  "lastLogin" : 12345,
  "role" : "POWER",
  "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" : "..."
    },
    "firstName" : "...",
    "lastName" : "..."
  },
  "initialLogin" : true,
  "modified" : 12345
}