#nullable enable using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace West.TelegramBot.ChatQuotes.Model.Quote; [JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))] public class Request { public Request(Telegram.Bot.Types.Message msg) { // TODO: move default values to config Format = "webp"; BackgroundColor = "#1b1429"; Width = 512; Height = 768; Scale = 2; Messages = new List {Message.FromMessage(msg)}; } public Type Type { get; set; } public string Format { get; set; } public string BackgroundColor { get; set; } public int Width { get; set; } public int Height { get; set; } public int Scale { get; set; } public List? Messages { get; set; } public string ToJson() { return JsonConvert.SerializeObject(this, ChatQuotes.SerializerSettings); } }