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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
64 changes: 32 additions & 32 deletions src/libs/RetellAI/Generated/RetellAI.AllOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
namespace RetellAI
{
/// <summary>
///
///
/// </summary>
public readonly partial struct AllOf<T1, T2> : global::System.IEquatable<AllOf<T1, T2>>
{
/// <summary>
///
///
/// </summary>
#if NET6_0_OR_GREATER
public T1? Value1 { get; init; }
Expand All @@ -18,15 +18,15 @@ namespace RetellAI
#endif

/// <summary>
///
///
/// </summary>
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))]
#endif
public bool IsValue1 => Value1 != null;

/// <summary>
///
///
/// </summary>
public bool TryPickValue1(
#if NET6_0_OR_GREATER
Expand All @@ -39,14 +39,14 @@ public bool TryPickValue1(
}

/// <summary>
///
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
///
/// </summary>
#if NET6_0_OR_GREATER
public T2? Value2 { get; init; }
Expand All @@ -55,15 +55,15 @@ public T1 PickValue1() => IsValue1
#endif

/// <summary>
///
///
/// </summary>
#if NET6_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
#endif
public bool IsValue2 => Value2 != null;

/// <summary>
///
///
/// </summary>
public bool TryPickValue2(
#if NET6_0_OR_GREATER
Expand All @@ -76,59 +76,59 @@ public bool TryPickValue2(
}

/// <summary>
///
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
///
/// </summary>
public static implicit operator AllOf<T1, T2>(T1 value) => new AllOf<T1, T2>((T1?)value);

/// <summary>
///
///
/// </summary>
public static implicit operator T1?(AllOf<T1, T2> @this) => @this.Value1;

/// <summary>
///
///
/// </summary>
public AllOf(T1? value)
{
Value1 = value;
}

/// <summary>
///
///
/// </summary>
public static AllOf<T1, T2> FromValue1(T1? value) => new AllOf<T1, T2>(value);

/// <summary>
///
///
/// </summary>
public static implicit operator AllOf<T1, T2>(T2 value) => new AllOf<T1, T2>((T2?)value);

/// <summary>
///
///
/// </summary>
public static implicit operator T2?(AllOf<T1, T2> @this) => @this.Value2;

/// <summary>
///
///
/// </summary>
public AllOf(T2? value)
{
Value2 = value;
}

/// <summary>
///
///
/// </summary>
public static AllOf<T1, T2> FromValue2(T2? value) => new AllOf<T1, T2>(value);

/// <summary>
///
///
/// </summary>
public AllOf(
T1? value1,
Expand All @@ -140,19 +140,19 @@ public AllOf(
}

/// <summary>
///
///
/// </summary>
public object? Object =>
Value2 as object ??
Value1 as object
Value1 as object
;

/// <summary>
///
///
/// </summary>
public override string? ToString() =>
Value1?.ToString() ??
Value2?.ToString()
Value2?.ToString()
;

private static bool RequiresValue<TValue>()
Expand All @@ -170,15 +170,15 @@ private static bool RequiresValue<TValue>()


/// <summary>
///
///
/// </summary>
public bool Validate()
{
return (!RequiresValue<T1>() || IsValue1) && (!RequiresValue<T2>() || IsValue2);
}

/// <summary>
///
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
Expand All @@ -203,7 +203,7 @@ public bool Validate()
}

/// <summary>
///
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
Expand All @@ -227,7 +227,7 @@ public void Match(
}

/// <summary>
///
///
/// </summary>
public void Switch(
global::System.Action<T1>? value1 = null,
Expand All @@ -250,7 +250,7 @@ public void Switch(
}

/// <summary>
///
///
/// </summary>
public override int GetHashCode()
{
Expand All @@ -271,34 +271,34 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null
}

/// <summary>
///
///
/// </summary>
public bool Equals(AllOf<T1, T2> other)
{
return
global::System.Collections.Generic.EqualityComparer<T1?>.Default.Equals(Value1, other.Value1) &&
global::System.Collections.Generic.EqualityComparer<T2?>.Default.Equals(Value2, other.Value2)
global::System.Collections.Generic.EqualityComparer<T2?>.Default.Equals(Value2, other.Value2)
;
}

/// <summary>
///
///
/// </summary>
public static bool operator ==(AllOf<T1, T2> obj1, AllOf<T1, T2> obj2)
{
return global::System.Collections.Generic.EqualityComparer<AllOf<T1, T2>>.Default.Equals(obj1, obj2);
}

/// <summary>
///
///
/// </summary>
public static bool operator !=(AllOf<T1, T2> obj1, AllOf<T1, T2> obj2)
{
return !(obj1 == obj2);
}

/// <summary>
///
///
/// </summary>
public override bool Equals(object? obj)
{
Expand Down
2 changes: 1 addition & 1 deletion src/libs/RetellAI/Generated/RetellAI.IRetellAiClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IRetellAiClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AccessTokenAuthConfigRequestTypeJsonConverter : global::Syst
{
return global::RetellAI.AccessTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AccessTokenAuthConfigRequestTypeNullableJsonConverter : glob
{
return global::RetellAI.AccessTokenAuthConfigRequestTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AccessTokenAuthConfigResponseTypeJsonConverter : global::Sys
{
return global::RetellAI.AccessTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AccessTokenAuthConfigResponseTypeNullableJsonConverter : glo
{
return global::RetellAI.AccessTokenAuthConfigResponseTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceRequestVoiceProviderJsonConverter : global:
{
return global::RetellAI.AddCommunityVoiceRequestVoiceProviderExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceRequestVoiceProviderNullableJsonConverter :
{
return global::RetellAI.AddCommunityVoiceRequestVoiceProviderExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatusJsonConverter : global::Syste
{
return global::RetellAI.AddCommunityVoiceResponseStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus2JsonConverter : global::Syst
{
return global::RetellAI.AddCommunityVoiceResponseStatus2Extensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus2NullableJsonConverter : glob
{
return global::RetellAI.AddCommunityVoiceResponseStatus2Extensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus3JsonConverter : global::Syst
{
return global::RetellAI.AddCommunityVoiceResponseStatus3Extensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus3NullableJsonConverter : glob
{
return global::RetellAI.AddCommunityVoiceResponseStatus3Extensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus4JsonConverter : global::Syst
{
return global::RetellAI.AddCommunityVoiceResponseStatus4Extensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatus4NullableJsonConverter : glob
{
return global::RetellAI.AddCommunityVoiceResponseStatus4Extensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddCommunityVoiceResponseStatusNullableJsonConverter : globa
{
return global::RetellAI.AddCommunityVoiceResponseStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddKnowledgeBaseSourcesResponseStatusJsonConverter : global:
{
return global::RetellAI.AddKnowledgeBaseSourcesResponseStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class AddKnowledgeBaseSourcesResponseStatus2JsonConverter : global
{
return global::RetellAI.AddKnowledgeBaseSourcesResponseStatus2Extensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Loading