revoked method

LicenseStatus revoked(
  1. DateTime date,
  2. int devicesCount
)

If the license has been revoked, the user message should display the number of devices which registered to the server. This count can be calculated from the number of "register" events in the status document. If no event is logged in the status document, no such message should appear (certainly not "The license was registered by 0 devices").

Implementation

LicenseStatus revoked(DateTime date, int devicesCount) =>
    LicenseStatus._("r2_lcp_exception_license_status_revoked",
        quantity: devicesCount, args: [date, devicesCount]);