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 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 a SignInRecordInfo record class.
      Parameters:
      deviceID - the value for the deviceID record component
      appID - the value for the appID record component
      deviceName - the value for the deviceName record component
      firstTime - the value for the firstTime record component
      firstPlace - the value for the firstPlace record component
      lastTime - the value for the lastTime record component
      lastPlace - the value for the lastPlace record component
      lastAddress - the value for the lastAddress record component
      lastSource - the value for the lastSource record component
      lastZone - the value for the lastZone record component
      count - the value for the count record component
  • Method Details

    • 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.
    • deviceID

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

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

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

      public long firstTime()
      Returns the value of the firstTime record component.
      Returns:
      the value of the firstTime record component
    • firstPlace

      public String firstPlace()
      Returns the value of the firstPlace record component.
      Returns:
      the value of the firstPlace record component
    • lastTime

      public long lastTime()
      Returns the value of the lastTime record component.
      Returns:
      the value of the lastTime record component
    • lastPlace

      public String lastPlace()
      Returns the value of the lastPlace record component.
      Returns:
      the value of the lastPlace record component
    • lastAddress

      public String lastAddress()
      Returns the value of the lastAddress record component.
      Returns:
      the value of the lastAddress record component
    • lastSource

      public String lastSource()
      Returns the value of the lastSource record component.
      Returns:
      the value of the lastSource record component
    • lastZone

      public String lastZone()
      Returns the value of the lastZone record component.
      Returns:
      the value of the lastZone record component
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component