olp-cpp-sdk 1.24.0
Loading...
Searching...
No Matches
SignUpResult.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 "ErrorResponse.h"
28
29namespace olp {
30namespace authentication {
31class SignUpResultImpl;
32
42class AUTHENTICATION_API SignUpResult {
43 public:
47 virtual ~SignUpResult();
48
52 SignUpResult() noexcept;
53
61 int GetStatus() const;
62
68 const ErrorResponse& GetErrorResponse() const;
69
75 const ErrorFields& GetErrorFields() const;
76
82 const std::string& GetUserIdentifier() const;
83
84 private:
85 friend class AuthenticationClientImpl;
86
87 SignUpResult(std::shared_ptr<SignUpResultImpl> impl);
88
89 private:
90 std::shared_ptr<SignUpResultImpl> impl_;
91};
92} // namespace authentication
93} // namespace olp
A response to the sign-up operation with your HERE Account user ID.
Definition SignUpResult.h:42
SignUpResult() noexcept
A default constructor.
virtual ~SignUpResult()
A default destructor.
std::list< ErrorField > ErrorFields
The list of the ErrorField objects.
Definition ErrorResponse.h:72
Rules all the other namespaces.
Definition AppleSignInProperties.h:24
Detailed descriptions of errors returned as a response to an authentication operation.
Definition ErrorResponse.h:36