using AssemblyRemapper.Enums; using Newtonsoft.Json; namespace AssemblyRemapper.Models; /// /// Object to store linq statements in inside of json to search and remap classes /// internal class RemapModel { [JsonIgnore] public bool Succeeded { get; set; } = false; [JsonIgnore] public EFailureReason FailureReason { get; set; } [JsonIgnore] public HashSet Scores { get; set; } = []; public string NewTypeName { get; set; } = string.Empty; public string OriginalTypeName { get; set; } = string.Empty; public bool UseForceRename { get; set; } public SearchParams SearchParams { get; set; } = new(); } /// /// Search filters to find types and remap them /// internal class SearchParams { public bool? IsPublic { get; set; } = null; public bool? IsAbstract { get; set; } = null; public bool? IsInterface { get; set; } = null; public bool? IsEnum { get; set; } = null; public bool? IsNested { get; set; } = null; public string? ParentName { get; set; } = null; public bool? IsSealed { get; set; } = null; public bool? HasAttribute { get; set; } = null; public bool? IsDerived { get; set; } = null; public bool? HasGenericParameters { get; set; } = null; public string MatchBaseClass { get; set; } public string IgnoreBaseClass { get; set; } public List MatchMethods { get; set; } public List IgnoreMethods { get; set; } public List MatchFields { get; set; } public List IgnoreFields { get; set; } public List MatchProperties { get; set; } public List IgnorePropterties { get; set; } public List MatchNestedTypes { get; set; } public List IgnoreNestedTypes { get; set; } public SearchParams() { } } internal class AdvancedSearchParams { }