6391515c19
* update generator and tests * Add ImplementationOptions * option tests * fix some tests * UseExtendedInterfaces with flag enum parsing * add test for using base interfaces instead of interface * add ProxyForBaseInterface * add extra overload * don't put new if we're replacing interfaces * really remove AutoMapper * remove akka and fix up interface * Bigger bump for version * adjust readme
62 lines
2.1 KiB
C#
62 lines
2.1 KiB
C#
using Speckle.ProxyGenerator.Types;
|
|
|
|
namespace Speckle.ProxyGenerator.Models;
|
|
|
|
internal class ProxyData
|
|
{
|
|
public string Namespace { get; }
|
|
|
|
public string NamespaceDot { get; }
|
|
|
|
public string ShortInterfaceName { get; }
|
|
|
|
private string _fullInterfaceName;
|
|
public string FullInterfaceName => FullQualifiedMappedTypeName ?? _fullInterfaceName;
|
|
|
|
public string FullQualifiedTypeName { get; }
|
|
|
|
public string? FullQualifiedMappedTypeName { get; set; }
|
|
|
|
public string ShortMetadataName { get; }
|
|
|
|
public string FullMetadataTypeName { get; }
|
|
|
|
public List<string> Usings { get; }
|
|
|
|
public ImplementationOptions Options { get; }
|
|
public ProxyClassAccessibility Accessibility { get; }
|
|
public string[] MembersToIgnore { get; }
|
|
|
|
public ProxyData(
|
|
string @namespace,
|
|
string namespaceDot,
|
|
string shortInterfaceName,
|
|
string fullInterfaceName,
|
|
string fullQualifiedTypeName,
|
|
string shortMetadataTypeName,
|
|
string fullMetadataTypeName,
|
|
List<string> usings,
|
|
ImplementationOptions options,
|
|
ProxyClassAccessibility accessibility,
|
|
string[] membersToIgnore
|
|
)
|
|
{
|
|
Namespace = @namespace ?? throw new ArgumentNullException(nameof(@namespace));
|
|
NamespaceDot = namespaceDot ?? throw new ArgumentNullException(nameof(namespaceDot));
|
|
ShortInterfaceName =
|
|
shortInterfaceName ?? throw new ArgumentNullException(nameof(shortInterfaceName));
|
|
_fullInterfaceName =
|
|
fullInterfaceName ?? throw new ArgumentNullException(nameof(fullInterfaceName));
|
|
FullQualifiedTypeName =
|
|
fullQualifiedTypeName ?? throw new ArgumentNullException(nameof(fullQualifiedTypeName));
|
|
ShortMetadataName =
|
|
shortMetadataTypeName ?? throw new ArgumentNullException(nameof(shortMetadataTypeName));
|
|
FullMetadataTypeName =
|
|
fullMetadataTypeName ?? throw new ArgumentNullException(nameof(fullMetadataTypeName));
|
|
Usings = usings ?? throw new ArgumentNullException(nameof(usings));
|
|
Options = options;
|
|
Accessibility = accessibility;
|
|
MembersToIgnore = membersToIgnore;
|
|
}
|
|
}
|