diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLoginApiV1AuthJwtLoginPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLoginApiV1AuthJwtLoginPost.g.cs index a6f7811..c2dccac 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLoginApiV1AuthJwtLoginPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLoginApiV1AuthJwtLoginPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -398,18 +397,17 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -443,17 +441,15 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -490,17 +486,15 @@ partial void ProcessAuthJwtLoginApiV1AuthJwtLoginPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLogoutApiV1AuthJwtLogoutPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLogoutApiV1AuthJwtLogoutPost.g.cs index 2113532..5f539a4 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLogoutApiV1AuthJwtLogoutPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthJwtLogoutApiV1AuthJwtLogoutPost.g.cs @@ -336,17 +336,16 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -378,17 +377,15 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -423,17 +420,15 @@ partial void ProcessAuthJwtLogoutApiV1AuthJwtLogoutPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthorizeApiV1AuthGoogleAuthorizeGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthorizeApiV1AuthGoogleAuthorizeGet.g.cs index 37f51c2..79cdb9c 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.AuthorizeApiV1AuthGoogleAuthorizeGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.AuthorizeApiV1AuthGoogleAuthorizeGet.g.cs @@ -352,18 +352,17 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -397,17 +396,15 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -444,17 +441,15 @@ partial void ProcessAuthorizeApiV1AuthGoogleAuthorizeGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.CallbackApiV1AuthGoogleCallbackGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.CallbackApiV1AuthGoogleCallbackGet.g.cs index e7b0ff1..afc4bdb 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.CallbackApiV1AuthGoogleCallbackGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.CallbackApiV1AuthGoogleCallbackGet.g.cs @@ -374,18 +374,17 @@ partial void ProcessCallbackApiV1AuthGoogleCallbackGetResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -412,18 +411,17 @@ partial void ProcessCallbackApiV1AuthGoogleCallbackGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -455,17 +453,15 @@ partial void ProcessCallbackApiV1AuthGoogleCallbackGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -500,17 +496,15 @@ partial void ProcessCallbackApiV1AuthGoogleCallbackGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.CreateTokenApiV1AuthTokenCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.CreateTokenApiV1AuthTokenCreatePost.g.cs index 5564fb0..3c9df07 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.CreateTokenApiV1AuthTokenCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.CreateTokenApiV1AuthTokenCreatePost.g.cs @@ -347,17 +347,15 @@ partial void ProcessCreateTokenApiV1AuthTokenCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessCreateTokenApiV1AuthTokenCreatePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.DeleteUserProfileApiV1AuthProfileDeleteDelete.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.DeleteUserProfileApiV1AuthProfileDeleteDelete.g.cs index 599aa78..7f59b50 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.DeleteUserProfileApiV1AuthProfileDeleteDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.DeleteUserProfileApiV1AuthProfileDeleteDelete.g.cs @@ -333,17 +333,15 @@ await DeleteUserProfileApiV1AuthProfileDeleteDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -371,17 +369,15 @@ await DeleteUserProfileApiV1AuthProfileDeleteDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.EnterpriseLoginApiV1AuthEnterpriseLoginGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.EnterpriseLoginApiV1AuthEnterpriseLoginGet.g.cs index 5739fdc..aad206f 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.EnterpriseLoginApiV1AuthEnterpriseLoginGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.EnterpriseLoginApiV1AuthEnterpriseLoginGet.g.cs @@ -376,18 +376,17 @@ partial void ProcessEnterpriseLoginApiV1AuthEnterpriseLoginGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessEnterpriseLoginApiV1AuthEnterpriseLoginGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +465,15 @@ partial void ProcessEnterpriseLoginApiV1AuthEnterpriseLoginGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.GetMeApiV1AuthProfileGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.GetMeApiV1AuthProfileGet.g.cs index 345134b..cd494cb 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.GetMeApiV1AuthProfileGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.GetMeApiV1AuthProfileGet.g.cs @@ -340,18 +340,17 @@ partial void ProcessGetMeApiV1AuthProfileGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -385,17 +384,15 @@ partial void ProcessGetMeApiV1AuthProfileGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -432,17 +429,15 @@ partial void ProcessGetMeApiV1AuthProfileGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.ListTokensApiV1AuthTokenListGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.ListTokensApiV1AuthTokenListGet.g.cs index 44a45cf..1db7ee4 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.ListTokensApiV1AuthTokenListGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.ListTokensApiV1AuthTokenListGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessListTokensApiV1AuthTokenListGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessListTokensApiV1AuthTokenListGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.PatchMeApiV1AuthProfileUpdatePatch.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.PatchMeApiV1AuthProfileUpdatePatch.g.cs index d6415b2..dbb67b8 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.PatchMeApiV1AuthProfileUpdatePatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.PatchMeApiV1AuthProfileUpdatePatch.g.cs @@ -409,18 +409,17 @@ request.ProfilePicturename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -452,17 +451,15 @@ request.ProfilePicturename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -497,17 +494,15 @@ request.ProfilePicturename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.RegisterRegisterApiV1AuthRegisterPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.RegisterRegisterApiV1AuthRegisterPost.g.cs index d073fe2..df18d91 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.RegisterRegisterApiV1AuthRegisterPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.RegisterRegisterApiV1AuthRegisterPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessRegisterRegisterApiV1AuthRegisterPostResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -398,18 +397,17 @@ partial void ProcessRegisterRegisterApiV1AuthRegisterPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -443,17 +441,15 @@ partial void ProcessRegisterRegisterApiV1AuthRegisterPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -490,17 +486,15 @@ partial void ProcessRegisterRegisterApiV1AuthRegisterPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.ResetForgotPasswordApiV1AuthForgotPasswordPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.ResetForgotPasswordApiV1AuthForgotPasswordPost.g.cs index f64d34f..d869afc 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.ResetForgotPasswordApiV1AuthForgotPasswordPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.ResetForgotPasswordApiV1AuthForgotPasswordPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessResetForgotPasswordApiV1AuthForgotPasswordPostResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessResetForgotPasswordApiV1AuthForgotPasswordPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessResetForgotPasswordApiV1AuthForgotPasswordPostResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.ResetResetPasswordApiV1AuthResetPasswordPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.ResetResetPasswordApiV1AuthResetPasswordPost.g.cs index 7ca3539..b94b125 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.ResetResetPasswordApiV1AuthResetPasswordPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.ResetResetPasswordApiV1AuthResetPasswordPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessResetResetPasswordApiV1AuthResetPasswordPostResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -398,18 +397,17 @@ partial void ProcessResetResetPasswordApiV1AuthResetPasswordPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +439,15 @@ partial void ProcessResetResetPasswordApiV1AuthResetPasswordPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -486,17 +482,15 @@ partial void ProcessResetResetPasswordApiV1AuthResetPasswordPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.RevokeTokenApiV1AuthTokenRevokePost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.RevokeTokenApiV1AuthTokenRevokePost.g.cs index 8727b3a..3c6b4f8 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.RevokeTokenApiV1AuthTokenRevokePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.RevokeTokenApiV1AuthTokenRevokePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessRevokeTokenApiV1AuthTokenRevokePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessRevokeTokenApiV1AuthTokenRevokePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessRevokeTokenApiV1AuthTokenRevokePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersCurrentUserApiV1AuthUsersMeGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersCurrentUserApiV1AuthUsersMeGet.g.cs index ca3e824..04bcddb 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersCurrentUserApiV1AuthUsersMeGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersCurrentUserApiV1AuthUsersMeGet.g.cs @@ -336,17 +336,16 @@ partial void ProcessUsersCurrentUserApiV1AuthUsersMeGetResponseContent( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ partial void ProcessUsersCurrentUserApiV1AuthUsersMeGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +424,15 @@ partial void ProcessUsersCurrentUserApiV1AuthUsersMeGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersDeleteUserApiV1AuthUsersIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersDeleteUserApiV1AuthUsersIdDelete.g.cs index 7921264..121d404 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersDeleteUserApiV1AuthUsersIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersDeleteUserApiV1AuthUsersIdDelete.g.cs @@ -338,17 +338,16 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -371,17 +370,16 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( __exception_403 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -404,17 +402,16 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( __exception_404 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -441,18 +438,17 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -479,17 +475,15 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -517,17 +511,15 @@ await UsersDeleteUserApiV1AuthUsersIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs index 0d152cd..3a28ba6 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchCurrentUserApiV1AuthUsersMePatch.g.cs @@ -360,18 +360,17 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -394,17 +393,16 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -431,18 +429,17 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -476,17 +473,15 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -523,17 +518,15 @@ partial void ProcessUsersPatchCurrentUserApiV1AuthUsersMePatchResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs index 787911f..67a6a9b 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersPatchUserApiV1AuthUsersIdPatch.g.cs @@ -369,18 +369,17 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 401) @@ -403,17 +402,16 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -436,17 +434,16 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( __exception_403 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -469,17 +466,16 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( __exception_404 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -506,18 +502,17 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -551,17 +546,15 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -598,17 +591,15 @@ partial void ProcessUsersPatchUserApiV1AuthUsersIdPatchResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersUserApiV1AuthUsersIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersUserApiV1AuthUsersIdGet.g.cs index 5136a37..eaac564 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.UsersUserApiV1AuthUsersIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.UsersUserApiV1AuthUsersIdGet.g.cs @@ -345,17 +345,16 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( __exception_401 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 403) @@ -378,17 +377,16 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( __exception_403 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // if ((int)__response.StatusCode == 404) @@ -411,17 +409,16 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( __exception_404 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -448,18 +445,17 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -493,17 +489,15 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -540,17 +534,15 @@ partial void ProcessUsersUserApiV1AuthUsersIdGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyRequestTokenApiV1AuthRequestVerifyTokenPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyRequestTokenApiV1AuthRequestVerifyTokenPost.g.cs index e65c7c2..348f3f8 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyRequestTokenApiV1AuthRequestVerifyTokenPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyRequestTokenApiV1AuthRequestVerifyTokenPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessVerifyRequestTokenApiV1AuthRequestVerifyTokenPostResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessVerifyRequestTokenApiV1AuthRequestVerifyTokenPostResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessVerifyRequestTokenApiV1AuthRequestVerifyTokenPostResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyVerifyApiV1AuthVerifyPost.g.cs b/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyVerifyApiV1AuthVerifyPost.g.cs index 09673ec..8d64c9b 100644 --- a/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyVerifyApiV1AuthVerifyPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.AuthClient.VerifyVerifyApiV1AuthVerifyPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessVerifyVerifyApiV1AuthVerifyPostResponseContent( __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -398,18 +397,17 @@ partial void ProcessVerifyVerifyApiV1AuthVerifyPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -443,17 +441,15 @@ partial void ProcessVerifyVerifyApiV1AuthVerifyPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -490,17 +486,15 @@ partial void ProcessVerifyVerifyApiV1AuthVerifyPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.CreateCheckoutSessionApiV1BillingCheckoutSessionPost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.CreateCheckoutSessionApiV1BillingCheckoutSessionPost.g.cs index 51f175f..bc3770c 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.CreateCheckoutSessionApiV1BillingCheckoutSessionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.CreateCheckoutSessionApiV1BillingCheckoutSessionPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCreateCheckoutSessionApiV1BillingCheckoutSessionPostResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCreateCheckoutSessionApiV1BillingCheckoutSessionPostResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCreateCheckoutSessionApiV1BillingCheckoutSessionPostResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.CreatePortalSessionApiV1BillingPortalSessionPost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.CreatePortalSessionApiV1BillingPortalSessionPost.g.cs index 77df178..5a339be 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.CreatePortalSessionApiV1BillingPortalSessionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.CreatePortalSessionApiV1BillingPortalSessionPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCreatePortalSessionApiV1BillingPortalSessionPostResponseCont __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCreatePortalSessionApiV1BillingPortalSessionPostResponseCont } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCreatePortalSessionApiV1BillingPortalSessionPostResponseCont { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.GetSubscriptionStatusApiV1BillingSubscriptionGet.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.GetSubscriptionStatusApiV1BillingSubscriptionGet.g.cs index 0418052..6c4aacf 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.GetSubscriptionStatusApiV1BillingSubscriptionGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.GetSubscriptionStatusApiV1BillingSubscriptionGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetSubscriptionStatusApiV1BillingSubscriptionGetResponseCont __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -401,17 +400,15 @@ partial void ProcessGetSubscriptionStatusApiV1BillingSubscriptionGetResponseCont } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessGetSubscriptionStatusApiV1BillingSubscriptionGetResponseCont { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.ListPricesApiV1BillingPricesGet.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.ListPricesApiV1BillingPricesGet.g.cs index 7bbf087..7c28fff 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.ListPricesApiV1BillingPricesGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.ListPricesApiV1BillingPricesGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessListPricesApiV1BillingPricesGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessListPricesApiV1BillingPricesGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.ModifySubscriptionApiV1BillingSubscriptionModifyPost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.ModifySubscriptionApiV1BillingSubscriptionModifyPost.g.cs index a3f7f4e..396166d 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.ModifySubscriptionApiV1BillingSubscriptionModifyPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.ModifySubscriptionApiV1BillingSubscriptionModifyPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessModifySubscriptionApiV1BillingSubscriptionModifyPostResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessModifySubscriptionApiV1BillingSubscriptionModifyPostResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessModifySubscriptionApiV1BillingSubscriptionModifyPostResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.PurchaseCreditsApiV1BillingCreditsPurchasePost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.PurchaseCreditsApiV1BillingCreditsPurchasePost.g.cs index 3cfcda6..8d5aa8b 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.PurchaseCreditsApiV1BillingCreditsPurchasePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.PurchaseCreditsApiV1BillingCreditsPurchasePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessPurchaseCreditsApiV1BillingCreditsPurchasePostResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessPurchaseCreditsApiV1BillingCreditsPurchasePostResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessPurchaseCreditsApiV1BillingCreditsPurchasePostResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.ReactivateSubscriptionApiV1BillingSubscriptionReactivatePost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.ReactivateSubscriptionApiV1BillingSubscriptionReactivatePost.g.cs index 7641ef7..b4d8787 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.ReactivateSubscriptionApiV1BillingSubscriptionReactivatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.ReactivateSubscriptionApiV1BillingSubscriptionReactivatePost.g.cs @@ -347,17 +347,15 @@ partial void ProcessReactivateSubscriptionApiV1BillingSubscriptionReactivatePost } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessReactivateSubscriptionApiV1BillingSubscriptionReactivatePost { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.BillingClient.StripeWebhookApiV1BillingWebhookPost.g.cs b/src/libs/Presenton/Generated/Presenton.BillingClient.StripeWebhookApiV1BillingWebhookPost.g.cs index 2ec6e47..96cfa64 100644 --- a/src/libs/Presenton/Generated/Presenton.BillingClient.StripeWebhookApiV1BillingWebhookPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.BillingClient.StripeWebhookApiV1BillingWebhookPost.g.cs @@ -345,17 +345,15 @@ partial void ProcessStripeWebhookApiV1BillingWebhookPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -390,17 +388,15 @@ partial void ProcessStripeWebhookApiV1BillingWebhookPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetAddedCreditsApiV1CreditAddedGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetAddedCreditsApiV1CreditAddedGet.g.cs index fe79f5e..79d6f26 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetAddedCreditsApiV1CreditAddedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetAddedCreditsApiV1CreditAddedGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetAddedCreditsApiV1CreditAddedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetAddedCreditsApiV1CreditAddedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetAddedCreditsApiV1CreditAddedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetBalanceApiV1CreditBalanceGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetBalanceApiV1CreditBalanceGet.g.cs index a9910ba..75e8776 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetBalanceApiV1CreditBalanceGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetBalanceApiV1CreditBalanceGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetBalanceApiV1CreditBalanceGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetBalanceApiV1CreditBalanceGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditAccountApiV1CreditAccountGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditAccountApiV1CreditAccountGet.g.cs index e11a247..08f7bc2 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditAccountApiV1CreditAccountGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditAccountApiV1CreditAccountGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetCreditAccountApiV1CreditAccountGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetCreditAccountApiV1CreditAccountGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGet.g.cs index e3adce7..9d9ea3f 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGet.g.cs @@ -340,18 +340,17 @@ partial void ProcessGetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGetResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -385,17 +384,15 @@ partial void ProcessGetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -432,17 +429,15 @@ partial void ProcessGetCreditsRatesAndAutoTopupInfoApiV1CreditInfoGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetTransactionsApiV1CreditTransactionsGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetTransactionsApiV1CreditTransactionsGet.g.cs index 8613ae9..41d122d 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetTransactionsApiV1CreditTransactionsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetTransactionsApiV1CreditTransactionsGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetTransactionsApiV1CreditTransactionsGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetTransactionsApiV1CreditTransactionsGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetTransactionsApiV1CreditTransactionsGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.GetUsedCreditsApiV1CreditAddedIdUsedGet.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.GetUsedCreditsApiV1CreditAddedIdUsedGet.g.cs index 7ae5cf0..2a8f28d 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.GetUsedCreditsApiV1CreditAddedIdUsedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.GetUsedCreditsApiV1CreditAddedIdUsedGet.g.cs @@ -379,18 +379,17 @@ partial void ProcessGetUsedCreditsApiV1CreditAddedIdUsedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -424,17 +423,15 @@ partial void ProcessGetUsedCreditsApiV1CreditAddedIdUsedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -471,17 +468,15 @@ partial void ProcessGetUsedCreditsApiV1CreditAddedIdUsedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.CreditClient.SetAutoTopupApiV1CreditAutoTopupPost.g.cs b/src/libs/Presenton/Generated/Presenton.CreditClient.SetAutoTopupApiV1CreditAutoTopupPost.g.cs index c2cd28b..9591f92 100644 --- a/src/libs/Presenton/Generated/Presenton.CreditClient.SetAutoTopupApiV1CreditAutoTopupPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.CreditClient.SetAutoTopupApiV1CreditAutoTopupPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessSetAutoTopupApiV1CreditAutoTopupPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessSetAutoTopupApiV1CreditAutoTopupPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessSetAutoTopupApiV1CreditAutoTopupPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.AddCreditsApiV1DebugAddCreditsPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.AddCreditsApiV1DebugAddCreditsPost.g.cs index ab7470b..c1e478f 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.AddCreditsApiV1DebugAddCreditsPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.AddCreditsApiV1DebugAddCreditsPost.g.cs @@ -353,18 +353,17 @@ await AddCreditsApiV1DebugAddCreditsPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await AddCreditsApiV1DebugAddCreditsPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await AddCreditsApiV1DebugAddCreditsPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.AddSubscriptionApiV1DebugAddSubscriptionPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.AddSubscriptionApiV1DebugAddSubscriptionPost.g.cs index 34df98e..893bf4a 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.AddSubscriptionApiV1DebugAddSubscriptionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.AddSubscriptionApiV1DebugAddSubscriptionPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessAddSubscriptionApiV1DebugAddSubscriptionPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAddSubscriptionApiV1DebugAddSubscriptionPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessAddSubscriptionApiV1DebugAddSubscriptionPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.AddUserApiV1DebugAddUserPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.AddUserApiV1DebugAddUserPost.g.cs index c6b1511..fee557e 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.AddUserApiV1DebugAddUserPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.AddUserApiV1DebugAddUserPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessAddUserApiV1DebugAddUserPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAddUserApiV1DebugAddUserPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessAddUserApiV1DebugAddUserPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.CheckCreditBalanceApiV1DebugCheckCreditBalancePost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.CheckCreditBalanceApiV1DebugCheckCreditBalancePost.g.cs index 1102f10..1c12f51 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.CheckCreditBalanceApiV1DebugCheckCreditBalancePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.CheckCreditBalanceApiV1DebugCheckCreditBalancePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCheckCreditBalanceApiV1DebugCheckCreditBalancePostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCheckCreditBalanceApiV1DebugCheckCreditBalancePostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCheckCreditBalanceApiV1DebugCheckCreditBalancePostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.DeleteUserApiV1DebugDeleteUserDelete.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.DeleteUserApiV1DebugDeleteUserDelete.g.cs index ee187e5..b99b821 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.DeleteUserApiV1DebugDeleteUserDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.DeleteUserApiV1DebugDeleteUserDelete.g.cs @@ -353,18 +353,17 @@ await DeleteUserApiV1DebugDeleteUserDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await DeleteUserApiV1DebugDeleteUserDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await DeleteUserApiV1DebugDeleteUserDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.EndSubscriptionApiV1DebugEndSubscriptionPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.EndSubscriptionApiV1DebugEndSubscriptionPost.g.cs index 1123e70..5845f8d 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.EndSubscriptionApiV1DebugEndSubscriptionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.EndSubscriptionApiV1DebugEndSubscriptionPost.g.cs @@ -353,18 +353,17 @@ await EndSubscriptionApiV1DebugEndSubscriptionPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await EndSubscriptionApiV1DebugEndSubscriptionPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await EndSubscriptionApiV1DebugEndSubscriptionPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.GetJwtTokenApiV1DebugGetJwtTokenPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.GetJwtTokenApiV1DebugGetJwtTokenPost.g.cs index 7989bd6..da83864 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.GetJwtTokenApiV1DebugGetJwtTokenPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.GetJwtTokenApiV1DebugGetJwtTokenPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGetJwtTokenApiV1DebugGetJwtTokenPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGetJwtTokenApiV1DebugGetJwtTokenPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGetJwtTokenApiV1DebugGetJwtTokenPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.RaiseExceptionApiV1DebugRaiseExceptionPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.RaiseExceptionApiV1DebugRaiseExceptionPost.g.cs index 7cede7f..7d9d37d 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.RaiseExceptionApiV1DebugRaiseExceptionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.RaiseExceptionApiV1DebugRaiseExceptionPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessRaiseExceptionApiV1DebugRaiseExceptionPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessRaiseExceptionApiV1DebugRaiseExceptionPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessRaiseExceptionApiV1DebugRaiseExceptionPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPost.g.cs index 5724dae..837540f 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPost.g.cs @@ -353,18 +353,17 @@ await SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await SendLowBalanceEmailApiV1DebugSendLowBalanceEmailPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPost.g.cs index 898b221..170e466 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPost.g.cs @@ -353,18 +353,17 @@ await SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await SendPasswordResetEmailApiV1DebugSendPasswordResetEmailPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPost.g.cs index e55e1a7..7ccf6f5 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPost.g.cs @@ -353,18 +353,17 @@ await SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await SendPaymentFailedEmailApiV1DebugSendPaymentFailedEmailPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.SendVerificationEmailApiV1DebugSendVerificationEmailPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.SendVerificationEmailApiV1DebugSendVerificationEmailPost.g.cs index 8328a7d..c6f2cc1 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.SendVerificationEmailApiV1DebugSendVerificationEmailPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.SendVerificationEmailApiV1DebugSendVerificationEmailPost.g.cs @@ -353,18 +353,17 @@ await SendVerificationEmailApiV1DebugSendVerificationEmailPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await SendVerificationEmailApiV1DebugSendVerificationEmailPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await SendVerificationEmailApiV1DebugSendVerificationEmailPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.SendWelcomeEmailApiV1DebugSendWelcomeEmailPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.SendWelcomeEmailApiV1DebugSendWelcomeEmailPost.g.cs index 1bce6d3..607750c 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.SendWelcomeEmailApiV1DebugSendWelcomeEmailPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.SendWelcomeEmailApiV1DebugSendWelcomeEmailPost.g.cs @@ -353,18 +353,17 @@ await SendWelcomeEmailApiV1DebugSendWelcomeEmailPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await SendWelcomeEmailApiV1DebugSendWelcomeEmailPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await SendWelcomeEmailApiV1DebugSendWelcomeEmailPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DebugClient.TestJobApiV1DebugTestJobPost.g.cs b/src/libs/Presenton/Generated/Presenton.DebugClient.TestJobApiV1DebugTestJobPost.g.cs index 0a87780..a10fc45 100644 --- a/src/libs/Presenton/Generated/Presenton.DebugClient.TestJobApiV1DebugTestJobPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DebugClient.TestJobApiV1DebugTestJobPost.g.cs @@ -353,18 +353,17 @@ await TestJobApiV1DebugTestJobPostAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ await TestJobApiV1DebugTestJobPostAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -429,17 +426,15 @@ await TestJobApiV1DebugTestJobPostAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs b/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs index baa783a..58df07f 100644 --- a/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DesignSystemClient.ExtractDesignSystemApiV1PptDesignSystemExtractPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessExtractDesignSystemApiV1PptDesignSystemExtractPostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs b/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs index ba17fe5..64dc6a9 100644 --- a/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.DownloadsClient.AddDownloadApiV3DownloadsAddPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -450,17 +447,15 @@ partial void ProcessAddDownloadApiV3DownloadsAddPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.Exceptions.g.cs b/src/libs/Presenton/Generated/Presenton.Exceptions.g.cs index f4a5379..2fd8414 100644 --- a/src/libs/Presenton/Generated/Presenton.Exceptions.g.cs +++ b/src/libs/Presenton/Generated/Presenton.Exceptions.g.cs @@ -12,16 +12,19 @@ public partial class ApiException : global::System.Exception /// The HTTP status code of the response. /// public global::System.Net.HttpStatusCode StatusCode { get; } + /// /// The response body as a string, or null if the body could not be read. /// This is always populated for error responses regardless of the ReadResponseAsString setting. /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read. /// public string? ResponseBody { get; set; } + /// /// The response headers. /// public global::System.Collections.Generic.Dictionary>? ResponseHeaders { get; set; } + /// /// Initializes a new instance of the class. /// @@ -49,6 +52,103 @@ public ApiException(string message, global::System.Exception? innerException, gl { StatusCode = statusCode; } + + /// + /// Constructs an instance whose runtime type matches the response status code when the typed exception hierarchy is enabled. Always returns a plain when the hierarchy is disabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static global::Presenton.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Presenton.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body and headers populated. + /// + public static global::Presenton.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Presenton.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseHeaders = responseHeaders; + return exception; + } + + /// + /// Parses a Retry-After response header (delta-seconds or HTTP-date) into a . + /// Returns null when the header is missing or unparseable. Public so consumer code that observes + /// directly can recover the value without re-implementing the parser. + /// + public static global::System.TimeSpan? TryParseRetryAfter( + global::System.Collections.Generic.IDictionary>? headers) + { + if (headers == null) + { + return null; + } + + global::System.Collections.Generic.IEnumerable? values = null; + foreach (var entry in headers) + { + if (string.Equals(entry.Key, "Retry-After", global::System.StringComparison.OrdinalIgnoreCase)) + { + values = entry.Value; + break; + } + } + + if (values == null) + { + return null; + } + + string? raw = null; + foreach (var value in values) + { + if (!string.IsNullOrWhiteSpace(value)) + { + raw = value.Trim(); + break; + } + } + + if (string.IsNullOrEmpty(raw)) + { + return null; + } + + if (int.TryParse( + raw, + global::System.Globalization.NumberStyles.Integer, + global::System.Globalization.CultureInfo.InvariantCulture, + out var seconds) && seconds >= 0) + { + return global::System.TimeSpan.FromSeconds(seconds); + } + + if (global::System.DateTimeOffset.TryParse( + raw, + global::System.Globalization.CultureInfo.InvariantCulture, + global::System.Globalization.DateTimeStyles.AssumeUniversal | global::System.Globalization.DateTimeStyles.AdjustToUniversal, + out var when)) + { + var delta = when - global::System.DateTimeOffset.UtcNow; + return delta > global::System.TimeSpan.Zero ? delta : global::System.TimeSpan.Zero; + } + + return null; + } } /// @@ -88,5 +188,39 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode) { } + + /// + /// Constructs an whose runtime type matches the response status code when the typed exception hierarchy is enabled. + /// + /// The HTTP status code of the response. + /// The error message. + /// An inner exception, when one is available. + /// The response headers; consulted for 429 Retry-After parsing when present. + public static new global::Presenton.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException = null, + global::System.Collections.Generic.IDictionary>? responseHeaders = null) + { + return new global::Presenton.ApiException(message, innerException, statusCode); + } + + /// + /// Convenience overload that constructs an with response body, object, and headers populated. + /// + public static global::Presenton.ApiException Create( + global::System.Net.HttpStatusCode statusCode, + string message, + global::System.Exception? innerException, + string? responseBody, + T? responseObject, + global::System.Collections.Generic.Dictionary>? responseHeaders) + { + var exception = global::Presenton.ApiException.Create(statusCode, message, innerException, responseHeaders); + exception.ResponseBody = responseBody; + exception.ResponseObject = responseObject; + exception.ResponseHeaders = responseHeaders; + return exception; + } } } \ No newline at end of file diff --git a/src/libs/Presenton/Generated/Presenton.FilesClient.DecomposeFilesApiV1PptFilesDecomposePost.g.cs b/src/libs/Presenton/Generated/Presenton.FilesClient.DecomposeFilesApiV1PptFilesDecomposePost.g.cs index cb981b3..9441a1a 100644 --- a/src/libs/Presenton/Generated/Presenton.FilesClient.DecomposeFilesApiV1PptFilesDecomposePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FilesClient.DecomposeFilesApiV1PptFilesDecomposePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessDecomposeFilesApiV1PptFilesDecomposePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessDecomposeFilesApiV1PptFilesDecomposePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessDecomposeFilesApiV1PptFilesDecomposePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost.g.cs b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost.g.cs index b6a10bf..a892c85 100644 --- a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTemporaryUrlsPost.g.cs @@ -367,18 +367,17 @@ partial void ProcessUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTempo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -412,17 +411,15 @@ partial void ProcessUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTempo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +456,15 @@ partial void ProcessUploadFilesAndGetTemporaryUrlsApiV1PptFilesUploadAndGetTempo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesForUiApiV1PptFilesUploadUiPost.g.cs b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesForUiApiV1PptFilesUploadUiPost.g.cs index f9a9852..e35dd0f 100644 --- a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesForUiApiV1PptFilesUploadUiPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesForUiApiV1PptFilesUploadUiPost.g.cs @@ -367,18 +367,17 @@ partial void ProcessUploadFilesForUiApiV1PptFilesUploadUiPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -412,17 +411,15 @@ partial void ProcessUploadFilesForUiApiV1PptFilesUploadUiPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -459,17 +456,15 @@ partial void ProcessUploadFilesForUiApiV1PptFilesUploadUiPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesV1ApiV1PptFilesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesV1ApiV1PptFilesUploadPost.g.cs index af22856..a52d9a9 100644 --- a/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesV1ApiV1PptFilesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FilesClient.UploadFilesV1ApiV1PptFilesUploadPost.g.cs @@ -373,18 +373,17 @@ partial void ProcessUploadFilesV1ApiV1PptFilesUploadPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -418,17 +417,15 @@ partial void ProcessUploadFilesV1ApiV1PptFilesUploadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -465,17 +462,15 @@ partial void ProcessUploadFilesV1ApiV1PptFilesUploadPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs index 5f2dd5f..815a762 100644 --- a/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FontsClient.CheckFontsInPptxApiV1PptFontsCheckPost.g.cs @@ -396,18 +396,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +440,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -488,17 +485,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -882,18 +877,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -923,17 +917,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -966,17 +958,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1330,18 +1320,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1375,17 +1364,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1422,17 +1409,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FontsClient.DeleteFontApiV1PptFontsFontIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.FontsClient.DeleteFontApiV1PptFontsFontIdDelete.g.cs index 50e8ef1..28f3e92 100644 --- a/src/libs/Presenton/Generated/Presenton.FontsClient.DeleteFontApiV1PptFontsFontIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FontsClient.DeleteFontApiV1PptFontsFontIdDelete.g.cs @@ -342,18 +342,17 @@ await DeleteFontApiV1PptFontsFontIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeleteFontApiV1PptFontsFontIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeleteFontApiV1PptFontsFontIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FontsClient.ListFontsApiV1PptFontsUploadedGet.g.cs b/src/libs/Presenton/Generated/Presenton.FontsClient.ListFontsApiV1PptFontsUploadedGet.g.cs index e777bcb..f9d8469 100644 --- a/src/libs/Presenton/Generated/Presenton.FontsClient.ListFontsApiV1PptFontsUploadedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FontsClient.ListFontsApiV1PptFontsUploadedGet.g.cs @@ -340,18 +340,17 @@ partial void ProcessListFontsApiV1PptFontsUploadedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -385,17 +384,15 @@ partial void ProcessListFontsApiV1PptFontsUploadedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -432,17 +429,15 @@ partial void ProcessListFontsApiV1PptFontsUploadedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.FontsClient.UploadFontApiV1PptFontsUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.FontsClient.UploadFontApiV1PptFontsUploadPost.g.cs index 86521ce..ea1e975 100644 --- a/src/libs/Presenton/Generated/Presenton.FontsClient.UploadFontApiV1PptFontsUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.FontsClient.UploadFontApiV1PptFontsUploadPost.g.cs @@ -396,18 +396,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +440,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -488,17 +485,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -882,18 +877,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -923,17 +917,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -966,17 +958,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1330,18 +1320,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1375,17 +1364,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1422,17 +1409,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HealthClient.HealthApiV1HealthGet.g.cs b/src/libs/Presenton/Generated/Presenton.HealthClient.HealthApiV1HealthGet.g.cs index 133b7a7..2a57757 100644 --- a/src/libs/Presenton/Generated/Presenton.HealthClient.HealthApiV1HealthGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HealthClient.HealthApiV1HealthGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessHealthApiV1HealthGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessHealthApiV1HealthGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs index 88f659f..016172a 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.InitHtmlCreateApiV1PptHtmlCreateInitPost.g.cs @@ -429,18 +429,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -474,17 +473,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -521,17 +518,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs index 16c8964..433245d 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlCreateClient.StreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamHtmlCreateApiV1PptHtmlCreateStreamSessionIdGetResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs index 4779147..907f551 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.EditHtmlWithImagesEndpointApiV1PptHtmlEditPost.g.cs @@ -471,18 +471,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -516,17 +515,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -563,17 +560,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1082,18 +1077,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1123,17 +1117,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1166,17 +1158,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1622,18 +1612,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1667,17 +1656,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1714,17 +1701,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs index d4a1eb0..7a7dd38 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.InitHtmlEditApiV1PptHtmlEditInitPost.g.cs @@ -463,18 +463,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -508,17 +507,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -555,17 +552,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1072,18 +1067,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1113,17 +1107,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1156,17 +1148,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1615,18 +1605,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1660,17 +1649,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1707,17 +1694,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs index 588441e..2eab69b 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlEditClient.StreamHtmlEditApiV1PptHtmlEditStreamSessionIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamHtmlEditApiV1PptHtmlEditStreamSessionIdGetResponseCont { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs index 808b61b..80be773 100644 --- a/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.HtmlToReactClient.ConvertHtmlToReactApiV1PptHtmlToReactPost.g.cs @@ -370,18 +370,17 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessConvertHtmlToReactApiV1PptHtmlToReactPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.IconsClient.SearchIconsApiV1PptIconsSearchGet.g.cs b/src/libs/Presenton/Generated/Presenton.IconsClient.SearchIconsApiV1PptIconsSearchGet.g.cs index 8313651..3d50002 100644 --- a/src/libs/Presenton/Generated/Presenton.IconsClient.SearchIconsApiV1PptIconsSearchGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.IconsClient.SearchIconsApiV1PptIconsSearchGet.g.cs @@ -366,18 +366,17 @@ partial void ProcessSearchIconsApiV1PptIconsSearchGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessSearchIconsApiV1PptIconsSearchGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessSearchIconsApiV1PptIconsSearchGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDelete.g.cs index cbaf96e..9e4da15 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDelete.g.cs @@ -342,18 +342,17 @@ await DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeleteUploadedImageByIdForUiApiV1PptImagesIdUiDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdV1ApiV1PptImagesIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdV1ApiV1PptImagesIdDelete.g.cs index bc9421b..84618d1 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdV1ApiV1PptImagesIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.DeleteUploadedImageByIdV1ApiV1PptImagesIdDelete.g.cs @@ -348,18 +348,17 @@ await DeleteUploadedImageByIdV1ApiV1PptImagesIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -386,17 +385,15 @@ await DeleteUploadedImageByIdV1ApiV1PptImagesIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +421,15 @@ await DeleteUploadedImageByIdV1ApiV1PptImagesIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImageApiV1PptImagesGenerateGet.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImageApiV1PptImagesGenerateGet.g.cs index 902e556..8779b95 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImageApiV1PptImagesGenerateGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImageApiV1PptImagesGenerateGet.g.cs @@ -366,18 +366,17 @@ partial void ProcessGenerateImageApiV1PptImagesGenerateGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -409,17 +408,15 @@ partial void ProcessGenerateImageApiV1PptImagesGenerateGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessGenerateImageApiV1PptImagesGenerateGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImagesApiV2PptImagesGenerateGet.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImagesApiV2PptImagesGenerateGet.g.cs index 013b14a..0a6b962 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImagesApiV2PptImagesGenerateGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.GenerateImagesApiV2PptImagesGenerateGet.g.cs @@ -380,18 +380,17 @@ partial void ProcessGenerateImagesApiV2PptImagesGenerateGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessGenerateImagesApiV2PptImagesGenerateGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +465,15 @@ partial void ProcessGenerateImagesApiV2PptImagesGenerateGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetGeneratedImagesApiV1PptImagesGeneratedGet.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetGeneratedImagesApiV1PptImagesGeneratedGet.g.cs index 42d8d11..3dba741 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetGeneratedImagesApiV1PptImagesGeneratedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetGeneratedImagesApiV1PptImagesGeneratedGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetGeneratedImagesApiV1PptImagesGeneratedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetGeneratedImagesApiV1PptImagesGeneratedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetGeneratedImagesApiV1PptImagesGeneratedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesForUiApiV1PptImagesUploadedUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesForUiApiV1PptImagesUploadedUiGet.g.cs index 72f4fad..653bdd9 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesForUiApiV1PptImagesUploadedUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesForUiApiV1PptImagesUploadedUiGet.g.cs @@ -345,17 +345,15 @@ partial void ProcessGetUploadedImagesForUiApiV1PptImagesUploadedUiGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -390,17 +388,15 @@ partial void ProcessGetUploadedImagesForUiApiV1PptImagesUploadedUiGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesV1ApiV1PptImagesUploadedGet.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesV1ApiV1PptImagesUploadedGet.g.cs index e921982..78521ad 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesV1ApiV1PptImagesUploadedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.GetUploadedImagesV1ApiV1PptImagesUploadedGet.g.cs @@ -346,18 +346,17 @@ partial void ProcessGetUploadedImagesV1ApiV1PptImagesUploadedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -389,17 +388,15 @@ partial void ProcessGetUploadedImagesV1ApiV1PptImagesUploadedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -434,17 +431,15 @@ partial void ProcessGetUploadedImagesV1ApiV1PptImagesUploadedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageForUiApiV1PptImagesUploadUiPost.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageForUiApiV1PptImagesUploadUiPost.g.cs index 62de1f2..a594232 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageForUiApiV1PptImagesUploadUiPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageForUiApiV1PptImagesUploadUiPost.g.cs @@ -396,18 +396,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -439,17 +438,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -484,17 +481,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -872,18 +867,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -911,17 +905,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -952,17 +944,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1314,18 +1304,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1357,17 +1346,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1402,17 +1389,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageV1ApiV1PptImagesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageV1ApiV1PptImagesUploadPost.g.cs index 44007a2..b2bbb0c 100644 --- a/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageV1ApiV1PptImagesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ImagesClient.UploadImageV1ApiV1PptImagesUploadPost.g.cs @@ -402,18 +402,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -447,17 +446,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -494,17 +491,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -888,18 +883,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -929,17 +923,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -972,17 +964,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1337,18 +1327,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1382,17 +1371,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1429,17 +1416,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationCompletedApiV1MockPresentationGenerationCompletedGet.g.cs b/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationCompletedApiV1MockPresentationGenerationCompletedGet.g.cs index 1cbc390..e798650 100644 --- a/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationCompletedApiV1MockPresentationGenerationCompletedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationCompletedApiV1MockPresentationGenerationCompletedGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessMockPresentationGenerationCompletedApiV1MockPresentationGene } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessMockPresentationGenerationCompletedApiV1MockPresentationGene { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationFailedApiV1MockPresentationGenerationFailedGet.g.cs b/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationFailedApiV1MockPresentationGenerationFailedGet.g.cs index e1b14a7..fc7a158 100644 --- a/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationFailedApiV1MockPresentationGenerationFailedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.MockClient.MockPresentationGenerationFailedApiV1MockPresentationGenerationFailedGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessMockPresentationGenerationFailedApiV1MockPresentationGenerat } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessMockPresentationGenerationFailedApiV1MockPresentationGenerat { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs index 05f5665..52fae6e 100644 --- a/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.OutlinesClient.GenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGenerateOutlinesSyncV1ApiV1PptOutlinesGeneratePostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.OutlinesClient.StreamOutlinesApiV1PptOutlinesStreamIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.OutlinesClient.StreamOutlinesApiV1PptOutlinesStreamIdGet.g.cs index 0f5ba75..f2b775c 100644 --- a/src/libs/Presenton/Generated/Presenton.OutlinesClient.StreamOutlinesApiV1PptOutlinesStreamIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.OutlinesClient.StreamOutlinesApiV1PptOutlinesStreamIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamOutlinesApiV1PptOutlinesStreamIdGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamOutlinesApiV1PptOutlinesStreamIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamOutlinesApiV1PptOutlinesStreamIdGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs index f097c33..5ea32dc 100644 --- a/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PdfSlidesClient.ProcessPdfSlidesApiV1PptPdfSlidesProcessPost.g.cs @@ -408,18 +408,17 @@ request.PdfFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -453,17 +452,15 @@ request.PdfFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -500,17 +497,15 @@ request.PdfFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -906,18 +901,17 @@ request.PdfFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -947,17 +941,15 @@ request.PdfFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -990,17 +982,15 @@ request.PdfFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1360,18 +1350,17 @@ request.PdfFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1405,17 +1394,15 @@ request.PdfFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1452,17 +1439,15 @@ request.PdfFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs index cc55289..549099a 100644 --- a/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PptxFontsClient.ProcessPptxFontsApiV1PptPptxFontsProcessPost.g.cs @@ -400,18 +400,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -445,17 +444,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -492,17 +489,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -890,18 +885,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -931,17 +925,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -974,17 +966,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1340,18 +1330,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1385,17 +1374,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1432,17 +1419,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs b/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs index 5ba875f..3fd0b31 100644 --- a/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PptxSlidesClient.ProcessPptxSlidesApiV1PptPptxSlidesProcessPost.g.cs @@ -419,18 +419,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -464,17 +463,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -511,17 +508,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -938,18 +933,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -979,17 +973,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1022,17 +1014,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1407,18 +1397,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1452,17 +1441,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1499,17 +1486,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.CheckAsyncPresentationGenerationStatusApiV1PptPresentationStatusIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.CheckAsyncPresentationGenerationStatusApiV1PptPresentationStatusIdGet.g.cs index 0d72378..98c7177 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.CheckAsyncPresentationGenerationStatusApiV1PptPresentationStatusIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.CheckAsyncPresentationGenerationStatusApiV1PptPresentationStatusIdGet.g.cs @@ -361,18 +361,17 @@ partial void ProcessCheckAsyncPresentationGenerationStatusApiV1PptPresentationSt __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -406,17 +405,15 @@ partial void ProcessCheckAsyncPresentationGenerationStatusApiV1PptPresentationSt } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -453,17 +450,15 @@ partial void ProcessCheckAsyncPresentationGenerationStatusApiV1PptPresentationSt { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationApiV1PptPresentationCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationApiV1PptPresentationCreatePost.g.cs index 754cb61..d725d9e 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationApiV1PptPresentationCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationApiV1PptPresentationCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCreatePresentationApiV1PptPresentationCreatePostResponseCont __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCreatePresentationApiV1PptPresentationCreatePostResponseCont } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCreatePresentationApiV1PptPresentationCreatePostResponseCont { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateFromJsonAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateFromJsonAsyncPost.g.cs index 0806c92..61a9fed 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateFromJsonAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateFromJsonAsyncPost.g.cs @@ -368,18 +368,17 @@ partial void ProcessCreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateF __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -413,17 +412,15 @@ partial void ProcessCreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateF } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -460,17 +457,15 @@ partial void ProcessCreatePresentationFromJsonAsyncV1ApiV1PptPresentationCreateF { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFromJsonPost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFromJsonPost.g.cs index 8059fcd..90e9fa8 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFromJsonPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.CreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFromJsonPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessCreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFr __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessCreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFr } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessCreatePresentationFromJsonSyncV1ApiV1PptPresentationCreateFr { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdApiV1PptPresentationIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdApiV1PptPresentationIdDelete.g.cs index 08be3d4..ed37303 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdApiV1PptPresentationIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdApiV1PptPresentationIdDelete.g.cs @@ -348,18 +348,17 @@ await DeletePresentationByIdApiV1PptPresentationIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -386,17 +385,15 @@ await DeletePresentationByIdApiV1PptPresentationIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +421,15 @@ await DeletePresentationByIdApiV1PptPresentationIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdForUiApiV1PptPresentationIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdForUiApiV1PptPresentationIdUiDelete.g.cs index b6b16c8..363afc8 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdForUiApiV1PptPresentationIdUiDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.DeletePresentationByIdForUiApiV1PptPresentationIdUiDelete.g.cs @@ -342,18 +342,17 @@ await DeletePresentationByIdForUiApiV1PptPresentationIdUiDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeletePresentationByIdForUiApiV1PptPresentationIdUiDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeletePresentationByIdForUiApiV1PptPresentationIdUiDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.DerivePresentationFromExistingOneApiV1PptPresentationDerivePost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.DerivePresentationFromExistingOneApiV1PptPresentationDerivePost.g.cs index 0dc9655..ddda524 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.DerivePresentationFromExistingOneApiV1PptPresentationDerivePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.DerivePresentationFromExistingOneApiV1PptPresentationDerivePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessDerivePresentationFromExistingOneApiV1PptPresentationDeriveP __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessDerivePresentationFromExistingOneApiV1PptPresentationDeriveP } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessDerivePresentationFromExistingOneApiV1PptPresentationDeriveP { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.EditPresentationWithNewContentApiV1PptPresentationEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.EditPresentationWithNewContentApiV1PptPresentationEditPost.g.cs index ac81177..7346be6 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.EditPresentationWithNewContentApiV1PptPresentationEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.EditPresentationWithNewContentApiV1PptPresentationEditPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessEditPresentationWithNewContentApiV1PptPresentationEditPostRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessEditPresentationWithNewContentApiV1PptPresentationEditPostRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessEditPresentationWithNewContentApiV1PptPresentationEditPostRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.ExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.ExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost.g.cs index 0cd9a4e..d62001a 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.ExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.ExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPos __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPos } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV1ApiV1PptPresentationExportPos { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsyncPost.g.cs index b592847..31d2806 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsyncPost.g.cs @@ -368,18 +368,17 @@ partial void ProcessGeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsync __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -413,17 +412,15 @@ partial void ProcessGeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsync } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -460,17 +457,15 @@ partial void ProcessGeneratePresentationAsyncV1ApiV1PptPresentationGenerateAsync { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationSyncV1ApiV1PptPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationSyncV1ApiV1PptPresentationGeneratePost.g.cs index cb9560f..cc2641d 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationSyncV1ApiV1PptPresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GeneratePresentationSyncV1ApiV1PptPresentationGeneratePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessGeneratePresentationSyncV1ApiV1PptPresentationGeneratePostRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessGeneratePresentationSyncV1ApiV1PptPresentationGeneratePostRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessGeneratePresentationSyncV1ApiV1PptPresentationGeneratePostRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsApiV1PptPresentationAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsApiV1PptPresentationAllGet.g.cs index 4bd0904..3faf27f 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsApiV1PptPresentationAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsApiV1PptPresentationAllGet.g.cs @@ -376,18 +376,17 @@ partial void ProcessGetAllUserPresentationsApiV1PptPresentationAllGetResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessGetAllUserPresentationsApiV1PptPresentationAllGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +465,15 @@ partial void ProcessGetAllUserPresentationsApiV1PptPresentationAllGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsForUiApiV1PptPresentationAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsForUiApiV1PptPresentationAllUiGet.g.cs index f12a996..a2c4f9b 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsForUiApiV1PptPresentationAllUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetAllUserPresentationsForUiApiV1PptPresentationAllUiGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetAllUserPresentationsForUiApiV1PptPresentationAllUiGetResp __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV1PptPresentationAllUiGetResp } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV1PptPresentationAllUiGetResp { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationAndSlidesByIdApiV1PptPresentationIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationAndSlidesByIdApiV1PptPresentationIdGet.g.cs index b44646a..8481bec 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationAndSlidesByIdApiV1PptPresentationIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationAndSlidesByIdApiV1PptPresentationIdGet.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetPresentationAndSlidesByIdApiV1PptPresentationIdGetRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -400,17 +399,15 @@ partial void ProcessGetPresentationAndSlidesByIdApiV1PptPresentationIdGetRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +444,15 @@ partial void ProcessGetPresentationAndSlidesByIdApiV1PptPresentationIdGetRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationForUiApiV1PptPresentationIdUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationForUiApiV1PptPresentationIdUiGet.g.cs index 0878a74..d2908cf 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationForUiApiV1PptPresentationIdUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.GetPresentationForUiApiV1PptPresentationIdUiGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetPresentationForUiApiV1PptPresentationIdUiGetResponseConte __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetPresentationForUiApiV1PptPresentationIdUiGetResponseConte } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetPresentationForUiApiV1PptPresentationIdUiGetResponseConte { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.PreparePresentationApiV1PptPresentationPreparePost.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.PreparePresentationApiV1PptPresentationPreparePost.g.cs index 8299239..03592c6 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.PreparePresentationApiV1PptPresentationPreparePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.PreparePresentationApiV1PptPresentationPreparePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessPreparePresentationApiV1PptPresentationPreparePostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessPreparePresentationApiV1PptPresentationPreparePostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessPreparePresentationApiV1PptPresentationPreparePostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.StreamPresentationApiV1PptPresentationStreamIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.StreamPresentationApiV1PptPresentationStreamIdGet.g.cs index 4ee7c73..22ac93a 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.StreamPresentationApiV1PptPresentationStreamIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.StreamPresentationApiV1PptPresentationStreamIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamPresentationApiV1PptPresentationStreamIdGetResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessStreamPresentationApiV1PptPresentationStreamIdGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessStreamPresentationApiV1PptPresentationStreamIdGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.PresentationClient.UpdatePresentationApiV1PptPresentationUpdatePatch.g.cs b/src/libs/Presenton/Generated/Presenton.PresentationClient.UpdatePresentationApiV1PptPresentationUpdatePatch.g.cs index 393de78..45bbb92 100644 --- a/src/libs/Presenton/Generated/Presenton.PresentationClient.UpdatePresentationApiV1PptPresentationUpdatePatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.PresentationClient.UpdatePresentationApiV1PptPresentationUpdatePatch.g.cs @@ -360,18 +360,17 @@ partial void ProcessUpdatePresentationApiV1PptPresentationUpdatePatchResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessUpdatePresentationApiV1PptPresentationUpdatePatchResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessUpdatePresentationApiV1PptPresentationUpdatePatchResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs index 429b76c..959e4e8 100644 --- a/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ReactEditClient.EditReactWithImageEndpointApiV1PptReactEditPost.g.cs @@ -459,18 +459,17 @@ request.SketchImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -504,17 +503,15 @@ request.SketchImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -551,17 +548,15 @@ request.SketchImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideApiV1PptSlideEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideApiV1PptSlideEditPost.g.cs index 9c22755..21f7ffc 100644 --- a/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideApiV1PptSlideEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideApiV1PptSlideEditPost.g.cs @@ -374,18 +374,17 @@ partial void ProcessEditSlideApiV1PptSlideEditPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -419,17 +418,15 @@ partial void ProcessEditSlideApiV1PptSlideEditPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -466,17 +463,15 @@ partial void ProcessEditSlideApiV1PptSlideEditPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideHtmlApiV1PptSlideEditHtmlPost.g.cs b/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideHtmlApiV1PptSlideEditHtmlPost.g.cs index 4d7597f..583ff8e 100644 --- a/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideHtmlApiV1PptSlideEditHtmlPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.SlideClient.EditSlideHtmlApiV1PptSlideEditHtmlPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessEditSlideHtmlApiV1PptSlideEditHtmlPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEditSlideHtmlApiV1PptSlideEditHtmlPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessEditSlideHtmlApiV1PptSlideEditHtmlPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs b/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs index a252289..73212cb 100644 --- a/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.SlideToHtmlClient.ConvertSlideToHtmlApiV1PptSlideToHtmlPost.g.cs @@ -370,18 +370,17 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessConvertSlideToHtmlApiV1PptSlideToHtmlPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs b/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs index 0d32f0a..064bfdf 100644 --- a/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.SlideToReactClient.ConvertSlideToReactApiV1PptSlideToReactPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessConvertSlideToReactApiV1PptSlideToReactPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneSlideLayoutApiV1PptTemplateSlideLayoutClonePost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneSlideLayoutApiV1PptTemplateSlideLayoutClonePost.g.cs index ae82d85..4157c05 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneSlideLayoutApiV1PptTemplateSlideLayoutClonePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneSlideLayoutApiV1PptTemplateSlideLayoutClonePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCloneSlideLayoutApiV1PptTemplateSlideLayoutClonePostResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCloneSlideLayoutApiV1PptTemplateSlideLayoutClonePostResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCloneSlideLayoutApiV1PptTemplateSlideLayoutClonePostResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneTemplateApiV1PptTemplateClonePost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneTemplateApiV1PptTemplateClonePost.g.cs index d61e6d6..72f4aa7 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneTemplateApiV1PptTemplateClonePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.CloneTemplateApiV1PptTemplateClonePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCloneTemplateApiV1PptTemplateClonePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCloneTemplateApiV1PptTemplateClonePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCloneTemplateApiV1PptTemplateClonePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePost.g.cs index a63f297..19f2e06 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePost.g.cs @@ -378,18 +378,17 @@ partial void ProcessCreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePostRespon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessCreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePostRespon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -470,17 +467,15 @@ partial void ProcessCreateSlideLayoutApiV1PptTemplateSlideLayoutCreatePostRespon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs index 38da35a..965861d 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.CreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPost.g.cs @@ -378,18 +378,17 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -423,17 +422,15 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -470,17 +467,15 @@ partial void ProcessCreateSlideLayoutOldApiV1PptTemplateCreateSlideLayoutPostRes { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutApiV1PptTemplateSlideLayoutEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutApiV1PptTemplateSlideLayoutEditPost.g.cs index b62ccca..b918bff 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutApiV1PptTemplateSlideLayoutEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutApiV1PptTemplateSlideLayoutEditPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessEditSlideLayoutApiV1PptTemplateSlideLayoutEditPostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEditSlideLayoutApiV1PptTemplateSlideLayoutEditPostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessEditSlideLayoutApiV1PptTemplateSlideLayoutEditPostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSectionPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSectionPost.g.cs index 4319031..9372fb9 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSectionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.EditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSectionPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessEditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSection __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSection } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessEditSlideLayoutSectionApiV1PptTemplateSlideLayoutEditSection { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetAllTemplatesApiV1PptTemplateAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetAllTemplatesApiV1PptTemplateAllGet.g.cs index 98b1130..617d4f7 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetAllTemplatesApiV1PptTemplateAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetAllTemplatesApiV1PptTemplateAllGet.g.cs @@ -358,18 +358,17 @@ partial void ProcessGetAllTemplatesApiV1PptTemplateAllGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessGetAllTemplatesApiV1PptTemplateAllGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -450,17 +447,15 @@ partial void ProcessGetAllTemplatesApiV1PptTemplateAllGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsApiV1PptTemplateTemplateIdLayoutsGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsApiV1PptTemplateTemplateIdLayoutsGet.g.cs index 535dfbd..8e631ee 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsApiV1PptTemplateTemplateIdLayoutsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetLayoutsApiV1PptTemplateTemplateIdLayoutsGet.g.cs @@ -353,18 +353,17 @@ partial void ProcessGetLayoutsApiV1PptTemplateTemplateIdLayoutsGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -398,17 +397,15 @@ partial void ProcessGetLayoutsApiV1PptTemplateTemplateIdLayoutsGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -445,17 +442,15 @@ partial void ProcessGetLayoutsApiV1PptTemplateTemplateIdLayoutsGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateByIdApiV1PptTemplateIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateByIdApiV1PptTemplateIdGet.g.cs index de673bb..97f6e97 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateByIdApiV1PptTemplateIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateByIdApiV1PptTemplateIdGet.g.cs @@ -353,18 +353,17 @@ partial void ProcessGetTemplateByIdApiV1PptTemplateIdGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -398,17 +397,15 @@ partial void ProcessGetTemplateByIdApiV1PptTemplateIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -445,17 +442,15 @@ partial void ProcessGetTemplateByIdApiV1PptTemplateIdGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateExampleApiV1PptTemplateIdExampleGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateExampleApiV1PptTemplateIdExampleGet.g.cs index 39cd5dd..a8f423c 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateExampleApiV1PptTemplateIdExampleGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.GetTemplateExampleApiV1PptTemplateIdExampleGet.g.cs @@ -357,18 +357,17 @@ partial void ProcessGetTemplateExampleApiV1PptTemplateIdExampleGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -402,17 +401,15 @@ partial void ProcessGetTemplateExampleApiV1PptTemplateIdExampleGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -449,17 +446,15 @@ partial void ProcessGetTemplateExampleApiV1PptTemplateIdExampleGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.InitCreateTemplateApiV1PptTemplateCreateInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.InitCreateTemplateApiV1PptTemplateCreateInitPost.g.cs index 00adce1..565b675 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.InitCreateTemplateApiV1PptTemplateCreateInitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.InitCreateTemplateApiV1PptTemplateCreateInitPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessInitCreateTemplateApiV1PptTemplateCreateInitPostResponseCont __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessInitCreateTemplateApiV1PptTemplateCreateInitPostResponseCont } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessInitCreateTemplateApiV1PptTemplateCreateInitPostResponseCont { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveSlideLayoutApiV1PptTemplateSlideLayoutSavePost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveSlideLayoutApiV1PptTemplateSlideLayoutSavePost.g.cs index f9416cf..12550d5 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveSlideLayoutApiV1PptTemplateSlideLayoutSavePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveSlideLayoutApiV1PptTemplateSlideLayoutSavePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessSaveSlideLayoutApiV1PptTemplateSlideLayoutSavePostResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessSaveSlideLayoutApiV1PptTemplateSlideLayoutSavePostResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessSaveSlideLayoutApiV1PptTemplateSlideLayoutSavePostResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveTemplateApiV1PptTemplateSavePost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveTemplateApiV1PptTemplateSavePost.g.cs index 5cecbb5..38cdb4b 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveTemplateApiV1PptTemplateSavePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.SaveTemplateApiV1PptTemplateSavePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessSaveTemplateApiV1PptTemplateSavePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessSaveTemplateApiV1PptTemplateSavePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessSaveTemplateApiV1PptTemplateSavePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.UpdateTemplateApiV1PptTemplateUpdatePut.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.UpdateTemplateApiV1PptTemplateUpdatePut.g.cs index c0e2ad1..1911d66 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.UpdateTemplateApiV1PptTemplateUpdatePut.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.UpdateTemplateApiV1PptTemplateUpdatePut.g.cs @@ -360,18 +360,17 @@ partial void ProcessUpdateTemplateApiV1PptTemplateUpdatePutResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessUpdateTemplateApiV1PptTemplateUpdatePutResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessUpdateTemplateApiV1PptTemplateUpdatePutResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateClient.UploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateClient.UploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost.g.cs index beaf959..c7036cf 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateClient.UploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateClient.UploadFontsAndSlidesPreviewApiV1PptTemplateFontsUploadAndSlidesPreviewPost.g.cs @@ -413,18 +413,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -458,17 +457,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -505,17 +502,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -936,18 +931,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -977,17 +971,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1020,17 +1012,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1411,18 +1401,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1456,17 +1445,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1503,17 +1490,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs index ba7c1d4..7dcd4f5 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.CreateTemplateApiV1PptTemplateManagementTemplatesPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -398,18 +397,17 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal server error if ((int)__response.StatusCode == 500) @@ -436,18 +434,17 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons __exception_500 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -481,17 +478,15 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -528,17 +523,15 @@ partial void ProcessCreateTemplateApiV1PptTemplateManagementTemplatesPostRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs index b3667b6..46348e4 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDelete.g.cs @@ -342,18 +342,17 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeleteTemplateApiV1PptTemplateManagementDeleteTemplatesTemplateIdDeleteAsR { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs index 42ff554..58bc7ae 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetLayoutsApiV1PptTemplateManagementGetTemplatesPresentationGet.g.cs @@ -365,18 +365,17 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // No layouts found for presentation if ((int)__response.StatusCode == 404) @@ -403,18 +402,17 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __exception_404 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, - statusCode: __response.StatusCode) - { - ResponseBody = __content_404, - ResponseObject = __value_404, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_404, + responseObject: __value_404, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -441,18 +439,17 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal server error if ((int)__response.StatusCode == 500) @@ -479,18 +476,17 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation __exception_500 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -524,17 +520,15 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -571,17 +565,15 @@ partial void ProcessGetLayoutsApiV1PptTemplateManagementGetTemplatesPresentation { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs index 9f1bd9f..dcaac4e 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.GetPresentationsSummaryApiV1PptTemplateManagementSummaryGet.g.cs @@ -342,18 +342,17 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR __exception_500 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -387,17 +386,15 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -434,17 +431,15 @@ partial void ProcessGetPresentationsSummaryApiV1PptTemplateManagementSummaryGetR { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs index e24e962..aec4a17 100644 --- a/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.TemplateManagementClient.SaveLayoutsApiV1PptTemplateManagementSaveTemplatesPost.g.cs @@ -376,18 +376,17 @@ partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRespon __exception_400 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Validation Error if ((int)__response.StatusCode == 422) @@ -414,18 +413,17 @@ partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRespon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } // Internal server error if ((int)__response.StatusCode == 500) @@ -452,18 +450,17 @@ partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRespon __exception_500 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_500, + responseObject: __value_500, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -497,17 +494,15 @@ partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRespon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -544,17 +539,15 @@ partial void ProcessSaveLayoutsApiV1PptTemplateManagementSaveTemplatesPostRespon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs index e9866e0..21168f2 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.CreateThemeApiV1PptThemesCreatePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessCreateThemeApiV1PptThemesCreatePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs index d876edc..7baa500 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.DeleteThemeApiV1PptThemesDeleteThemeIdDelete.g.cs @@ -342,18 +342,17 @@ await DeleteThemeApiV1PptThemesDeleteThemeIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeleteThemeApiV1PptThemesDeleteThemeIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeleteThemeApiV1PptThemesDeleteThemeIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs index 07340aa..dd46d3d 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetDefaultThemesApiV1PptThemesDefaultGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetDefaultThemesApiV1PptThemesDefaultGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs index 50f4d31..3c94d8a 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.GetThemesApiV1PptThemesAllGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetThemesApiV1PptThemesAllGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs b/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs index 297a992..a763f03 100644 --- a/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs +++ b/src/libs/Presenton/Generated/Presenton.ThemesClient.UpdateThemeApiV1PptThemesUpdateThemeIdPatch.g.cs @@ -369,18 +369,17 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -414,17 +413,15 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -461,17 +458,15 @@ partial void ProcessUpdateThemeApiV1PptThemesUpdateThemeIdPatchResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V1OnClient.PresentationExportApiV1OnPresentationExportPost.g.cs b/src/libs/Presenton/Generated/Presenton.V1OnClient.PresentationExportApiV1OnPresentationExportPost.g.cs index 41837ec..242d75d 100644 --- a/src/libs/Presenton/Generated/Presenton.V1OnClient.PresentationExportApiV1OnPresentationExportPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V1OnClient.PresentationExportApiV1OnPresentationExportPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessPresentationExportApiV1OnPresentationExportPostResponseConte __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessPresentationExportApiV1OnPresentationExportPostResponseConte } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessPresentationExportApiV1OnPresentationExportPostResponseConte { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs index 85e77db..fe043b0 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.CreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessCreateDesignSystemV2AsyncApiV2PptDesignCreateAsyncPostRespon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs index 97f9afd..5f2e5d2 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDelete.g.cs @@ -342,18 +342,17 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeleteDesignSystemV2ApiV2PptDesignDesignSystemIdUiDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs index 1520656..587710d 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetAllDesignSystemsForUiApiV2PptDesignAllUiGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetAllDesignSystemsForUiApiV2PptDesignAllUiGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs index 64be525..ee92c70 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDefaultDesignSystemsForUiApiV2PptDesignDefaultGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetDefaultDesignSystemsForUiApiV2PptDesignDefaultGetResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExtractionStatusApiV2PptDesignStatusIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExtractionStatusApiV2PptDesignStatusIdGet.g.cs index c63288e..6637976 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExtractionStatusApiV2PptDesignStatusIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignExtractionStatusApiV2PptDesignStatusIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetDesignExtractionStatusApiV2PptDesignStatusIdGetResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetDesignExtractionStatusApiV2PptDesignStatusIdGetResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetDesignExtractionStatusApiV2PptDesignStatusIdGetResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs index 78008a4..999b127 100644 --- a/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2DesignClient.GetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportInfoGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetDesignSystemExportInfoApiV2PptDesignDesignSystemIdExportI { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixHtmlApiV2PptFixSlideFixGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixHtmlApiV2PptFixSlideFixGet.g.cs index d4c3d99..a23413a 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixHtmlApiV2PptFixSlideFixGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixHtmlApiV2PptFixSlideFixGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetFixHtmlApiV2PptFixSlideFixGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -399,17 +398,15 @@ partial void ProcessGetFixHtmlApiV2PptFixSlideFixGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -444,17 +441,15 @@ partial void ProcessGetFixHtmlApiV2PptFixSlideFixGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixStatusApiV2PptFixSlideStatusGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixStatusApiV2PptFixSlideStatusGet.g.cs index 949b2e4..be6cc52 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixStatusApiV2PptFixSlideStatusGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.GetFixStatusApiV2PptFixSlideStatusGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetFixStatusApiV2PptFixSlideStatusGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -399,17 +398,15 @@ partial void ProcessGetFixStatusApiV2PptFixSlideStatusGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -444,17 +441,15 @@ partial void ProcessGetFixStatusApiV2PptFixSlideStatusGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.InitFixSlideApiV2PptFixSlideInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.InitFixSlideApiV2PptFixSlideInitPost.g.cs index f5ff880..cc4fd9a 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.InitFixSlideApiV2PptFixSlideInitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FixSlideClient.InitFixSlideApiV2PptFixSlideInitPost.g.cs @@ -400,18 +400,17 @@ request.SlideImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -443,17 +442,15 @@ request.SlideImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -488,17 +485,15 @@ request.SlideImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -896,18 +891,17 @@ request.SlideImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -935,17 +929,15 @@ request.SlideImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -976,17 +968,15 @@ request.SlideImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1349,18 +1339,17 @@ request.SlideImagename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1392,17 +1381,15 @@ request.SlideImagename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1437,17 +1424,15 @@ request.SlideImagename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs index 88ee75e..b2ad163 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FontsClient.CheckFontsInPptxApiV2PptFontsCheckPost.g.cs @@ -396,18 +396,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -441,17 +440,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -488,17 +485,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -882,18 +877,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -923,17 +917,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -966,17 +958,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1330,18 +1320,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1375,17 +1364,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1422,17 +1409,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2FontsClient.UploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2FontsClient.UploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost.g.cs index f919cbd..f0dac76 100644 --- a/src/libs/Presenton/Generated/Presenton.V2FontsClient.UploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2FontsClient.UploadFontsAndSlidesPreviewApiV2PptFontsUploadAndPreviewPost.g.cs @@ -413,18 +413,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -458,17 +457,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -505,17 +502,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -936,18 +931,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -977,17 +971,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1020,17 +1012,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1411,18 +1401,17 @@ request.PptxFilename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1456,17 +1445,15 @@ request.PptxFilename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1503,17 +1490,15 @@ request.PptxFilename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2OnClient.PresentationExportApiV2OnPresentationExportPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2OnClient.PresentationExportApiV2OnPresentationExportPost.g.cs index ce4e42e..5c06536 100644 --- a/src/libs/Presenton/Generated/Presenton.V2OnClient.PresentationExportApiV2OnPresentationExportPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2OnClient.PresentationExportApiV2OnPresentationExportPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessPresentationExportApiV2OnPresentationExportPostResponseConte __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessPresentationExportApiV2OnPresentationExportPostResponseConte } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessPresentationExportApiV2OnPresentationExportPostResponseConte { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.GetOnboardingQuestionsApiV2OnboardingQuestionsGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.GetOnboardingQuestionsApiV2OnboardingQuestionsGet.g.cs index cb94c7d..575c1b4 100644 --- a/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.GetOnboardingQuestionsApiV2OnboardingQuestionsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.GetOnboardingQuestionsApiV2OnboardingQuestionsGet.g.cs @@ -347,17 +347,15 @@ partial void ProcessGetOnboardingQuestionsApiV2OnboardingQuestionsGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -394,17 +392,15 @@ partial void ProcessGetOnboardingQuestionsApiV2OnboardingQuestionsGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.SubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.SubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPost.g.cs index 107555f..594fd92 100644 --- a/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.SubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2OnboardingClient.SubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessSubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPostRespo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -403,17 +402,15 @@ partial void ProcessSubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPostRespo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessSubmitOnboardingAnswersApiV2OnboardingAnswersSubmitPostRespo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.DeletePresentationByIdForUiApiV2PptPresentationIdUiDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.DeletePresentationByIdForUiApiV2PptPresentationIdUiDelete.g.cs index 6eec7b5..6730bd1 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.DeletePresentationByIdForUiApiV2PptPresentationIdUiDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.DeletePresentationByIdForUiApiV2PptPresentationIdUiDelete.g.cs @@ -342,18 +342,17 @@ await DeletePresentationByIdForUiApiV2PptPresentationIdUiDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -380,17 +379,15 @@ await DeletePresentationByIdForUiApiV2PptPresentationIdUiDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -418,17 +415,15 @@ await DeletePresentationByIdForUiApiV2PptPresentationIdUiDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditHtmlApiV2PptPresentationEditHtmlPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditHtmlApiV2PptPresentationEditHtmlPost.g.cs index 4c44839..8ecac70 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditHtmlApiV2PptPresentationEditHtmlPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditHtmlApiV2PptPresentationEditHtmlPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessEditHtmlApiV2PptPresentationEditHtmlPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessEditHtmlApiV2PptPresentationEditHtmlPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessEditHtmlApiV2PptPresentationEditHtmlPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditOutlineApiV2PptPresentationOutlineEditPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditOutlineApiV2PptPresentationOutlineEditPost.g.cs index bbd6462..1b73009 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditOutlineApiV2PptPresentationOutlineEditPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditOutlineApiV2PptPresentationOutlineEditPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessEditOutlineApiV2PptPresentationOutlineEditPostResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessEditOutlineApiV2PptPresentationOutlineEditPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -450,17 +447,15 @@ partial void ProcessEditOutlineApiV2PptPresentationOutlineEditPostResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditSectionApiV2PptPresentationEditSectionPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditSectionApiV2PptPresentationEditSectionPost.g.cs index f64c534..66c56a9 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditSectionApiV2PptPresentationEditSectionPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.EditSectionApiV2PptPresentationEditSectionPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessEditSectionApiV2PptPresentationEditSectionPostResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessEditSectionApiV2PptPresentationEditSectionPostResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessEditSectionApiV2PptPresentationEditSectionPostResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost.g.cs index 02bf1cc..fa7952c 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.ExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPos __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPos } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV2ApiV2PptPresentationExportPos { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlInitPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlInitPost.g.cs index 911f9ad..88b25b3 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlInitPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlInitPost.g.cs @@ -362,18 +362,17 @@ partial void ProcessGenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlIn __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessGenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlIn } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessGenerateHtmlPresentationV2ApiV2PptPresentationGenerateHtmlIn { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs index ddb1367..1b926d7 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsyncPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsync __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsync } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGeneratePresentationAsyncV2ApiV2PptPresentationGenerateAsync { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs index 7d67a30..b7377fa 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GeneratePresentationSyncV2ApiV2PptPresentationGeneratePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGeneratePresentationSyncV2ApiV2PptPresentationGeneratePostRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGeneratePresentationSyncV2ApiV2PptPresentationGeneratePostRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGeneratePresentationSyncV2ApiV2PptPresentationGeneratePostRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetAllUserPresentationsForUiApiV2PptPresentationAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetAllUserPresentationsForUiApiV2PptPresentationAllUiGet.g.cs index 5f7085d..e76ce78 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetAllUserPresentationsForUiApiV2PptPresentationAllUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetAllUserPresentationsForUiApiV2PptPresentationAllUiGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetAllUserPresentationsForUiApiV2PptPresentationAllUiGetResp __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV2PptPresentationAllUiGetResp } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV2PptPresentationAllUiGetResp { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationByIdForUiApiV2PptPresentationIdUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationByIdForUiApiV2PptPresentationIdUiGet.g.cs index 152ab35..ec7f578 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationByIdForUiApiV2PptPresentationIdUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationByIdForUiApiV2PptPresentationIdUiGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetPresentationByIdForUiApiV2PptPresentationIdUiGetResponseC __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetPresentationByIdForUiApiV2PptPresentationIdUiGetResponseC } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetPresentationByIdForUiApiV2PptPresentationIdUiGetResponseC { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationStatusApiV2PptPresentationStatusIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationStatusApiV2PptPresentationStatusIdGet.g.cs index 338c15c..27b1dde 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationStatusApiV2PptPresentationStatusIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.GetPresentationStatusApiV2PptPresentationStatusIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetPresentationStatusApiV2PptPresentationStatusIdGetResponse __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetPresentationStatusApiV2PptPresentationStatusIdGetResponse } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetPresentationStatusApiV2PptPresentationStatusIdGetResponse { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGet.g.cs index 5dab9c3..f43330e 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGetRespo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGetRespo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamOutlinesV2ApiV2PptPresentationOutlinesStreamIdGetRespo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlApiV2PptPresentationStreamIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlApiV2PptPresentationStreamIdGet.g.cs index 6e62267..0cd052d 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlApiV2PptPresentationStreamIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlApiV2PptPresentationStreamIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamPresentationHtmlApiV2PptPresentationStreamIdGetRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamPresentationHtmlApiV2PptPresentationStreamIdGetRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamPresentationHtmlApiV2PptPresentationStreamIdGetRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs index 4c1bc12..6f019fd 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.StreamPresentationHtmlLargeApiV2PptPresentationStreamLargeIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeId __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -392,17 +391,15 @@ partial void ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeId } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -437,17 +434,15 @@ partial void ProcessStreamPresentationHtmlLargeApiV2PptPresentationStreamLargeId { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.UpdatePresentationApiV2PptPresentationUpdatePut.g.cs b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.UpdatePresentationApiV2PptPresentationUpdatePut.g.cs index 642a272..7b739a2 100644 --- a/src/libs/Presenton/Generated/Presenton.V2PresentationClient.UpdatePresentationApiV2PptPresentationUpdatePut.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2PresentationClient.UpdatePresentationApiV2PptPresentationUpdatePut.g.cs @@ -360,18 +360,17 @@ partial void ProcessUpdatePresentationApiV2PptPresentationUpdatePutResponseConte __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessUpdatePresentationApiV2PptPresentationUpdatePutResponseConte } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessUpdatePresentationApiV2PptPresentationUpdatePutResponseConte { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs index ffb969f..8007800 100644 --- a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateNewSlideApiV2PptSlideGeneratePost.g.cs @@ -362,18 +362,17 @@ partial void ProcessGenerateNewSlideApiV2PptSlideGeneratePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -407,17 +406,15 @@ partial void ProcessGenerateNewSlideApiV2PptSlideGeneratePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -454,17 +451,15 @@ partial void ProcessGenerateNewSlideApiV2PptSlideGeneratePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGeneratePost.g.cs index 2babb3f..f34fcaa 100644 --- a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGeneratePost.g.cs @@ -371,18 +371,17 @@ partial void ProcessGenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGen __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -416,17 +415,15 @@ partial void ProcessGenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGen } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -463,17 +460,15 @@ partial void ProcessGenerateSegmentVariationsApiV2PptSlideIdSegmentVariationsGen { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GetSlideVariationsApiV2PptSlideIdVariationsGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GetSlideVariationsApiV2PptSlideIdVariationsGet.g.cs index 2cef468..d247131 100644 --- a/src/libs/Presenton/Generated/Presenton.V2SlideClient.GetSlideVariationsApiV2PptSlideIdVariationsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2SlideClient.GetSlideVariationsApiV2PptSlideIdVariationsGet.g.cs @@ -381,18 +381,17 @@ partial void ProcessGetSlideVariationsApiV2PptSlideIdVariationsGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -426,17 +425,15 @@ partial void ProcessGetSlideVariationsApiV2PptSlideIdVariationsGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -473,17 +470,15 @@ partial void ProcessGetSlideVariationsApiV2PptSlideIdVariationsGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V2SlideClient.StreamSlideVariationsApiV2PptSlideIdVariationsGenerateGet.g.cs b/src/libs/Presenton/Generated/Presenton.V2SlideClient.StreamSlideVariationsApiV2PptSlideIdVariationsGenerateGet.g.cs index 70e683f..f36b695 100644 --- a/src/libs/Presenton/Generated/Presenton.V2SlideClient.StreamSlideVariationsApiV2PptSlideIdVariationsGenerateGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V2SlideClient.StreamSlideVariationsApiV2PptSlideIdVariationsGenerateGet.g.cs @@ -367,18 +367,17 @@ partial void ProcessStreamSlideVariationsApiV2PptSlideIdVariationsGenerateGetRes __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -410,17 +409,15 @@ partial void ProcessStreamSlideVariationsApiV2PptSlideIdVariationsGenerateGetRes } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -455,17 +452,15 @@ partial void ProcessStreamSlideVariationsApiV2PptSlideIdVariationsGenerateGetRes { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3AsyncTaskClient.GetAsyncTaskStatusApiV3AsyncTaskStatusIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3AsyncTaskClient.GetAsyncTaskStatusApiV3AsyncTaskStatusIdGet.g.cs index 2e0df19..a6cb7a5 100644 --- a/src/libs/Presenton/Generated/Presenton.V3AsyncTaskClient.GetAsyncTaskStatusApiV3AsyncTaskStatusIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3AsyncTaskClient.GetAsyncTaskStatusApiV3AsyncTaskStatusIdGet.g.cs @@ -359,18 +359,17 @@ partial void ProcessGetAsyncTaskStatusApiV3AsyncTaskStatusIdGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -404,17 +403,15 @@ partial void ProcessGetAsyncTaskStatusApiV3AsyncTaskStatusIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -451,17 +448,15 @@ partial void ProcessGetAsyncTaskStatusApiV3AsyncTaskStatusIdGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserApiV3EnterpriseUsersAddPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserApiV3EnterpriseUsersAddPost.g.cs index 40b4f6e..61b679c 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserApiV3EnterpriseUsersAddPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserApiV3EnterpriseUsersAddPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessAddEnterpriseUserApiV3EnterpriseUsersAddPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAddEnterpriseUserApiV3EnterpriseUsersAddPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessAddEnterpriseUserApiV3EnterpriseUsersAddPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPost.g.cs index 292db7f..8065f0d 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.AddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPost.g.cs @@ -360,18 +360,17 @@ partial void ProcessAddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPostRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessAddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPostRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessAddEnterpriseUserCreditsApiV3EnterpriseCreditsAddPostRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.CreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.CreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensPost.g.cs index 4cd6e60..8a4fd13 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.CreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.CreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensPost.g.cs @@ -349,18 +349,17 @@ partial void ProcessCreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAcc __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessCreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAcc } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessCreateEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAcc { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensTokenDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensTokenDelete.g.cs index 726d75a..5475a3d 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensTokenDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensTokenDelete.g.cs @@ -351,18 +351,17 @@ await DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensToken __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -389,17 +388,15 @@ await DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensToken } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -427,17 +424,15 @@ await DeleteEnterpriseUserAccessTokenApiV3EnterpriseUsersUserIdAccessTokensToken { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseApiV3EnterpriseEnterpriseIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseApiV3EnterpriseEnterpriseIdGet.g.cs index 700fbf8..bdcc26c 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseApiV3EnterpriseEnterpriseIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseApiV3EnterpriseEnterpriseIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetEnterpriseApiV3EnterpriseEnterpriseIdGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetEnterpriseApiV3EnterpriseEnterpriseIdGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetEnterpriseApiV3EnterpriseEnterpriseIdGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGet.g.cs index 405f912..01bb657 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGetRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -401,17 +400,15 @@ partial void ProcessGetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGetRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessGetEnterpriseCreditsInfoApiV3EnterpriseCreditsInfoGetRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterprisePresentationsInfoApiV3EnterprisePresentationsInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterprisePresentationsInfoApiV3EnterprisePresentationsInfoGet.g.cs index e0e7929..0095117 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterprisePresentationsInfoApiV3EnterprisePresentationsInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterprisePresentationsInfoApiV3EnterprisePresentationsInfoGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetEnterprisePresentationsInfoApiV3EnterprisePresentationsIn __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -401,17 +400,15 @@ partial void ProcessGetEnterprisePresentationsInfoApiV3EnterprisePresentationsIn } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessGetEnterprisePresentationsInfoApiV3EnterprisePresentationsIn { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserApiV3EnterpriseUsersUserIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserApiV3EnterpriseUsersUserIdGet.g.cs index edea296..89e943d 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserApiV3EnterpriseUsersUserIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserApiV3EnterpriseUsersUserIdGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetEnterpriseUserApiV3EnterpriseUsersUserIdGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetEnterpriseUserApiV3EnterpriseUsersUserIdGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetEnterpriseUserApiV3EnterpriseUsersUserIdGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCreditsInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCreditsInfoGet.g.cs index 4270525..c23fe96 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCreditsInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCreditsInfoGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCredit __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCredit } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetEnterpriseUserCreditsInfoApiV3EnterpriseUsersUserIdCredit { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserIdPresentationsInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserIdPresentationsInfoGet.g.cs index 2229a5f..05f1da6 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserIdPresentationsInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserIdPresentationsInfoGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessGetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserId __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessGetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserId } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessGetEnterpriseUserPresentationsInfoApiV3EnterpriseUsersUserId { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGet.g.cs index 338a5bf..9d98d8b 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.GetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGet.g.cs @@ -356,18 +356,17 @@ partial void ProcessGetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGetResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -401,17 +400,15 @@ partial void ProcessGetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -448,17 +445,15 @@ partial void ProcessGetEnterpriseUsersInfoApiV3EnterpriseUsersInfoGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGet.g.cs index 6828e2c..d4b9951 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGet.g.cs @@ -388,18 +388,17 @@ partial void ProcessListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGetRespons __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -433,17 +432,15 @@ partial void ProcessListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGetRespons } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -480,17 +477,15 @@ partial void ProcessListEnterpriseCreditAddsApiV3EnterpriseCreditsAddsGetRespons { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterprisePresentationsApiV3EnterprisePresentationsGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterprisePresentationsApiV3EnterprisePresentationsGet.g.cs index 0b6b4a4..fbc01e7 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterprisePresentationsApiV3EnterprisePresentationsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterprisePresentationsApiV3EnterprisePresentationsGet.g.cs @@ -402,18 +402,17 @@ partial void ProcessListEnterprisePresentationsApiV3EnterprisePresentationsGetRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -447,17 +446,15 @@ partial void ProcessListEnterprisePresentationsApiV3EnterprisePresentationsGetRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -494,17 +491,15 @@ partial void ProcessListEnterprisePresentationsApiV3EnterprisePresentationsGetRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAccessTokensGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAccessTokensGet.g.cs index ed33c99..2390427 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAccessTokensGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAccessTokensGet.g.cs @@ -349,18 +349,17 @@ partial void ProcessListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAcce __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -394,17 +393,15 @@ partial void ProcessListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAcce } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -441,17 +438,15 @@ partial void ProcessListEnterpriseUserAccessTokensApiV3EnterpriseUsersUserIdAcce { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPresentationsGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPresentationsGet.g.cs index e1d991f..717c1b7 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPresentationsGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPresentationsGet.g.cs @@ -397,18 +397,17 @@ partial void ProcessListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPre __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -442,17 +441,15 @@ partial void ProcessListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPre } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -489,17 +486,15 @@ partial void ProcessListEnterpriseUserPresentationsApiV3EnterpriseUsersUserIdPre { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUsersApiV3EnterpriseUsersGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUsersApiV3EnterpriseUsersGet.g.cs index e881f27..6898eaa 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUsersApiV3EnterpriseUsersGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ListEnterpriseUsersApiV3EnterpriseUsersGet.g.cs @@ -402,18 +402,17 @@ partial void ProcessListEnterpriseUsersApiV3EnterpriseUsersGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -447,17 +446,15 @@ partial void ProcessListEnterpriseUsersApiV3EnterpriseUsersGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -494,17 +491,15 @@ partial void ProcessListEnterpriseUsersApiV3EnterpriseUsersGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPost.g.cs index fac0f27..ffaed2e 100644 --- a/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3EnterpriseClient.ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPost.g.cs @@ -362,18 +362,17 @@ await ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPostAsRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -400,17 +399,15 @@ await ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPostAsRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +435,15 @@ await ResetEnterpriseUserPasswordApiV3EnterpriseUsersUserIdResetPasswordPostAsRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs index f58ef52..27a0c0c 100644 --- a/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3FilesClient.UploadFilesV3ApiV3FilesUploadPost.g.cs @@ -373,18 +373,17 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -418,17 +417,15 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -465,17 +462,15 @@ partial void ProcessUploadFilesV3ApiV3FilesUploadPostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3GitHubClient.GetGithubMetadataApiV3GithubMetadataGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3GitHubClient.GetGithubMetadataApiV3GithubMetadataGet.g.cs index 76e26d7..3017c53 100644 --- a/src/libs/Presenton/Generated/Presenton.V3GitHubClient.GetGithubMetadataApiV3GithubMetadataGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3GitHubClient.GetGithubMetadataApiV3GithubMetadataGet.g.cs @@ -345,17 +345,15 @@ partial void ProcessGetGithubMetadataApiV3GithubMetadataGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -390,17 +388,15 @@ partial void ProcessGetGithubMetadataApiV3GithubMetadataGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs index f5695b1..84a26b0 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.DeleteUploadedImageByIdV3ApiV3ImagesIdDelete.g.cs @@ -348,18 +348,17 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -386,17 +385,15 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -424,17 +421,15 @@ await DeleteUploadedImageByIdV3ApiV3ImagesIdDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs index 8279e53..7ddb224 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.GetUploadedImagesV3ApiV3ImagesUploadedGet.g.cs @@ -346,18 +346,17 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -389,17 +388,15 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -434,17 +431,15 @@ partial void ProcessGetUploadedImagesV3ApiV3ImagesUploadedGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs index 2f85666..dc82b5b 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ImagesClient.UploadImageV3ApiV3ImagesUploadPost.g.cs @@ -402,18 +402,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -447,17 +446,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -494,17 +491,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -888,18 +883,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -929,17 +923,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -972,17 +964,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } @@ -1337,18 +1327,17 @@ request.Filename is null __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -1382,17 +1371,15 @@ request.Filename is null } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -1429,17 +1416,15 @@ request.Filename is null { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs index 6638a0a..4f94596 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PlaygroundClient.GeneratePresentationForPlaygroundApiV3PlaygroundPresentationGeneratePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGeneratePresentationForPlaygroundApiV3PlaygroundPresentation __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGeneratePresentationForPlaygroundApiV3PlaygroundPresentation } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGeneratePresentationForPlaygroundApiV3PlaygroundPresentation { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAsyncPost.g.cs index 09f649d..ca596f4 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAsyncPost.g.cs @@ -368,18 +368,17 @@ partial void ProcessCreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAs __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -413,17 +412,15 @@ partial void ProcessCreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAs } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -460,17 +457,15 @@ partial void ProcessCreatePresentationFromJsonAsyncV3ApiV3PresentationFromJsonAs { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPost.g.cs index 570e31e..d295068 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.CreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessCreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPos __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessCreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPos } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessCreatePresentationFromJsonSyncV3ApiV3PresentationFromJsonPos { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.ExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.ExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost.g.cs index d6102dd..9f7e07e 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.ExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.ExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPost.g.cs @@ -366,18 +366,17 @@ partial void ProcessExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostRe __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostRe } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessExportPresentationAsPptxOrPdfV3ApiV3PresentationExportPostRe { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs index 7c1f8e7..6915528 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessGenerateOutlinesSyncV3ApiV3PresentationOutlinesGeneratePostR { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs index 5cd045b..dbae274 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPost.g.cs @@ -368,18 +368,17 @@ partial void ProcessGeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPos __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -413,17 +412,15 @@ partial void ProcessGeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPos } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -460,17 +457,15 @@ partial void ProcessGeneratePresentationAsyncV3ApiV3PresentationGenerateAsyncPos { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs index 93d5619..98f5e5c 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GeneratePresentationSyncV3ApiV3PresentationGeneratePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessGeneratePresentationSyncV3ApiV3PresentationGeneratePostRespo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessGeneratePresentationSyncV3ApiV3PresentationGeneratePostRespo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessGeneratePresentationSyncV3ApiV3PresentationGeneratePostRespo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiApiV3PresentationAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiApiV3PresentationAllGet.g.cs index 5dbda18..d98de39 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiApiV3PresentationAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiApiV3PresentationAllGet.g.cs @@ -376,18 +376,17 @@ partial void ProcessGetAllUserPresentationsForUiApiV3PresentationAllGetResponseC __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV3PresentationAllGetResponseC } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +465,15 @@ partial void ProcessGetAllUserPresentationsForUiApiV3PresentationAllGetResponseC { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUiGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUiGet.g.cs index d9de1d6..61cd468 100644 --- a/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUiGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3PresentationClient.GetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUiGet.g.cs @@ -370,18 +370,17 @@ partial void ProcessGetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUi __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -415,17 +414,15 @@ partial void ProcessGetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUi } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -462,17 +459,15 @@ partial void ProcessGetAllUserPresentationsForUiWithSlidesApiV3PresentationAllUi { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs index 1d09e9c..46e3774 100644 --- a/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3SchemaClient.GenerateContentForSchemaApiV3SchemaContentGeneratePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGenerateContentForSchemaApiV3SchemaContentGeneratePostRespon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetAllSmartDesignsApiV3SmartDesignAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetAllSmartDesignsApiV3SmartDesignAllGet.g.cs index b899fb6..938f87c 100644 --- a/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetAllSmartDesignsApiV3SmartDesignAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3SmartDesignClient.GetAllSmartDesignsApiV3SmartDesignAllGet.g.cs @@ -376,18 +376,17 @@ partial void ProcessGetAllSmartDesignsApiV3SmartDesignAllGetResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -421,17 +420,15 @@ partial void ProcessGetAllSmartDesignsApiV3SmartDesignAllGetResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -468,17 +465,15 @@ partial void ProcessGetAllSmartDesignsApiV3SmartDesignAllGetResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetAllStandardTemplatesApiV3StandardTemplateAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetAllStandardTemplatesApiV3StandardTemplateAllGet.g.cs index 9719973..471ea1e 100644 --- a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetAllStandardTemplatesApiV3StandardTemplateAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetAllStandardTemplatesApiV3StandardTemplateAllGet.g.cs @@ -364,18 +364,17 @@ partial void ProcessGetAllStandardTemplatesApiV3StandardTemplateAllGetResponseCo __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -409,17 +408,15 @@ partial void ProcessGetAllStandardTemplatesApiV3StandardTemplateAllGetResponseCo } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -456,17 +453,15 @@ partial void ProcessGetAllStandardTemplatesApiV3StandardTemplateAllGetResponseCo { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateByIdApiV3StandardTemplateIdGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateByIdApiV3StandardTemplateIdGet.g.cs index 1d53e11..8d9a95f 100644 --- a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateByIdApiV3StandardTemplateIdGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateByIdApiV3StandardTemplateIdGet.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetStandardTemplateByIdApiV3StandardTemplateIdGetResponseCon __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -400,17 +399,15 @@ partial void ProcessGetStandardTemplateByIdApiV3StandardTemplateIdGetResponseCon } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +444,15 @@ partial void ProcessGetStandardTemplateByIdApiV3StandardTemplateIdGetResponseCon { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateExampleApiV3StandardTemplateIdExampleGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateExampleApiV3StandardTemplateIdExampleGet.g.cs index 0045853..359b8ef 100644 --- a/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateExampleApiV3StandardTemplateIdExampleGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3StandardTemplateClient.GetStandardTemplateExampleApiV3StandardTemplateIdExampleGet.g.cs @@ -355,18 +355,17 @@ partial void ProcessGetStandardTemplateExampleApiV3StandardTemplateIdExampleGetR __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -400,17 +399,15 @@ partial void ProcessGetStandardTemplateExampleApiV3StandardTemplateIdExampleGetR } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -447,17 +444,15 @@ partial void ProcessGetStandardTemplateExampleApiV3StandardTemplateIdExampleGetR { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs index f89870d..de36b29 100644 --- a/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3ThemeClient.GenerateThemeV3ApiV3ThemeGeneratePost.g.cs @@ -360,18 +360,17 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -405,17 +404,15 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -452,17 +449,15 @@ partial void ProcessGenerateThemeV3ApiV3ThemeGeneratePostResponseContent( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.GetAllWebhookSubscriptionsV3ApiV3WebhookAllGet.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.GetAllWebhookSubscriptionsV3ApiV3WebhookAllGet.g.cs index 4a84500..719e557 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.GetAllWebhookSubscriptionsV3ApiV3WebhookAllGet.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.GetAllWebhookSubscriptionsV3ApiV3WebhookAllGet.g.cs @@ -346,18 +346,17 @@ partial void ProcessGetAllWebhookSubscriptionsV3ApiV3WebhookAllGetResponseConten __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -391,17 +390,15 @@ partial void ProcessGetAllWebhookSubscriptionsV3ApiV3WebhookAllGetResponseConten } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -438,17 +435,15 @@ partial void ProcessGetAllWebhookSubscriptionsV3ApiV3WebhookAllGetResponseConten { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs index ae8b28b..e393f86 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.SubscribeToWebhookV3ApiV3WebhookSubscribePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessSubscribeToWebhookV3ApiV3WebhookSubscribePostResponseContent { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDelete.g.cs index 7b01894..fe92f8a 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDelete.g.cs @@ -339,18 +339,17 @@ await UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDeleteAsResp __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -377,17 +376,15 @@ await UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDeleteAsResp } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -415,17 +412,15 @@ await UnsubscribeAllWebhookSubscriptionsV3ApiV3WebhookUnsubscribeAllDeleteAsResp { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs index fe41994..3f8638e 100644 --- a/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.V3WebhookClient.UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDelete.g.cs @@ -359,18 +359,17 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -397,17 +396,15 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -435,17 +432,15 @@ await UnsubscribeToWebhookV3ApiV3WebhookUnsubscribeDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.WebhookClient.SubscribeToWebhookV1ApiV1WebhookSubscribePost.g.cs b/src/libs/Presenton/Generated/Presenton.WebhookClient.SubscribeToWebhookV1ApiV1WebhookSubscribePost.g.cs index 5dc9f5c..1b8db79 100644 --- a/src/libs/Presenton/Generated/Presenton.WebhookClient.SubscribeToWebhookV1ApiV1WebhookSubscribePost.g.cs +++ b/src/libs/Presenton/Generated/Presenton.WebhookClient.SubscribeToWebhookV1ApiV1WebhookSubscribePost.g.cs @@ -366,18 +366,17 @@ partial void ProcessSubscribeToWebhookV1ApiV1WebhookSubscribePostResponseContent __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -411,17 +410,15 @@ partial void ProcessSubscribeToWebhookV1ApiV1WebhookSubscribePostResponseContent } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -458,17 +455,15 @@ partial void ProcessSubscribeToWebhookV1ApiV1WebhookSubscribePostResponseContent { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } diff --git a/src/libs/Presenton/Generated/Presenton.WebhookClient.UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDelete.g.cs b/src/libs/Presenton/Generated/Presenton.WebhookClient.UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDelete.g.cs index 2d4bba9..cbe3bab 100644 --- a/src/libs/Presenton/Generated/Presenton.WebhookClient.UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDelete.g.cs +++ b/src/libs/Presenton/Generated/Presenton.WebhookClient.UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDelete.g.cs @@ -359,18 +359,17 @@ await UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDeleteAsResponseAsync( __exception_422 = __ex; } - throw new global::Presenton.ApiException( + + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } if (__effectiveReadResponseAsString) @@ -397,17 +396,15 @@ await UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDeleteAsResponseAsync( } catch (global::System.Exception __ex) { - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } } else @@ -435,17 +432,15 @@ await UnsubscribeToWebhookV1ApiV1WebhookUnsubscribeDeleteAsResponseAsync( { } - throw new global::Presenton.ApiException( + throw global::Presenton.ApiException.Create( + statusCode: __response.StatusCode, message: __content ?? __response.ReasonPhrase ?? string.Empty, innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( __response.Headers, h => h.Key, - h => h.Value), - }; + h => h.Value)); } }