-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse HttpClient for AniDB Http Commands
- Loading branch information
Showing
3 changed files
with
48 additions
and
234 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#nullable enable | ||
namespace Shoko.Server.ImageDownload; | ||
|
||
/// <summary> | ||
/// Represents the result of an image download operation. | ||
/// </summary> | ||
public enum ImageDownloadResult | ||
{ | ||
/// <summary> | ||
/// The image was successfully downloaded and saved. | ||
/// </summary> | ||
Success = 1, | ||
|
||
/// <summary> | ||
/// The image was not downloaded because it was already available in the cache. | ||
/// </summary> | ||
Cached = 2, | ||
|
||
/// <summary> | ||
/// The image could not be downloaded due to not being able to get the | ||
/// source or destination. | ||
/// </summary> | ||
Failure = 3, | ||
|
||
/// <summary> | ||
/// The image was not downloaded because the resource has been removed or is | ||
/// no longer available, but we could not remove the local entry because of | ||
/// its type. | ||
/// </summary> | ||
InvalidResource = 4, | ||
|
||
/// <summary> | ||
/// The image was not downloaded because the resource has been removed or is | ||
/// no longer available, and thus have also been removed from the local | ||
/// database. | ||
/// </summary> | ||
RemovedResource = 5, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters