MessageRepository class
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>>
-
-
getAllWaitingMessages({String? password})
→ Future<List<WaitingMessage>>
-
Retrieve all waiting messages from the database
Decrypts the stored payloads and reconstructs WaitingMessage objects
-
getChannelFetchTime(String channel)
→ Future<int>
-
get a channel fetch time
-
insertWaitingMessages(List<WaitingMessage> messages, {String? password})
→ Future<void>
-
Insert a list of waiting messages into the database
Each message's payload and final payload are encrypted before storage
-
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>
-