Skip to content

Commit

Permalink
misc: remove static image type [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Aug 8, 2024
1 parent 1d4705e commit 3163fac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Shokofin/API/Models/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class Image
public ImageType Type { get; set; } = ImageType.Poster;

/// <summary>
/// The image's id. Usually an int, but in the case of <see cref="ImageType.Static"/> resources
/// then it is the resource name.
/// The image's id.
/// </summary>
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public int ID { get; set; } = 0;
Expand Down Expand Up @@ -144,9 +143,4 @@ public enum ImageType
/// Clear-text logo.
/// </summary>
Logo = 7,

/// <summary>
/// Static resources are only valid if the <see cref="Image.Source"/> is set to <see cref="ImageSource.Shoko"/>.
/// </summary>
Static = 100
}

0 comments on commit 3163fac

Please sign in to comment.