olp-cpp-sdk  1.22.0
Types.h
1 /*
2  * Copyright (C) 2020-2023 HERE Europe B.V.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * SPDX-License-Identifier: Apache-2.0
17  * License-Filename: LICENSE
18  */
19 
20 #pragma once
21 
22 #include <memory>
23 
24 #include <olp/authentication/AuthorizeResult.h>
25 #include <olp/authentication/IntrospectAppResult.h>
26 #include <olp/authentication/TokenResult.h>
27 #include <olp/authentication/UserAccountInfoResponse.h>
28 #include <olp/core/client/ApiError.h>
29 #include <olp/core/client/ApiResponse.h>
30 
31 namespace olp {
32 namespace authentication {
33 
35 template <typename ResultType>
37 
39 template <typename ResultType>
40 using Callback = std::function<void(Response<ResultType>)>;
41 
44 
47 
50 
53 
56 
59 
62 } // namespace authentication
63 } // namespace olp
Represents a request outcome.
Definition: ApiResponse.h:65
Callback< AuthorizeResult > AuthorizeCallback
Called when the user decision request is completed.
Definition: Types.h:52
Callback< model::UserAccountInfoResponse > UserAccountInfoCallback
Called when the get user account request is completed.
Definition: Types.h:58
Callback< IntrospectAppResult > IntrospectAppCallback
Called when the user introspect app request is completed.
Definition: Types.h:46
std::function< void(Response< ResultType >)> Callback
The callback template type.
Definition: Types.h:40
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24