Interface ICodeCommon

All Known Subinterfaces:
IActivationCode, ILicenseCode

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

    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

    • getCode

      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

      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

      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

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

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

      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.