Skip to content

CommunityQuery

Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.

public sealed record CommunityQuery

What the Community search box asks for: every tag, every owner and every word must match.

Constructors

CommunityQuery(IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyList<string>)

public CommunityQuery(IReadOnlyList<string> Tags, IReadOnlyList<string> Owners, IReadOnlyList<string> Words);

Parameters

  • Tags (IReadOnlyList<string>) - The #tag terms, lowercased, without the hash.
  • Owners (IReadOnlyList<string>) - The @user terms, without the at sign.
  • Words (IReadOnlyList<string>) - The plain words, matched against a collection's name or its collection name.

Properties

IsEmpty

public bool IsEmpty { get; }

Whether the query asks for nothing, so it matches every entry.

Owners

public IReadOnlyList<string> Owners { get; init; }

The @user terms, without the at sign.

Tags

public IReadOnlyList<string> Tags { get; init; }

The #tag terms, lowercased, without the hash.

Words

public IReadOnlyList<string> Words { get; init; }

The plain words, matched against a collection's name or its collection name.