diff --git a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceIndexResource.g.cs
index 0eb8a9b..547f74d 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessTokenServiceResource))]
#endif
public bool IsAccessTokenServiceResource => AccessTokenServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickAccessTokenServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.AccessTokenServiceResource? value)
+ {
+ value = AccessTokenServiceResource;
+ return IsAccessTokenServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? accessTokenServiceResource = null,
+ global::System.Func? accessTokenServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? accessTokenServiceResource = null,
+ global::System.Action? accessTokenServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAccessTokenServiceResource)
+ {
+ accessTokenServiceResource?.Invoke(AccessTokenServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? accessTokenServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceShow.g.cs b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceShow.g.cs
index e064b51..a984dc7 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceShow.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenCustomerServiceShow.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Resource))]
#endif
public bool IsResource => Resource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.AccessTokenServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
+ global::System.Func? resource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
+ global::System.Action? resource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenIndexPublicResource.g.cs
index 9f0f970..84732fe 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessTokenPublicResource))]
#endif
public bool IsAccessTokenPublicResource => AccessTokenPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickAccessTokenPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.AccessTokenPublicResource? value)
+ {
+ value = AccessTokenPublicResource;
+ return IsAccessTokenPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? accessTokenPublicResource = null,
+ global::System.Func? accessTokenPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? accessTokenPublicResource = null,
+ global::System.Action? accessTokenPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAccessTokenPublicResource)
+ {
+ accessTokenPublicResource?.Invoke(AccessTokenPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? accessTokenPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenShowPublicResource.g.cs
index 8d88341..4f483bf 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.AccessTokenShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.AccessTokenShowPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AccessTokenPublicResource))]
#endif
public bool IsAccessTokenPublicResource => AccessTokenPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickAccessTokenPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.AccessTokenPublicResource? value)
+ {
+ value = AccessTokenPublicResource;
+ return IsAccessTokenPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? accessTokenPublicResource = null,
+ global::System.Func? accessTokenPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? accessTokenPublicResource = null,
+ global::System.Action? accessTokenPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsAccessTokenPublicResource)
+ {
+ accessTokenPublicResource?.Invoke(AccessTokenPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? accessTokenPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceIndexResource.g.cs
index 5e0e167..e539d0b 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompanyServiceResource))]
#endif
public bool IsCompanyServiceResource => CompanyServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCompanyServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CompanyServiceResource? value)
+ {
+ value = CompanyServiceResource;
+ return IsCompanyServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? companyServiceResource = null,
+ global::System.Func? companyServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? companyServiceResource = null,
+ global::System.Action? companyServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCompanyServiceResource)
+ {
+ companyServiceResource?.Invoke(CompanyServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? companyServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceShow.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceShow.g.cs
index 620d9de..11ecea2 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceShow.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CompanyCustomerServiceShow.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Resource))]
#endif
public bool IsResource => Resource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CompanyServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
+ global::System.Func? resource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
+ global::System.Action? resource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CompanyIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CompanyIndexPublicResource.g.cs
index c968835..f0563e6 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CompanyIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CompanyIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompanyPublicResource))]
#endif
public bool IsCompanyPublicResource => CompanyPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCompanyPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CompanyPublicResource? value)
+ {
+ value = CompanyPublicResource;
+ return IsCompanyPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? companyPublicResource = null,
+ global::System.Func? companyPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? companyPublicResource = null,
+ global::System.Action? companyPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCompanyPublicResource)
+ {
+ companyPublicResource?.Invoke(CompanyPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? companyPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CompanyShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CompanyShowPublicResource.g.cs
index ae5ed0d..111546c 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CompanyShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CompanyShowPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompanyPublicResource))]
#endif
public bool IsCompanyPublicResource => CompanyPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCompanyPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CompanyPublicResource? value)
+ {
+ value = CompanyPublicResource;
+ return IsCompanyPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? companyPublicResource = null,
+ global::System.Func? companyPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? companyPublicResource = null,
+ global::System.Action? companyPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCompanyPublicResource)
+ {
+ companyPublicResource?.Invoke(CompanyPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? companyPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerCustomerServiceShowResourceResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerCustomerServiceShowResourceResource.g.cs
index 8fc31d2..7b201a0 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerCustomerServiceShowResourceResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerCustomerServiceShowResourceResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsCustomerServiceResource => CustomerServiceResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickCustomerServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerServiceResource? value)
+ {
+ value = CustomerServiceResource;
+ return IsCustomerServiceResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomerCustomerServiceShowResourceResourceVariant2))]
#endif
public bool IsCustomerCustomerServiceShowResourceResourceVariant2 => CustomerCustomerServiceShowResourceResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCustomerCustomerServiceShowResourceResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerCustomerServiceShowResourceResourceVariant2? value)
+ {
+ value = CustomerCustomerServiceShowResourceResourceVariant2;
+ return IsCustomerCustomerServiceShowResourceResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? customerServiceResource = null,
- global::System.Func? customerCustomerServiceShowResourceResourceVariant2 = null,
+ global::System.Func? customerServiceResource = null,
+ global::System.Func? customerCustomerServiceShowResourceResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? customerServiceResource = null,
- global::System.Action? customerCustomerServiceShowResourceResourceVariant2 = null,
+ global::System.Action? customerServiceResource = null,
+
+ global::System.Action? customerCustomerServiceShowResourceResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCustomerServiceResource)
+ {
+ customerServiceResource?.Invoke(CustomerServiceResource!);
+ }
+ else if (IsCustomerCustomerServiceShowResourceResourceVariant2)
+ {
+ customerCustomerServiceShowResourceResourceVariant2?.Invoke(CustomerCustomerServiceShowResourceResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? customerServiceResource = null,
+ global::System.Action? customerCustomerServiceShowResourceResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceIndexResource.g.cs
index e06622b..471a4d8 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomerLicenseLimitServiceResource))]
#endif
public bool IsCustomerLicenseLimitServiceResource => CustomerLicenseLimitServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCustomerLicenseLimitServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerLicenseLimitServiceResource? value)
+ {
+ value = CustomerLicenseLimitServiceResource;
+ return IsCustomerLicenseLimitServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? customerLicenseLimitServiceResource = null,
+ global::System.Func? customerLicenseLimitServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? customerLicenseLimitServiceResource = null,
+ global::System.Action? customerLicenseLimitServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCustomerLicenseLimitServiceResource)
+ {
+ customerLicenseLimitServiceResource?.Invoke(CustomerLicenseLimitServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? customerLicenseLimitServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceShow.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceShow.g.cs
index bacf57b..5208b40 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceShow.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitCustomerServiceShow.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Resource))]
#endif
public bool IsResource => Resource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerLicenseLimitServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
+ global::System.Func? resource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
+ global::System.Action? resource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitIndexPublicResource.g.cs
index 60f4b27..15edefe 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomerLicenseLimitPublicResource))]
#endif
public bool IsCustomerLicenseLimitPublicResource => CustomerLicenseLimitPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCustomerLicenseLimitPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerLicenseLimitPublicResource? value)
+ {
+ value = CustomerLicenseLimitPublicResource;
+ return IsCustomerLicenseLimitPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? customerLicenseLimitPublicResource = null,
+ global::System.Func? customerLicenseLimitPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? customerLicenseLimitPublicResource = null,
+ global::System.Action? customerLicenseLimitPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCustomerLicenseLimitPublicResource)
+ {
+ customerLicenseLimitPublicResource?.Invoke(CustomerLicenseLimitPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? customerLicenseLimitPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitShowPublicResource.g.cs
index 218cb98..f6ed07c 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerLicenseLimitShowPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomerLicenseLimitPublicResource))]
#endif
public bool IsCustomerLicenseLimitPublicResource => CustomerLicenseLimitPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCustomerLicenseLimitPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerLicenseLimitPublicResource? value)
+ {
+ value = CustomerLicenseLimitPublicResource;
+ return IsCustomerLicenseLimitPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? customerLicenseLimitPublicResource = null,
+ global::System.Func? customerLicenseLimitPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? customerLicenseLimitPublicResource = null,
+ global::System.Action? customerLicenseLimitPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCustomerLicenseLimitPublicResource)
+ {
+ customerLicenseLimitPublicResource?.Invoke(CustomerLicenseLimitPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? customerLicenseLimitPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.CustomerShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.CustomerShowPublicResource.g.cs
index c08c8d9..15f6826 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.CustomerShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.CustomerShowPublicResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsCustomerPublicResource => CustomerPublicResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickCustomerPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerPublicResource? value)
+ {
+ value = CustomerPublicResource;
+ return IsCustomerPublicResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomerShowPublicResourceVariant2))]
#endif
public bool IsCustomerShowPublicResourceVariant2 => CustomerShowPublicResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickCustomerShowPublicResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.CustomerShowPublicResourceVariant2? value)
+ {
+ value = CustomerShowPublicResourceVariant2;
+ return IsCustomerShowPublicResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? customerPublicResource = null,
- global::System.Func? customerShowPublicResourceVariant2 = null,
+ global::System.Func? customerPublicResource = null,
+ global::System.Func? customerShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? customerPublicResource = null,
- global::System.Action? customerShowPublicResourceVariant2 = null,
+ global::System.Action? customerPublicResource = null,
+
+ global::System.Action? customerShowPublicResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCustomerPublicResource)
+ {
+ customerPublicResource?.Invoke(CustomerPublicResource!);
+ }
+ else if (IsCustomerShowPublicResourceVariant2)
+ {
+ customerShowPublicResourceVariant2?.Invoke(CustomerShowPublicResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? customerPublicResource = null,
+ global::System.Action? customerShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.LicenseCustomerServiceIndex.g.cs b/src/libs/Mubert/Generated/Mubert.Models.LicenseCustomerServiceIndex.g.cs
index bddf752..d7a8305 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.LicenseCustomerServiceIndex.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.LicenseCustomerServiceIndex.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Resource))]
#endif
public bool IsResource => Resource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.LicenseServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
+ global::System.Func? resource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
+ global::System.Action? resource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.LicenseIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.LicenseIndexPublicResource.g.cs
index cf46fed..151827e 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.LicenseIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.LicenseIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LicensePublicResource))]
#endif
public bool IsLicensePublicResource => LicensePublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickLicensePublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.LicensePublicResource? value)
+ {
+ value = LicensePublicResource;
+ return IsLicensePublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? licensePublicResource = null,
+ global::System.Func? licensePublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? licensePublicResource = null,
+ global::System.Action? licensePublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsLicensePublicResource)
+ {
+ licensePublicResource?.Invoke(LicensePublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? licensePublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.MetadataPaginationSortable.g.cs b/src/libs/Mubert/Generated/Mubert.Models.MetadataPaginationSortable.g.cs
index d98009b..26142fc 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.MetadataPaginationSortable.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.MetadataPaginationSortable.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsMetadataPagination => MetadataPagination != null;
+ ///
+ ///
+ ///
+ public bool TryPickMetadataPagination(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.MetadataPagination? value)
+ {
+ value = MetadataPagination;
+ return IsMetadataPagination;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MetadataPaginationSortableVariant2))]
#endif
public bool IsMetadataPaginationSortableVariant2 => MetadataPaginationSortableVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickMetadataPaginationSortableVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.MetadataPaginationSortableVariant2? value)
+ {
+ value = MetadataPaginationSortableVariant2;
+ return IsMetadataPaginationSortableVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? metadataPagination = null,
- global::System.Func? metadataPaginationSortableVariant2 = null,
+ global::System.Func? metadataPagination = null,
+ global::System.Func? metadataPaginationSortableVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? metadataPagination = null,
- global::System.Action? metadataPaginationSortableVariant2 = null,
+ global::System.Action? metadataPagination = null,
+
+ global::System.Action? metadataPaginationSortableVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsMetadataPagination)
+ {
+ metadataPagination?.Invoke(MetadataPagination!);
+ }
+ else if (IsMetadataPaginationSortableVariant2)
+ {
+ metadataPaginationSortableVariant2?.Invoke(MetadataPaginationSortableVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? metadataPagination = null,
+ global::System.Action? metadataPaginationSortableVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.PlaylistCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.PlaylistCustomerServiceIndexResource.g.cs
index 4a4a6bd..0bc4c2e 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.PlaylistCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.PlaylistCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PlaylistServiceResource))]
#endif
public bool IsPlaylistServiceResource => PlaylistServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPlaylistServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.PlaylistServiceResource? value)
+ {
+ value = PlaylistServiceResource;
+ return IsPlaylistServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? playlistServiceResource = null,
+ global::System.Func? playlistServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? playlistServiceResource = null,
+ global::System.Action? playlistServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPlaylistServiceResource)
+ {
+ playlistServiceResource?.Invoke(PlaylistServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? playlistServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.PlaylistIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.PlaylistIndexPublicResource.g.cs
index 3a1b6b7..adcf9c6 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.PlaylistIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.PlaylistIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PlaylistPublicResource))]
#endif
public bool IsPlaylistPublicResource => PlaylistPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickPlaylistPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.PlaylistPublicResource? value)
+ {
+ value = PlaylistPublicResource;
+ return IsPlaylistPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? playlistPublicResource = null,
+ global::System.Func? playlistPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? playlistPublicResource = null,
+ global::System.Action? playlistPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsPlaylistPublicResource)
+ {
+ playlistPublicResource?.Invoke(PlaylistPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? playlistPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceIndexResource.g.cs
index d9a9464..00b93db 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceIndexResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsTrackServiceResource => TrackServiceResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickTrackServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackServiceResource? value)
+ {
+ value = TrackServiceResource;
+ return IsTrackServiceResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackCustomerServiceIndexResourceVariant2))]
#endif
public bool IsTrackCustomerServiceIndexResourceVariant2 => TrackCustomerServiceIndexResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackCustomerServiceIndexResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackCustomerServiceIndexResourceVariant2? value)
+ {
+ value = TrackCustomerServiceIndexResourceVariant2;
+ return IsTrackCustomerServiceIndexResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackServiceResource = null,
- global::System.Func? trackCustomerServiceIndexResourceVariant2 = null,
+ global::System.Func? trackServiceResource = null,
+ global::System.Func? trackCustomerServiceIndexResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackServiceResource = null,
- global::System.Action? trackCustomerServiceIndexResourceVariant2 = null,
+ global::System.Action? trackServiceResource = null,
+
+ global::System.Action? trackCustomerServiceIndexResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackServiceResource)
+ {
+ trackServiceResource?.Invoke(TrackServiceResource!);
+ }
+ else if (IsTrackCustomerServiceIndexResourceVariant2)
+ {
+ trackCustomerServiceIndexResourceVariant2?.Invoke(TrackCustomerServiceIndexResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackServiceResource = null,
+ global::System.Action? trackCustomerServiceIndexResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceShow.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceShow.g.cs
index 42baa41..1f10d95 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceShow.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackCustomerServiceShow.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsResource => Resource != null;
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackCustomerServiceShowVariant2))]
#endif
public bool IsTrackCustomerServiceShowVariant2 => TrackCustomerServiceShowVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackCustomerServiceShowVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackCustomerServiceShowVariant2? value)
+ {
+ value = TrackCustomerServiceShowVariant2;
+ return IsTrackCustomerServiceShowVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
- global::System.Func? trackCustomerServiceShowVariant2 = null,
+ global::System.Func? resource = null,
+ global::System.Func? trackCustomerServiceShowVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
- global::System.Action? trackCustomerServiceShowVariant2 = null,
+ global::System.Action? resource = null,
+
+ global::System.Action? trackCustomerServiceShowVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ else if (IsTrackCustomerServiceShowVariant2)
+ {
+ trackCustomerServiceShowVariant2?.Invoke(TrackCustomerServiceShowVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
+ global::System.Action? trackCustomerServiceShowVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceIndexResource.g.cs
index 483d3a3..bc2ac77 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackGenerationServiceResource))]
#endif
public bool IsTrackGenerationServiceResource => TrackGenerationServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackGenerationServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationServiceResource? value)
+ {
+ value = TrackGenerationServiceResource;
+ return IsTrackGenerationServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackGenerationServiceResource = null,
+ global::System.Func? trackGenerationServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackGenerationServiceResource = null,
+ global::System.Action? trackGenerationServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackGenerationServiceResource)
+ {
+ trackGenerationServiceResource?.Invoke(TrackGenerationServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackGenerationServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceShow.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceShow.g.cs
index 1f3cce3..a8a9a7a 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceShow.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationCustomerServiceShow.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsResource => Resource != null;
+ ///
+ ///
+ ///
+ public bool TryPickResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationServiceResource? value)
+ {
+ value = Resource;
+ return IsResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackGenerationCustomerServiceShowVariant2))]
#endif
public bool IsTrackGenerationCustomerServiceShowVariant2 => TrackGenerationCustomerServiceShowVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackGenerationCustomerServiceShowVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationCustomerServiceShowVariant2? value)
+ {
+ value = TrackGenerationCustomerServiceShowVariant2;
+ return IsTrackGenerationCustomerServiceShowVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? resource = null,
- global::System.Func? trackGenerationCustomerServiceShowVariant2 = null,
+ global::System.Func? resource = null,
+ global::System.Func? trackGenerationCustomerServiceShowVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? resource = null,
- global::System.Action? trackGenerationCustomerServiceShowVariant2 = null,
+ global::System.Action? resource = null,
+
+ global::System.Action? trackGenerationCustomerServiceShowVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsResource)
+ {
+ resource?.Invoke(Resource!);
+ }
+ else if (IsTrackGenerationCustomerServiceShowVariant2)
+ {
+ trackGenerationCustomerServiceShowVariant2?.Invoke(TrackGenerationCustomerServiceShowVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? resource = null,
+ global::System.Action? trackGenerationCustomerServiceShowVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationIndexPublicResource.g.cs
index 1194e8b..7ba78d2 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackGenerationPublicResource))]
#endif
public bool IsTrackGenerationPublicResource => TrackGenerationPublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackGenerationPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationPublicResource? value)
+ {
+ value = TrackGenerationPublicResource;
+ return IsTrackGenerationPublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackGenerationPublicResource = null,
+ global::System.Func? trackGenerationPublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackGenerationPublicResource = null,
+ global::System.Action? trackGenerationPublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackGenerationPublicResource)
+ {
+ trackGenerationPublicResource?.Invoke(TrackGenerationPublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackGenerationPublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationShowPublicResource.g.cs
index 230a939..ce5ebc3 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackGenerationShowPublicResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsTrackGenerationPublicResource => TrackGenerationPublicResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickTrackGenerationPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationPublicResource? value)
+ {
+ value = TrackGenerationPublicResource;
+ return IsTrackGenerationPublicResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackGenerationShowPublicResourceVariant2))]
#endif
public bool IsTrackGenerationShowPublicResourceVariant2 => TrackGenerationShowPublicResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackGenerationShowPublicResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackGenerationShowPublicResourceVariant2? value)
+ {
+ value = TrackGenerationShowPublicResourceVariant2;
+ return IsTrackGenerationShowPublicResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackGenerationPublicResource = null,
- global::System.Func? trackGenerationShowPublicResourceVariant2 = null,
+ global::System.Func? trackGenerationPublicResource = null,
+ global::System.Func? trackGenerationShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackGenerationPublicResource = null,
- global::System.Action? trackGenerationShowPublicResourceVariant2 = null,
+ global::System.Action? trackGenerationPublicResource = null,
+
+ global::System.Action? trackGenerationShowPublicResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackGenerationPublicResource)
+ {
+ trackGenerationPublicResource?.Invoke(TrackGenerationPublicResource!);
+ }
+ else if (IsTrackGenerationShowPublicResourceVariant2)
+ {
+ trackGenerationShowPublicResourceVariant2?.Invoke(TrackGenerationShowPublicResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackGenerationPublicResource = null,
+ global::System.Action? trackGenerationShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackIndexPublicResource.g.cs
index deff7b3..a13bdb7 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackIndexPublicResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsTrackPublicResource => TrackPublicResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickTrackPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackPublicResource? value)
+ {
+ value = TrackPublicResource;
+ return IsTrackPublicResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackIndexPublicResourceVariant2))]
#endif
public bool IsTrackIndexPublicResourceVariant2 => TrackIndexPublicResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackIndexPublicResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackIndexPublicResourceVariant2? value)
+ {
+ value = TrackIndexPublicResourceVariant2;
+ return IsTrackIndexPublicResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackPublicResource = null,
- global::System.Func? trackIndexPublicResourceVariant2 = null,
+ global::System.Func? trackPublicResource = null,
+ global::System.Func? trackIndexPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackPublicResource = null,
- global::System.Action? trackIndexPublicResourceVariant2 = null,
+ global::System.Action? trackPublicResource = null,
+
+ global::System.Action? trackIndexPublicResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackPublicResource)
+ {
+ trackPublicResource?.Invoke(TrackPublicResource!);
+ }
+ else if (IsTrackIndexPublicResourceVariant2)
+ {
+ trackIndexPublicResourceVariant2?.Invoke(TrackIndexPublicResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackPublicResource = null,
+ global::System.Action? trackIndexPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackShowPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackShowPublicResource.g.cs
index d4f47ef..320b52e 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackShowPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackShowPublicResource.g.cs
@@ -26,6 +26,19 @@ namespace Mubert
#endif
public bool IsTrackPublicResource => TrackPublicResource != null;
+ ///
+ ///
+ ///
+ public bool TryPickTrackPublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackPublicResource? value)
+ {
+ value = TrackPublicResource;
+ return IsTrackPublicResource;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackShowPublicResourceVariant2))]
#endif
public bool IsTrackShowPublicResourceVariant2 => TrackShowPublicResourceVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackShowPublicResourceVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackShowPublicResourceVariant2? value)
+ {
+ value = TrackShowPublicResourceVariant2;
+ return IsTrackShowPublicResourceVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackPublicResource = null,
- global::System.Func? trackShowPublicResourceVariant2 = null,
+ global::System.Func? trackPublicResource = null,
+ global::System.Func? trackShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackPublicResource = null,
- global::System.Action? trackShowPublicResourceVariant2 = null,
+ global::System.Action? trackPublicResource = null,
+
+ global::System.Action? trackShowPublicResourceVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackPublicResource)
+ {
+ trackPublicResource?.Invoke(TrackPublicResource!);
+ }
+ else if (IsTrackShowPublicResourceVariant2)
+ {
+ trackShowPublicResourceVariant2?.Invoke(TrackShowPublicResourceVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackPublicResource = null,
+ global::System.Action? trackShowPublicResourceVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackStoreCustomerServiceIndexResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackStoreCustomerServiceIndexResource.g.cs
index 7aff8e3..27699f4 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackStoreCustomerServiceIndexResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackStoreCustomerServiceIndexResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackStoreServiceResource))]
#endif
public bool IsTrackStoreServiceResource => TrackStoreServiceResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackStoreServiceResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackStoreServiceResource? value)
+ {
+ value = TrackStoreServiceResource;
+ return IsTrackStoreServiceResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackStoreServiceResource = null,
+ global::System.Func? trackStoreServiceResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackStoreServiceResource = null,
+ global::System.Action? trackStoreServiceResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackStoreServiceResource)
+ {
+ trackStoreServiceResource?.Invoke(TrackStoreServiceResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackStoreServiceResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.Models.TrackStoreIndexPublicResource.g.cs b/src/libs/Mubert/Generated/Mubert.Models.TrackStoreIndexPublicResource.g.cs
index 51c70f2..d46b92d 100644
--- a/src/libs/Mubert/Generated/Mubert.Models.TrackStoreIndexPublicResource.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.Models.TrackStoreIndexPublicResource.g.cs
@@ -25,6 +25,19 @@ namespace Mubert
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TrackStorePublicResource))]
#endif
public bool IsTrackStorePublicResource => TrackStorePublicResource != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickTrackStorePublicResource(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::Mubert.TrackStorePublicResource? value)
+ {
+ value = TrackStorePublicResource;
+ return IsTrackStorePublicResource;
+ }
///
///
///
@@ -69,7 +82,7 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? trackStorePublicResource = null,
+ global::System.Func? trackStorePublicResource = null,
bool validate = true)
{
if (validate)
@@ -89,7 +102,25 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? trackStorePublicResource = null,
+ global::System.Action? trackStorePublicResource = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsTrackStorePublicResource)
+ {
+ trackStorePublicResource?.Invoke(TrackStorePublicResource!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? trackStorePublicResource = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/Mubert/Generated/Mubert.MubertClient.Constructors.Bearer.g.cs b/src/libs/Mubert/Generated/Mubert.MubertClient.Constructors.Bearer.g.cs
index 8d7166c..aa27098 100644
--- a/src/libs/Mubert/Generated/Mubert.MubertClient.Constructors.Bearer.g.cs
+++ b/src/libs/Mubert/Generated/Mubert.MubertClient.Constructors.Bearer.g.cs
@@ -26,5 +26,6 @@ partial void Authorizing(
ref string apiKey);
partial void Authorized(
global::System.Net.Http.HttpClient client);
+
}
}
\ No newline at end of file