Interface ICodeCommon

All Known Subinterfaces:
IActivationCode, ILicenseCode

public interface ICodeCommon
The common code interface.
Author:
Christopher Mindus
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the code formatted as a string as digits grouped in 5 digits, separated by dashes ('-').
    long
    Gets the time of creation of the code.
    Gets the reason for the code revocation.
    long
    Gets the time for the code revocation.
    long
    Gets the time of the last update of the code.
    boolean
    Returns if the code is revoked.
  • Method Details Link icon

    • getCode Link icon

      String getCode()
      Gets the code formatted as a string as digits grouped in 5 digits, separated by dashes ('-'). This is NOT the complete code but is used for e.g. activation purposes or when communicating with IIZI Support.
      Returns:
      The string formatted as e.g. "12345-67890-12345-99887".
    • getCreationTime Link icon

      long getCreationTime()
      Gets the time of creation of the code.
      Returns:
      Creation time in milliseconds since the epoch in GMT, or -1 if not created.
    • getUpdateTime Link icon

      long getUpdateTime()
      Gets the time of the last update of the code. The code is not set to updated when created, only when updated, e.g. using a new activation code.
      Returns:
      Creation time in milliseconds since the epoch in GMT, or -1 if not updated.
    • isRevoked Link icon

      boolean isRevoked()
      Returns if the code is revoked.
      Returns:
      true if revoked.
    • getRevocationReason Link icon

      String getRevocationReason()
      Gets the reason for the code revocation.
      Returns:
      The revocation string, or null if code is not revoked.
    • getRevocationTime Link icon

      long getRevocationTime()
      Gets the time for the code revocation.
      Returns:
      The revocation time in milliseconds since the epoch in GMT, or -1 if not revoked.