Assign numbers to ProgressToken.State

Update type docs
This commit is contained in:
Glax 2024-10-20 20:58:59 +02:00
parent 93696fbac1
commit 9d47445339
2 changed files with 17 additions and 6 deletions

View File

@ -10,7 +10,7 @@ public class ProgressToken
public DateTime executionStarted { get; private set; }
public TimeSpan timeRemaining => GetTimeRemaining();
public enum State { Running, Complete, Standby, Cancelled, Waiting }
public enum State : byte { Running = 0, Complete = 1, Standby = 2, Cancelled = 3, Waiting = 4 }
public State state { get; private set; }
public ProgressToken(int increments)

View File

@ -45,7 +45,7 @@
}
```
## ReleaseStatus
### ReleaseStatus
```
{
Continuing = 0,
@ -74,7 +74,7 @@
}
```
## JobType
### JobType
```
{
DownloadChapterJob = 0,
@ -94,7 +94,18 @@
"lastUpdate": Date,
"executionStarted": Date,
"timeRemaining": Date,
"state": number
"state": number //see ProgressState
}
```
### ProgressState
```
{
Running = 0,
Complete = 1,
Standby = 2,
Cancelled = 3,
Waiting = 4
}
```
@ -129,7 +140,7 @@
}
```
## LibraryType
### LibraryType
```
{
Komga = 0,
@ -149,7 +160,7 @@
}
```
## NotificationConnectorType
### NotificationConnectorType
```
{
Gotify = 0,