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
ContentFormat
public required ContentFormat? ContentFormat { get; init; }
Property Value
DefaultValue
public required string DefaultValue { get; init; }
Property Value
Environment
public required string Environment { get; init; }
Property Value
Instance
public required string Instance { get; init; }
Property Value
Key
public required string Key { get; init; }
Property Value
LanguageKey
public required Guid LanguageKey { get; init; }
Property Value
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; }