mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-22 23:30:13 +01:00
Add numbers to JobTypes (and type documentation)
This commit is contained in:
parent
27f823cfeb
commit
a88b85e599
@ -12,7 +12,7 @@ public abstract class Job : GlobalBase
|
||||
public string id => GetId();
|
||||
internal IEnumerable<Job>? subJobs { get; private set; }
|
||||
public string? parentJobId { get; init; }
|
||||
public enum JobType : byte { DownloadChapterJob, DownloadNewChaptersJob, UpdateMetaDataJob, MonitorManga }
|
||||
public enum JobType : byte { DownloadChapterJob = 0, DownloadNewChaptersJob = 1, UpdateMetaDataJob = 2, MonitorManga = 3 }
|
||||
|
||||
public MangaConnector mangaConnector => GetMangaConnector();
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
"links": string[][],
|
||||
"year": int,
|
||||
"originalLanguage": string,
|
||||
"releaseStatus": ReleaseStatus,
|
||||
"releaseStatus": ReleaseStatus, see ReleaseStatus
|
||||
"folderName": string,
|
||||
"publicationId": string,
|
||||
"internalId": string,
|
||||
@ -53,7 +53,7 @@
|
||||
## Job
|
||||
```
|
||||
{
|
||||
jobType: number,
|
||||
jobType: number, see JobType
|
||||
mangaInternalId: string,
|
||||
translatedLanguage: string,
|
||||
progressToken: ProgressToken,
|
||||
@ -67,6 +67,16 @@
|
||||
}
|
||||
```
|
||||
|
||||
## JobType
|
||||
```
|
||||
{
|
||||
DownloadChapterJob = 0,
|
||||
DownloadNewChaptersJob = 1,
|
||||
UpdateMetaDataJob = 2,
|
||||
MonitorManga = 3
|
||||
}
|
||||
```
|
||||
|
||||
## ProgressToken
|
||||
```
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user