olp-cpp-sdk  1.22.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SignInUserResult.h
1 /*
2  * Copyright (C) 2019-2021 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 <ctime>
23 #include <memory>
24 #include <string>
25 
26 #include "AuthenticationApi.h"
27 #include "SignInResult.h"
28 
29 namespace olp {
30 namespace authentication {
31 class SignInUserResultImpl;
32 
40 class AUTHENTICATION_API SignInUserResult : public SignInResult {
41  public:
45  ~SignInUserResult() override;
46 
50  SignInUserResult() noexcept;
51 
58  const std::string& GetTermAcceptanceToken() const;
59 
67  const std::string& GetTermsOfServiceUrl() const;
68 
77  const std::string& GetTermsOfServiceUrlJson() const;
78 
86  const std::string& GetPrivatePolicyUrl() const;
87 
95  const std::string& GetPrivatePolicyUrlJson() const;
96 
97  private:
98  friend class AuthenticationClientImpl;
99 
100  SignInUserResult(std::shared_ptr<SignInUserResultImpl> impl);
101 
102  private:
103  std::shared_ptr<SignInUserResultImpl> impl_;
104 };
105 } // namespace authentication
106 } // namespace olp
A response to a client or user sign-in operation.
Definition: SignInResult.h:37
A response to your sign-in operation.
Definition: SignInUserResult.h:40
~SignInUserResult() override
A default destructor.
SignInUserResult() noexcept
A default constructor.
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24