From 4a2e07857cb4df33388f13fb413b8306855fa129 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 27 Nov 2021 17:09:36 -0600 Subject: [PATCH] =?UTF-8?q?docs(dir):=20=F0=9F=93=84=20some=20GET=20vm=20p?= =?UTF-8?q?rops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Queries/GetMaintainers.cs | 29 ++++++++++++++++ .../Queries/GetSoftware.cs | 34 +++++++++++++++++++ .../Queries/GetSyntaxes.cs | 29 ++++++++++++++++ .../Queries/GetTags.cs | 19 +++++++++++ 4 files changed, 111 insertions(+) diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs index 220745417..4d10d5f42 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs @@ -46,11 +46,40 @@ public MaintainerVmProfile() public record MaintainerVm { + /// + /// The identifier. + /// + /// 7 public long Id { get; init; } + + /// + /// The unique name. + /// + /// The EasyList Authors public string Name { get; init; } = default!; + + /// + /// The URL of the home page. + /// + /// https://easylist.to/ public Uri? Url { get; init; } + + /// + /// The email address. + /// + /// null public string? EmailAddress { get; init; } + + /// + /// The Twitter handle. + /// + /// null public string? TwitterHandle { get; init; } + + /// + /// The identifiers of the FilterLists maintained by this Maintainer. + /// + /// [ 11, 13, 301 ] public IEnumerable FilterListIds { get; init; } = new HashSet(); } } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs index 3b65cbcbd..6da472d61 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs @@ -45,12 +45,46 @@ public SoftwareVmProfile() public record SoftwareVm { + /// + /// The identifier. + /// + /// 2 public long Id { get; init; } + + /// + /// The unique name. + /// + /// Adblock Plus public string Name { get; init; } = default!; + + /// + /// The description. + /// + /// Adblock Plus is a free extension that allows you to customize your web experience. You can block annoying ads, disable tracking and lots more. It’s available for all major desktop browsers and for your mobile devices. public string? Description { get; init; } + + /// + /// The URL of the home page. + /// + /// https://adblockplus.org/ public Uri? HomeUrl { get; init; } + + /// + /// The URL of the Software download. + /// + /// https://adblockplus.org/ public Uri? DownloadUrl { get; init; } + + /// + /// If the Software supports the abp: URL scheme to click-to-subscribe to a FilterList. + /// + /// true public bool SupportsAbpUrlScheme { get; init; } + + /// + /// The identifiers of the Syntaxes that this Software supports. + /// + /// [ 3, 28, 38, 48 ] public IEnumerable SyntaxIds { get; init; } = new HashSet(); } } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs index b44a5bcc8..6341ffb9d 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs @@ -49,11 +49,40 @@ public SyntaxVmProfile() public record SyntaxVm { + /// + /// The identifier. + /// + /// 3 public long Id { get; init; } + + /// + /// The unique name. + /// + /// Adblock Plus public string Name { get; init; } = default!; + + /// + /// The description. + /// + /// null public string? Description { get; init; } + + /// + /// The URL of the home page. + /// + /// https://adblockplus.org/filters public Uri? Url { get; init; } + + /// + /// The identifiers of the FilterLists implementing this Syntax. + /// + /// [ 2, 6, 11 ] public IEnumerable FilterListIds { get; init; } = new HashSet(); + + /// + /// The identifiers of the Software that supports this Syntax. + /// + /// [ 1, 2, 3 ] public IEnumerable SoftwareIds { get; init; } = new HashSet(); } } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs index a63f84de1..89444c690 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs @@ -46,9 +46,28 @@ public TagVmProfile() public record TagVm { + /// + /// The identifier. + /// + /// 2 public long Id { get; init; } + + /// + /// The unique name. + /// + /// ads public string Name { get; init; } = default!; + + /// + /// The description. + /// + /// Blocks advertisements public string? Description { get; init; } + + /// + /// The identifiers of the FilterLists to which this Tag is applied. + /// + /// [ 1, 3, 6 ] public IEnumerable FilterListIds { get; init; } = new HashSet(); } }