Class GetContentResponse
- Namespace
- Quilt4Net.Toolkit.Features.FeatureToggle
- Assembly
- Quilt4Net.Toolkit.dll
public record GetContentResponse : IEquatable<GetContentResponse>
- Inheritance
-
GetContentResponse
- Implements
- Inherited Members
Properties
FallbackReason
Why Value is not in the requested language, when it is not.
public ContentFallbackReason FallbackReason { get; init; }
Property Value
IsStageFallback
True when the value was served from a lower stage than the caller's environment maps to. Orthogonal to FallbackReason — a value can be both from a lower stage and in the wrong language, so the two dimensions are reported separately rather than collapsed into one enum.
public bool IsStageFallback { get; init; }
Property Value
ServedLanguageKey
The language Value is actually in, which is not necessarily the one requested.
Guid.Empty is the default language; null means the server did not report it
(older server).
public Guid? ServedLanguageKey { get; init; }
Property Value
- Guid?
Remarks
Optional on purpose — every metadata field here is. The server populates them only from the release that added them, and a client on an older server must degrade to "unknown" rather than to a confident wrong answer. That is also why Unknown is the enum's zero value.
ValidTo
public required DateTime ValidTo { get; init; }
Property Value
Value
public required string Value { get; init; }