diff --git a/src/IIIF/IIIF/ImageApi/Service/ImageService3.cs b/src/IIIF/IIIF/ImageApi/Service/ImageService3.cs new file mode 100644 index 0000000..87be1cd --- /dev/null +++ b/src/IIIF/IIIF/ImageApi/Service/ImageService3.cs @@ -0,0 +1,37 @@ +using IIIF.Presentation.V3; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace IIIF.ImageApi.Service +{ + public class ImageService3 : ResourceBase, IService + { + public const string Image3Context = "http://iiif.io/api/image/3/context.json"; + public const string ImageProtocol = "http://iiif.io/api/image"; + + public ImageService3() + { + Context = Image3Context; + } + + public override string Type => nameof(ImageService3); + + [JsonProperty(Order = 3)] + public string Protocol => ImageProtocol; + + [JsonProperty(Order = 11)] + public int Width { get; set; } + + [JsonProperty(Order = 12)] + public int Height { get; set; } + + [JsonProperty(Order = 13)] + public List Sizes { get; set; } + + [JsonProperty(Order = 14)] + public List Tiles { get; set; } + + [JsonProperty(Order = 30)] + public List ExtraFeatures { get; set; } + } +} diff --git a/src/IIIF/IIIF/Presentation/V2/ImageService2Reference.cs b/src/IIIF/IIIF/Presentation/V2/ImageService2Reference.cs new file mode 100644 index 0000000..7ea4486 --- /dev/null +++ b/src/IIIF/IIIF/Presentation/V2/ImageService2Reference.cs @@ -0,0 +1,14 @@ +using IIIF.ImageApi.Service; +using System; + +namespace IIIF.Presentation.V2 +{ + public class ImageService2Reference : ResourceBase, IService + { + public override string Type + { + get => nameof(ImageService2); + set => throw new NotImplementedException(); + } + } +} diff --git a/src/IIIF/IIIF/Presentation/V3/ImageService3Reference.cs b/src/IIIF/IIIF/Presentation/V3/ImageService3Reference.cs new file mode 100644 index 0000000..affb527 --- /dev/null +++ b/src/IIIF/IIIF/Presentation/V3/ImageService3Reference.cs @@ -0,0 +1,9 @@ +using IIIF.ImageApi.Service; + +namespace IIIF.Presentation.V3 +{ + public class ImageService3Reference : ResourceBase, IService + { + public override string Type => nameof(ImageService3); + } +}