mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-03 07:20:57 +10:00
updated ui added new features
This commit is contained in:
@@ -10,6 +10,10 @@ class Message {
|
||||
final bool isOutgoing;
|
||||
final bool isCli;
|
||||
final MessageStatus status;
|
||||
final bool isVoice;
|
||||
final String? voicePath;
|
||||
final int? voiceDurationMs;
|
||||
final String? voiceCodec;
|
||||
|
||||
// NEW: Retry logic fields
|
||||
final String? messageId;
|
||||
@@ -30,6 +34,10 @@ class Message {
|
||||
required this.isOutgoing,
|
||||
this.isCli = false,
|
||||
this.status = MessageStatus.pending,
|
||||
this.isVoice = false,
|
||||
this.voicePath,
|
||||
this.voiceDurationMs,
|
||||
this.voiceCodec,
|
||||
this.messageId,
|
||||
this.retryCount = 0,
|
||||
this.estimatedTimeoutMs,
|
||||
@@ -55,6 +63,10 @@ class Message {
|
||||
int? pathLength,
|
||||
Uint8List? pathBytes,
|
||||
bool? isCli,
|
||||
bool? isVoice,
|
||||
String? voicePath,
|
||||
int? voiceDurationMs,
|
||||
String? voiceCodec,
|
||||
}) {
|
||||
return Message(
|
||||
senderKey: senderKey,
|
||||
@@ -63,6 +75,10 @@ class Message {
|
||||
isOutgoing: isOutgoing,
|
||||
isCli: isCli ?? this.isCli,
|
||||
status: status ?? this.status,
|
||||
isVoice: isVoice ?? this.isVoice,
|
||||
voicePath: voicePath ?? this.voicePath,
|
||||
voiceDurationMs: voiceDurationMs ?? this.voiceDurationMs,
|
||||
voiceCodec: voiceCodec ?? this.voiceCodec,
|
||||
messageId: messageId,
|
||||
retryCount: retryCount ?? this.retryCount,
|
||||
estimatedTimeoutMs: estimatedTimeoutMs ?? this.estimatedTimeoutMs,
|
||||
@@ -101,6 +117,7 @@ class Message {
|
||||
isOutgoing: false,
|
||||
isCli: false,
|
||||
status: MessageStatus.delivered,
|
||||
isVoice: false,
|
||||
pathBytes: Uint8List(0),
|
||||
);
|
||||
}
|
||||
@@ -118,6 +135,7 @@ class Message {
|
||||
isOutgoing: true,
|
||||
isCli: false,
|
||||
status: MessageStatus.pending,
|
||||
isVoice: false,
|
||||
pathLength: pathLength,
|
||||
pathBytes: pathBytes,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user