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
22 changes: 11 additions & 11 deletions src/libs/Speechify/Generated/Speechify.AdminClient.ForceEnd.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ partial void ProcessForceEndResponseContent(
if (__effectiveReadResponseAsString)
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
__value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
}
else
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
__value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -381,7 +381,7 @@ partial void ProcessForceEndResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
responseBody: __content_401,
responseObject: __value_401,
Expand All @@ -401,13 +401,13 @@ partial void ProcessForceEndResponseContent(
if (__effectiveReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -418,7 +418,7 @@ partial void ProcessForceEndResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
responseBody: __content_403,
responseObject: __value_403,
Expand All @@ -438,13 +438,13 @@ partial void ProcessForceEndResponseContent(
if (__effectiveReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
__value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
__value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -455,7 +455,7 @@ partial void ProcessForceEndResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
responseBody: __content_404,
responseObject: __value_404,
Expand Down Expand Up @@ -496,7 +496,7 @@ partial void ProcessForceEndResponseContent(
{
throw global::Speechify.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
Expand Down Expand Up @@ -539,7 +539,7 @@ partial void ProcessForceEndResponseContent(

throw global::Speechify.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
Expand Down
28 changes: 14 additions & 14 deletions src/libs/Speechify/Generated/Speechify.AdminClient.ShadowToken.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,13 @@ partial void ProcessShadowTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
__value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
}
else
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
__value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -385,7 +385,7 @@ partial void ProcessShadowTokenResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_401 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_401,
responseBody: __content_401,
responseObject: __value_401,
Expand All @@ -405,13 +405,13 @@ partial void ProcessShadowTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -422,7 +422,7 @@ partial void ProcessShadowTokenResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_403,
responseBody: __content_403,
responseObject: __value_403,
Expand All @@ -442,13 +442,13 @@ partial void ProcessShadowTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
__value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
}
else
{
__content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
__value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -459,7 +459,7 @@ partial void ProcessShadowTokenResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_404,
responseBody: __content_404,
responseObject: __value_404,
Expand All @@ -479,13 +479,13 @@ partial void ProcessShadowTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
__value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
}
else
{
__content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
__value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -496,7 +496,7 @@ partial void ProcessShadowTokenResponseContent(

throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_409 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_409,
responseBody: __content_409,
responseObject: __value_409,
Expand Down Expand Up @@ -539,7 +539,7 @@ partial void ProcessShadowTokenResponseContent(
{
throw global::Speechify.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
Expand Down Expand Up @@ -584,7 +584,7 @@ partial void ProcessShadowTokenResponseContent(

throw global::Speechify.ApiException.Create(
statusCode: __response.StatusCode,
message: __content ?? __response.ReasonPhrase ?? string.Empty,
message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
responseBody: __content,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
Expand Down
Loading
Loading