using System.Text.Json.Serialization; namespace Microsoft.Teams.Api.Config; /// /// Envelope for Config Response Payload. /// public class ConfigResponse { /// /// Gets or sets response type invoke request. /// /// Invoke request response type. [JsonPropertyName("responseType")] [JsonPropertyOrder(0)] public string ResponseType { get; set; } = "config"; /// /// Gets or sets the response to the config message. /// Possible values for the config type include: 'auth'or 'task'. /// /// /// Response to a config request. /// [JsonPropertyName("config")] [JsonPropertyOrder(1)] public object? Config { get; set; } /// /// Gets or sets response cache Info. /// /// Value of cache info. [JsonPropertyName("cacheInfo")] [JsonPropertyOrder(2)] public CacheInfo? CacheInfo { get; set; } } /// /// Envelope for Config Response Payload. /// public class ConfigResponse(T config) : ConfigResponse where T : notnull { /// /// Gets or sets the response to the config message. /// Possible values for the config type include: 'auth'or 'task'. /// /// /// Response to a config request. /// [JsonPropertyName("config")] [JsonPropertyOrder(1)] public new T Config { get; set; } = config; }