Record Class SignInRecordStore.Record
java.lang.Object
java.lang.Record
com.iizix.server.user.SignInRecordStore.Record
- Record Components:
id- The row identifier.uid- The user.appID- The application.deviceID- The device,SignInRecordStore.BROWSER_DEVICEfor a Browser without one.deviceName- What the device said it was, for display only.signedIn- When, in epoch milliseconds (UTC).zoneID- The IANA time zone of the device, null when unknown.zoneOffset- The device's offset from UTC in seconds, null when unknown.address- The client address as text, null when unknown.country- The country of the place, null when unknown.countryISO- Its ISO code, null when unknown.region- The region, null when unknown.city- The city, null when unknown.latitude- The device location's latitude, rounded, NaN when none.longitude- The device location's longitude, rounded, NaN when none.accuracy- The device location's accuracy in meters, NaN when none or unknown.source- Where the place came from:SignInRecordStore.SOURCE_CORDOVA, ...reSignIn- true for a sign-in in a session that had the user signed in already.serverID- The server that wrote the row, null when unknown.
- Enclosing class:
SignInRecordStore
public static record SignInRecordStore.Record(long id, long uid, String appID, String deviceID, String deviceName, long signedIn, String zoneID, Integer zoneOffset, String address, String country, String countryISO, String region, String city, double latitude, double longitude, double accuracy, String source, boolean reSignIn, String serverID) extends Record
One sign-in record, as written and as read.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionRecord(long id, long uid, String appID, String deviceID, String deviceName, long signedIn, String zoneID, Integer zoneOffset, String address, String country, String countryISO, String region, String city, double latitude, double longitude, double accuracy, String source, boolean reSignIn, String serverID) Creates an instance of aRecordrecord class.Method Summary
Modifier and TypeMethodDescriptiondoubleaccuracy()Returns the value of theaccuracyrecord component.address()Returns the value of theaddressrecord component.appID()Returns the value of theappIDrecord component.city()Returns the value of thecityrecord component.country()Returns the value of thecountryrecord component.Returns the value of thecountryISOrecord 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.final inthashCode()Returns a hash code value for this object.booleanTells whether the row has a device location.longid()Returns the value of theidrecord component.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.place()Describes the place: "city, region, country", a part left out when unknown or when it repeats the one before it.region()Returns the value of theregionrecord component.booleanreSignIn()Returns the value of thereSignInrecord component.serverID()Returns the value of theserverIDrecord component.longsignedIn()Returns the value of thesignedInrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.longuid()Returns the value of theuidrecord component.zoneID()Returns the value of thezoneIDrecord component.Returns the value of thezoneOffsetrecord component.
Constructor Details
Record
public Record(long id, long uid, String appID, String deviceID, String deviceName, long signedIn, String zoneID, Integer zoneOffset, String address, String country, String countryISO, String region, String city, double latitude, double longitude, double accuracy, String source, boolean reSignIn, String serverID) Creates an instance of aRecordrecord class.- Parameters:
id- the value for theidrecord componentuid- the value for theuidrecord componentappID- the value for theappIDrecord componentdeviceID- the value for thedeviceIDrecord componentdeviceName- the value for thedeviceNamerecord componentsignedIn- the value for thesignedInrecord componentzoneID- the value for thezoneIDrecord componentzoneOffset- the value for thezoneOffsetrecord componentaddress- the value for theaddressrecord componentcountry- the value for thecountryrecord componentcountryISO- the value for thecountryISOrecord componentregion- the value for theregionrecord componentcity- the value for thecityrecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentaccuracy- the value for theaccuracyrecord componentsource- the value for thesourcerecord componentreSignIn- the value for thereSignInrecord componentserverID- the value for theserverIDrecord component
Method Details
place
Describes the place: "city, region, country", a part left out when unknown or when it repeats the one before it.- Returns:
- The place, null when nothing is known.
hasLocation
public boolean hasLocation()Tells whether the row has a device location.- Returns:
- true when the latitude and the longitude are numbers.
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.id
uid
appID
deviceID
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
signedIn
zoneID
zoneOffset
Returns the value of thezoneOffsetrecord component.- Returns:
- the value of the
zoneOffsetrecord component
address
country
countryISO
Returns the value of thecountryISOrecord component.- Returns:
- the value of the
countryISOrecord component
region
city
latitude
longitude
accuracy
source
reSignIn
serverID