namespace AssemblyRemapper.Models;
///
/// Object to store linq statements in inside of json to search and remap classes
///
internal class RemapModel
{
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 HashSet MethodNamesToMatch { get; set; } = [];
public HashSet MethodNamesToIgnore { get; set; } = [];
public HashSet FieldNamesToMatch { get; set; } = [];
public HashSet FieldNamesToIgnore { get; set; } = [];
public HashSet PropertyNamesToMatch { get; set; } = [];
public HashSet PropertyNamesToIgnore { get; set; } = [];
public HashSet NestedTypesToMatch { get; set; } = [];
public HashSet NestedTypesToIgnore { get; set; } = [];
public SearchParams()
{
}
}