Add numbers to JobTypes (and type documentation)

This commit is contained in:
Glax 2024-10-20 01:08:22 +02:00
parent 27f823cfeb
commit a88b85e599
2 changed files with 13 additions and 3 deletions

View File

@ -12,7 +12,7 @@ public abstract class Job : GlobalBase
public string id => GetId(); public string id => GetId();
internal IEnumerable<Job>? subJobs { get; private set; } internal IEnumerable<Job>? subJobs { get; private set; }
public string? parentJobId { get; init; } 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(); public MangaConnector mangaConnector => GetMangaConnector();

View File

@ -21,7 +21,7 @@
"links": string[][], "links": string[][],
"year": int, "year": int,
"originalLanguage": string, "originalLanguage": string,
"releaseStatus": ReleaseStatus, "releaseStatus": ReleaseStatus, see ReleaseStatus
"folderName": string, "folderName": string,
"publicationId": string, "publicationId": string,
"internalId": string, "internalId": string,
@ -53,7 +53,7 @@
## Job ## Job
``` ```
{ {
jobType: number, jobType: number, see JobType
mangaInternalId: string, mangaInternalId: string,
translatedLanguage: string, translatedLanguage: string,
progressToken: ProgressToken, progressToken: ProgressToken,
@ -67,6 +67,16 @@
} }
``` ```
## JobType
```
{
DownloadChapterJob = 0,
DownloadNewChaptersJob = 1,
UpdateMetaDataJob = 2,
MonitorManga = 3
}
```
## ProgressToken ## ProgressToken
``` ```
{ {