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_DEVICE for 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 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 a Record record class.
      Parameters:
      id - the value for the id record component
      uid - the value for the uid record component
      appID - the value for the appID record component
      deviceID - the value for the deviceID record component
      deviceName - the value for the deviceName record component
      signedIn - the value for the signedIn record component
      zoneID - the value for the zoneID record component
      zoneOffset - the value for the zoneOffset record component
      address - the value for the address record component
      country - the value for the country record component
      countryISO - the value for the countryISO record component
      region - the value for the region record component
      city - the value for the city record component
      latitude - the value for the latitude record component
      longitude - the value for the longitude record component
      accuracy - the value for the accuracy record component
      source - the value for the source record component
      reSignIn - the value for the reSignIn record component
      serverID - the value for the serverID record component
  • Method Details

    • place

      public String 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

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uid

      public long uid()
      Returns the value of the uid record component.
      Returns:
      the value of the uid record component
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • deviceID

      public String deviceID()
      Returns the value of the deviceID record component.
      Returns:
      the value of the deviceID record component
    • deviceName

      public String deviceName()
      Returns the value of the deviceName record component.
      Returns:
      the value of the deviceName record component
    • signedIn

      public long signedIn()
      Returns the value of the signedIn record component.
      Returns:
      the value of the signedIn record component
    • zoneID

      public String zoneID()
      Returns the value of the zoneID record component.
      Returns:
      the value of the zoneID record component
    • zoneOffset

      public Integer zoneOffset()
      Returns the value of the zoneOffset record component.
      Returns:
      the value of the zoneOffset record component
    • address

      public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • countryISO

      public String countryISO()
      Returns the value of the countryISO record component.
      Returns:
      the value of the countryISO record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • city

      public String city()
      Returns the value of the city record component.
      Returns:
      the value of the city record component
    • latitude

      public double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • longitude

      public double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component
    • accuracy

      public double accuracy()
      Returns the value of the accuracy record component.
      Returns:
      the value of the accuracy record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • reSignIn

      public boolean reSignIn()
      Returns the value of the reSignIn record component.
      Returns:
      the value of the reSignIn record component
    • serverID

      public String serverID()
      Returns the value of the serverID record component.
      Returns:
      the value of the serverID record component