summary refs log tree commit diff
path: root/MxApiExtensions/Classes
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-04 02:18:47 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-04 02:18:47 +0200
commit7e40421d0eaee613be5b807502eb25fafebde5b1 (patch)
treeaf84e4c39fd0c3cfa05e1b66fb566d5cda59607f /MxApiExtensions/Classes
parentCode cleanup (diff)
downloadMxApiExtensions-7e40421d0eaee613be5b807502eb25fafebde5b1.tar.xz
Added a lot of utilities
Diffstat (limited to 'MxApiExtensions/Classes')
-rw-r--r--MxApiExtensions/Classes/SyncState.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MxApiExtensions/Classes/SyncState.cs b/MxApiExtensions/Classes/SyncState.cs
new file mode 100644

index 0000000..7f07894 --- /dev/null +++ b/MxApiExtensions/Classes/SyncState.cs
@@ -0,0 +1,14 @@ +using System.Collections.Concurrent; +using LibMatrix.Helpers; +using LibMatrix.Homeservers; + +namespace MxApiExtensions.Classes; + +public class SyncState { + public string? NextBatch { get; set; } + public ConcurrentQueue<SyncResult> SyncQueue { get; set; } = new(); + public bool IsInitialSync { get; set; } + public Task? NextSyncResult { get; set; } + public DateTime NextSyncResultStartedAt { get; set; } = DateTime.Now; + public AuthenticatedHomeserverGeneric Homeserver { get; set; } +}