MessageRepository class
Constructors
- MessageRepository(Database _database)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteAllMessages(
) → Future< void> - delety every locality event and fetches
-
deleteMessageByUUID(
String uuid) → Future< void> - delete the message with the specified uuid
-
getAllMessages(
{String? password}) → Future< List< LocalityEvent> > - Get all messages from database and decrypts with the given password.
-
getAllMessagesByChannel(
String channel, {String? password}) → Future< List< LocalityEvent> > -
getAllMessagesByEventAndChannelSince(
String event, String channel, int sinceTimestamp, {String? password}) → Future< List< LocalityEvent> > -
getChannelFetchTime(
String channel) → Future< int> - get a channel fetch time
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setChannelFetchTime(
String channel, int fetchTime) → Future< void> - set a channel fetch time
-
toString(
) → String -
A string representation of this object.
inherited
-
upsertAll(
List< LocalityEvent> messages, String flag, {String? password}) → Future<void> - Encrypt multiple messages and put them into the database
-
upsertMessage(
LocalityEvent message, {String? password}) → Future< void> -
upsertMessages(
List< LocalityEvent> messages, {String? password}) → Future<void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- columnChannel → const String
- columnFetchTime → const String
- columnServertime → const String
- tableChannelFetches → const String