Skip to content

Commit a7cbc09

Browse files
committed
feat: extend sprint 4 IRCv3 and DCC parity
1 parent f59c4e0 commit a7cbc09

File tree

8 files changed

+1478
-24
lines changed

8 files changed

+1478
-24
lines changed

lib/core/models/dcc_session.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class DccSession {
1717
this.token,
1818
this.filePath,
1919
this.bytesTransferred = 0,
20+
this.resumeOffset = 0,
21+
this.isReverse = false,
2022
this.error,
2123
});
2224

@@ -33,6 +35,8 @@ class DccSession {
3335
final String? token;
3436
final String? filePath;
3537
final int bytesTransferred;
38+
final int resumeOffset;
39+
final bool isReverse;
3640
final String? error;
3741

3842
DccSession copyWith({
@@ -49,6 +53,8 @@ class DccSession {
4953
String? token,
5054
String? filePath,
5155
int? bytesTransferred,
56+
int? resumeOffset,
57+
bool? isReverse,
5258
String? error,
5359
}) {
5460
return DccSession(
@@ -65,6 +71,8 @@ class DccSession {
6571
token: token ?? this.token,
6672
filePath: filePath ?? this.filePath,
6773
bytesTransferred: bytesTransferred ?? this.bytesTransferred,
74+
resumeOffset: resumeOffset ?? this.resumeOffset,
75+
isReverse: isReverse ?? this.isReverse,
6876
error: error ?? this.error,
6977
);
7078
}

0 commit comments

Comments
 (0)