LicenseStatus class

Errors while checking the status of the License, using the Status Document.

The app should notify the user and stop there. The message to the user must be clear about the status of the license: don't display "expired" if the status is "revoked". The date and time corresponding to the new status should be displayed (e.g. "The license expired on 01 January 2018").

Inheritance
Implemented types

Properties

args List<Object>
finalinherited
cause Object?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
finalinherited
quantity int?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userMessageId String
finalinherited

Methods

cancelled(DateTime date) LicenseStatus
expired(DateTime end) LicenseStatus
getUserMessage(LocalizationsRepository localizationsRepository, {bool includesCauses = true}) String
Gets the localized user-facing message for this exception.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notStarted(DateTime start) LicenseStatus
returned(DateTime date) LicenseStatus
revoked(DateTime date, int devicesCount) LicenseStatus
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").
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited