Brownie Events Recorder

@Service
abstract class BrownieEventsRecorder<T : Enum<T>?, E : BrownieEvent?>

The BrownieEventsRecorder provides the methods to register all the BrownieEvent properly

Author

N7ghtm4r3 - Tecknobit

Since

1.0.1

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor(repository: BrownieEventsRepository<E>)
Constructor to instantiate the recorder

Properties

Link copied to clipboard
repository instance used to register the events in the dedicated tables

Functions

Link copied to clipboard
protected open fun calculateUpDays(eventOwnerId: String): Long
Method used to calculate the up days since the last up event
Link copied to clipboard
protected open fun registerEvent(type: T, eventOwnerId: String)
Method used to register any T event
protected open fun registerEvent(type: T, eventOwnerId: String, extra: Any)
Method used to register any E event