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 @@ -328,13 +328,13 @@ partial void ProcessGenerateTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_400 = global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext);
__value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_400 = global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext);
__value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -345,7 +345,7 @@ partial void ProcessGenerateTokenResponseContent(

throw global::Murf.ApiException<global::Murf.GenerateTokenResponse>.Create(
statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
responseBody: __content_400,
responseObject: __value_400,
Expand All @@ -365,13 +365,13 @@ partial void ProcessGenerateTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_401 = global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext);
__value_401 = __content_401 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext);
}
else
{
__content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

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

throw global::Murf.ApiException<global::Murf.GenerateTokenResponse>.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 @@ -402,13 +402,13 @@ partial void ProcessGenerateTokenResponseContent(
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_503 = global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext);
__value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_503 = global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext);
__value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -419,7 +419,7 @@ partial void ProcessGenerateTokenResponseContent(

throw global::Murf.ApiException<global::Murf.GenerateTokenResponse>.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseObject: __value_503,
Expand Down Expand Up @@ -462,7 +462,7 @@ partial void ProcessGenerateTokenResponseContent(
{
throw global::Murf.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 @@ -507,7 +507,7 @@ partial void ProcessGenerateTokenResponseContent(

throw global::Murf.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
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ request.FileName is null
if (__effectiveReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_400 = global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext);
__value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_400 = global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext);
__value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -456,7 +456,7 @@ request.FileName is null

throw global::Murf.ApiException<global::Murf.CreateDubbingJobResponse>.Create(
statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
responseBody: __content_400,
responseObject: __value_400,
Expand All @@ -476,13 +476,13 @@ request.FileName is null
if (__effectiveReadResponseAsString)
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_403 = global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext);
}
else
{
__content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_403 = global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext);
__value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -493,7 +493,7 @@ request.FileName is null

throw global::Murf.ApiException<global::Murf.CreateDubbingJobResponse>.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 @@ -513,13 +513,13 @@ request.FileName is null
if (__effectiveReadResponseAsString)
{
__content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_500 = global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext);
__value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext);
}
else
{
__content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_500 = global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext);
__value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -530,7 +530,7 @@ request.FileName is null

throw global::Murf.ApiException<global::Murf.CreateDubbingJobResponse>.Create(
statusCode: __response.StatusCode,
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_500,
responseBody: __content_500,
responseObject: __value_500,
Expand All @@ -550,13 +550,13 @@ request.FileName is null
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_503 = global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext);
__value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_503 = global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext);
__value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -567,7 +567,7 @@ request.FileName is null

throw global::Murf.ApiException<global::Murf.CreateDubbingJobResponse>.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseObject: __value_503,
Expand Down Expand Up @@ -610,7 +610,7 @@ request.FileName is null
{
throw global::Murf.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 @@ -655,7 +655,7 @@ request.FileName is null

throw global::Murf.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