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();
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();

View File

@ -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
```
{