Table of Contents

Class GetContentRequest

Namespace
Quilt4Net.Toolkit.Features.FeatureToggle
Assembly
Quilt4Net.Toolkit.dll
public record GetContentRequest : ILanguageKeyContext, IEquatable<GetContentRequest>
Inheritance
GetContentRequest
Implements
Inherited Members

Properties

Application

public required string Application { get; init; }

Property Value

string

ContentFormat

public required ContentFormat? ContentFormat { get; init; }

Property Value

ContentFormat?

DefaultValue

public required string DefaultValue { get; init; }

Property Value

string

Environment

public required string Environment { get; init; }

Property Value

string

Instance

public required string Instance { get; init; }

Property Value

string

Key

public required string Key { get; init; }

Property Value

string

LanguageKey

public required Guid LanguageKey { get; init; }

Property Value

Guid

Translations

Optional developer-supplied exact translations for this key, keyed by language name (as entered on the server), e.g. { ["Swedish"] = "Ärende" }. When the key is first materialized the server stores each of these verbatim as authoritative content for the matching language and skips AI translation for it; the remaining AI-enabled languages are translated as usual. A name matching no configured language is ignored. Null/empty (the default) means "no direct translations" — fully backward compatible with older servers, which simply ignore the field.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyDictionary<string, string> Translations { get; init; }

Property Value

IReadOnlyDictionary<string, string>