Record Class SignInRecordInfo
java.lang.Object
java.lang.Record
com.iizix.user.SignInRecordInfo
- Record Components:
deviceID- The device: the device UUID of an iiziRun device, the identifier the server gave a Browser when it first remembered the user there, or"browser"for a Browser that has none.appID- The application the sign-ins were into.deviceName- What the device said it was at the last sign-in, e.g. "Browser, Windows".firstTime- The oldest sign-in kept, in epoch milliseconds (UTC).firstPlace- The place of that sign-in: "city, region, country" from the client address, or the country of the device location; null when none is known.lastTime- The most recent sign-in, in epoch milliseconds (UTC).lastPlace- The place of that sign-in, null when none is known.lastAddress- The client address of the most recent sign-in, null when unknown.lastSource- Where the last place came from:"CORDOVA"(the device's own location through the iiziRun plugin),"BROWSER"(the Browser's Geolocation API),"IP"(the address looked up),"NONE".lastZone- The IANA time zone of the device at the last sign-in, null when unknown.count- The number of sign-in records kept for the device and application.
public record SignInRecordInfo(String deviceID, String appID, String deviceName, long firstTime, String firstPlace, long lastTime, String lastPlace, String lastAddress, String lastSource, String lastZone, int count) extends Record
Where and when a user signed in on one device in one application: the first and the last sign-in record the server keeps for the device (CC-SIGNIN-RECORDS-AND-SECURITY-LOG, SN-4 and SN-5), as the SignIn module shows them on the devices list, "signed in since {date} in {place}". It carries nothing secret and no exact position: a device location is rounded to about a kilometer before it is stored (SN-D-15), and only the place names travel here.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionappID()Returns the value of theappIDrecord component.intcount()Returns the value of thecountrecord component.deviceID()Returns the value of thedeviceIDrecord component.Returns the value of thedeviceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstPlacerecord component.longReturns the value of thefirstTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastAddressrecord component.Returns the value of thelastPlacerecord component.Returns the value of thelastSourcerecord component.longlastTime()Returns the value of thelastTimerecord component.lastZone()Returns the value of thelastZonerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
SignInRecordInfo
public SignInRecordInfo(String deviceID, String appID, String deviceName, long firstTime, String firstPlace, long lastTime, String lastPlace, String lastAddress, String lastSource, String lastZone, int count) Creates an instance of aSignInRecordInforecord class.- Parameters:
deviceID- the value for thedeviceIDrecord componentappID- the value for theappIDrecord componentdeviceName- the value for thedeviceNamerecord componentfirstTime- the value for thefirstTimerecord componentfirstPlace- the value for thefirstPlacerecord componentlastTime- the value for thelastTimerecord componentlastPlace- the value for thelastPlacerecord componentlastAddress- the value for thelastAddressrecord componentlastSource- the value for thelastSourcerecord componentlastZone- the value for thelastZonerecord componentcount- the value for thecountrecord component
Method Details
toString
hashCode
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.deviceID
appID
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
firstTime
firstPlace
Returns the value of thefirstPlacerecord component.- Returns:
- the value of the
firstPlacerecord component
lastTime
lastPlace
lastAddress
Returns the value of thelastAddressrecord component.- Returns:
- the value of the
lastAddressrecord component
lastSource
Returns the value of thelastSourcerecord component.- Returns:
- the value of the
lastSourcerecord component
lastZone
count