mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 07:40:13 +01:00
Assign numbers to ProgressToken.State
Update type docs
This commit is contained in:
parent
93696fbac1
commit
9d47445339
@ -10,7 +10,7 @@ public class ProgressToken
|
|||||||
public DateTime executionStarted { get; private set; }
|
public DateTime executionStarted { get; private set; }
|
||||||
public TimeSpan timeRemaining => GetTimeRemaining();
|
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 State state { get; private set; }
|
||||||
|
|
||||||
public ProgressToken(int increments)
|
public ProgressToken(int increments)
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## ReleaseStatus
|
### ReleaseStatus
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
Continuing = 0,
|
Continuing = 0,
|
||||||
@ -74,7 +74,7 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## JobType
|
### JobType
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
DownloadChapterJob = 0,
|
DownloadChapterJob = 0,
|
||||||
@ -94,7 +94,18 @@
|
|||||||
"lastUpdate": Date,
|
"lastUpdate": Date,
|
||||||
"executionStarted": Date,
|
"executionStarted": Date,
|
||||||
"timeRemaining": 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,
|
Komga = 0,
|
||||||
@ -149,7 +160,7 @@
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## NotificationConnectorType
|
### NotificationConnectorType
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
Gotify = 0,
|
Gotify = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user