using System; using System.Collections.Generic; using System.Drawing; using System.Text; using System.Text.Json.Serialization; namespace BukkuBuddy.DTOs.SaveFile { public class App6Options : AppOptionsBase { public class Item { public Guid Id { get; set; } = Guid.NewGuid(); public string Title { get; set; } public string Address { get; set; } public string Description { get; set; } public string Path { get; set; } public string Notes { get; set; } [JsonIgnore] public Image Icon { get; set; } public new string ToString() { StringBuilder sb = new StringBuilder(); if (!string.IsNullOrWhiteSpace(this.Title)) { sb.AppendLine("Name"); sb.AppendLine(this.Title + Environment.NewLine); } if (!string.IsNullOrWhiteSpace(this.Address)) { sb.AppendLine("Address"); sb.AppendLine(this.Address + Environment.NewLine); } if (!string.IsNullOrWhiteSpace(this.Description)) { sb.AppendLine("Description"); sb.AppendLine(this.Description + Environment.NewLine); } if (!string.IsNullOrWhiteSpace(this.Notes)) { sb.AppendLine("Notes"); sb.AppendLine(this.Notes + Environment.NewLine); } return sb.ToString(); } } public new int FileVersion { get; set; } = 6; public bool RestorePosition { get; set; } = true; public bool AlwaysOnTop { get; set; } = false; public string RunCommand { get; set; } = "{0}"; public bool AllowUnsafeSSL { get; set; } = false; public bool AllowCookies { get; set; } = false; public bool AllowRedirects { get; set; } = true; public int Timeout { get; set; } = 6; public List Directories { get; set; } = new List(); public List Items { get; set; } = new List(); } }