Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ partial void Authorizing(
ref string apiKey);
partial void Authorized(
global::System.Net.Http.HttpClient client);

}
}
58 changes: 54 additions & 4 deletions src/libs/Hyper3D/Generated/Hyper3D.Models.DownloadResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ namespace Hyper3D
#endif
public bool IsCommonError => CommonError != null;

/// <summary>
///
/// </summary>
public bool TryPickCommonError(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.CommonError? value)
{
value = CommonError;
return IsCommonError;
}

/// <summary>
///
/// </summary>
Expand All @@ -42,6 +55,19 @@ namespace Hyper3D
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DownloadResponseVariant2))]
#endif
public bool IsDownloadResponseVariant2 => DownloadResponseVariant2 != null;

/// <summary>
///
/// </summary>
public bool TryPickDownloadResponseVariant2(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.DownloadResponseVariant2? value)
{
value = DownloadResponseVariant2;
return IsDownloadResponseVariant2;
}
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -118,8 +144,8 @@ public bool Validate()
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<global::Hyper3D.CommonError?, TResult>? commonError = null,
global::System.Func<global::Hyper3D.DownloadResponseVariant2?, TResult>? downloadResponseVariant2 = null,
global::System.Func<global::Hyper3D.CommonError, TResult>? commonError = null,
global::System.Func<global::Hyper3D.DownloadResponseVariant2, TResult>? downloadResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand All @@ -143,8 +169,32 @@ public bool Validate()
///
/// </summary>
public void Match(
global::System.Action<global::Hyper3D.CommonError?>? commonError = null,
global::System.Action<global::Hyper3D.DownloadResponseVariant2?>? downloadResponseVariant2 = null,
global::System.Action<global::Hyper3D.CommonError>? commonError = null,

global::System.Action<global::Hyper3D.DownloadResponseVariant2>? downloadResponseVariant2 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsCommonError)
{
commonError?.Invoke(CommonError!);
}
else if (IsDownloadResponseVariant2)
{
downloadResponseVariant2?.Invoke(DownloadResponseVariant2!);
}
}

/// <summary>
///
/// </summary>
public void Switch(
global::System.Action<global::Hyper3D.CommonError>? commonError = null,
global::System.Action<global::Hyper3D.DownloadResponseVariant2>? downloadResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand Down
58 changes: 54 additions & 4 deletions src/libs/Hyper3D/Generated/Hyper3D.Models.StatusResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ namespace Hyper3D
#endif
public bool IsCommonError => CommonError != null;

/// <summary>
///
/// </summary>
public bool TryPickCommonError(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.CommonError? value)
{
value = CommonError;
return IsCommonError;
}

/// <summary>
///
/// </summary>
Expand All @@ -42,6 +55,19 @@ namespace Hyper3D
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StatusResponseVariant2))]
#endif
public bool IsStatusResponseVariant2 => StatusResponseVariant2 != null;

/// <summary>
///
/// </summary>
public bool TryPickStatusResponseVariant2(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.StatusResponseVariant2? value)
{
value = StatusResponseVariant2;
return IsStatusResponseVariant2;
}
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -118,8 +144,8 @@ public bool Validate()
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<global::Hyper3D.CommonError?, TResult>? commonError = null,
global::System.Func<global::Hyper3D.StatusResponseVariant2?, TResult>? statusResponseVariant2 = null,
global::System.Func<global::Hyper3D.CommonError, TResult>? commonError = null,
global::System.Func<global::Hyper3D.StatusResponseVariant2, TResult>? statusResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand All @@ -143,8 +169,32 @@ public bool Validate()
///
/// </summary>
public void Match(
global::System.Action<global::Hyper3D.CommonError?>? commonError = null,
global::System.Action<global::Hyper3D.StatusResponseVariant2?>? statusResponseVariant2 = null,
global::System.Action<global::Hyper3D.CommonError>? commonError = null,

global::System.Action<global::Hyper3D.StatusResponseVariant2>? statusResponseVariant2 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsCommonError)
{
commonError?.Invoke(CommonError!);
}
else if (IsStatusResponseVariant2)
{
statusResponseVariant2?.Invoke(StatusResponseVariant2!);
}
}

/// <summary>
///
/// </summary>
public void Switch(
global::System.Action<global::Hyper3D.CommonError>? commonError = null,
global::System.Action<global::Hyper3D.StatusResponseVariant2>? statusResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ namespace Hyper3D
#endif
public bool IsCommonError => CommonError != null;

/// <summary>
///
/// </summary>
public bool TryPickCommonError(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.CommonError? value)
{
value = CommonError;
return IsCommonError;
}

/// <summary>
///
/// </summary>
Expand All @@ -42,6 +55,19 @@ namespace Hyper3D
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TaskSubmissionResponseVariant2))]
#endif
public bool IsTaskSubmissionResponseVariant2 => TaskSubmissionResponseVariant2 != null;

/// <summary>
///
/// </summary>
public bool TryPickTaskSubmissionResponseVariant2(
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
#endif
out global::Hyper3D.TaskSubmissionResponseVariant2? value)
{
value = TaskSubmissionResponseVariant2;
return IsTaskSubmissionResponseVariant2;
}
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -118,8 +144,8 @@ public bool Validate()
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<global::Hyper3D.CommonError?, TResult>? commonError = null,
global::System.Func<global::Hyper3D.TaskSubmissionResponseVariant2?, TResult>? taskSubmissionResponseVariant2 = null,
global::System.Func<global::Hyper3D.CommonError, TResult>? commonError = null,
global::System.Func<global::Hyper3D.TaskSubmissionResponseVariant2, TResult>? taskSubmissionResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand All @@ -143,8 +169,32 @@ public bool Validate()
///
/// </summary>
public void Match(
global::System.Action<global::Hyper3D.CommonError?>? commonError = null,
global::System.Action<global::Hyper3D.TaskSubmissionResponseVariant2?>? taskSubmissionResponseVariant2 = null,
global::System.Action<global::Hyper3D.CommonError>? commonError = null,

global::System.Action<global::Hyper3D.TaskSubmissionResponseVariant2>? taskSubmissionResponseVariant2 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsCommonError)
{
commonError?.Invoke(CommonError!);
}
else if (IsTaskSubmissionResponseVariant2)
{
taskSubmissionResponseVariant2?.Invoke(TaskSubmissionResponseVariant2!);
}
}

/// <summary>
///
/// </summary>
public void Switch(
global::System.Action<global::Hyper3D.CommonError>? commonError = null,
global::System.Action<global::Hyper3D.TaskSubmissionResponseVariant2>? taskSubmissionResponseVariant2 = null,
bool validate = true)
{
if (validate)
Expand Down