olp-cpp-sdk 1.24.0
Loading...
Searching...
No Matches
UserAccountInfoResponse.h
1/*
2 * Copyright (C) 2020 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 "AuthenticationApi.h"
23
24namespace olp {
25namespace authentication {
26namespace model {
30class AUTHENTICATION_API UserAccountInfoResponse {
31 public:
37 const std::string& GetUserId() const { return user_id_; }
38
44 void SetUserId(std::string user_id) { user_id_ = std::move(user_id); }
45
51 const std::string& GetRealm() const { return realm_; }
52
58 void SetRealm(std::string realm) { realm_ = std::move(realm); }
59
68 const std::string& GetFacebookId() const { return facebook_id_; }
69
75 void SetFacebookId(std::string facebook_id) {
76 facebook_id_ = std::move(facebook_id);
77 }
78
84 const std::string& GetFirstname() const { return firstname_; }
85
91 void SetFirstname(std::string firstname) {
92 firstname_ = std::move(firstname);
93 }
94
100 const std::string& GetLastname() const { return lastname_; }
101
107 void SetLastname(std::string lastname) { lastname_ = std::move(lastname); }
108
114 const std::string& GetEmail() const { return email_; }
115
121 void SetEmail(std::string email) { email_ = std::move(email); }
122
128 const std::string& GetRecoveryEmail() const { return recovery_email_; }
129
135 void SetRecoveryEmail(std::string recovery_email) {
136 recovery_email_ = std::move(recovery_email);
137 }
138
144 const std::string& GetDob() const { return dob_; }
145
151 void SetDob(std::string dob) { dob_ = std::move(dob); }
152
159 const std::string& GetCountryCode() const { return country_code_; }
160
167 void SetCountryCode(std::string country_code) {
168 country_code_ = std::move(country_code);
169 }
170
176 const std::string& GetLanguage() const { return language_; }
177
183 void SetLanguage(std::string language) { language_ = std::move(language); }
184
193 bool GetEmailVerified() const { return email_verified_; }
194
201 void SetEmailVerified(bool email_verified) {
202 email_verified_ = email_verified;
203 }
204
210 const std::string& GetPhoneNumber() const { return phone_number_; }
211
217 void SetPhoneNumber(std::string phone_number) {
218 phone_number_ = std::move(phone_number);
219 }
220
226 bool GetPhoneNumberVerified() const { return phone_number_verified_; }
227
234 void SetPhoneNumberVerified(bool phone_number_verified) {
235 phone_number_verified_ = phone_number_verified;
236 }
237
243 bool GetMarketingEnabled() const { return marketing_enabled_; }
244
250 void SetMarketingEnabled(bool marketing_enabled) {
251 marketing_enabled_ = marketing_enabled;
252 }
253
260 time_t GetCreatedTime() const { return created_time_; }
261
268 void SetCreatedTime(time_t created_time) { created_time_ = created_time; }
269
280 time_t GetUpdatedTime() const { return updated_time_; }
281
288 void SetUpdatedTime(time_t updated_time) { updated_time_ = updated_time; }
289
302 const std::string& GetState() const { return state_; }
303
309 void SetState(std::string state) { state_ = std::move(state); }
310
316 const std::string& GetHrn() const { return hrn_; }
317
323 void SetHrn(std::string hrn) { hrn_ = std::move(hrn); }
324
330 const std::string& GetAccountType() const { return account_type_; }
331
337 void SetAccountType(std::string account_type) {
338 account_type_ = std::move(account_type);
339 }
340
341 private:
342 std::string user_id_;
343 std::string realm_;
344 std::string facebook_id_;
345 std::string firstname_;
346 std::string lastname_;
347 std::string email_;
348 std::string recovery_email_;
349 std::string dob_;
350 std::string country_code_;
351 std::string language_;
352 bool email_verified_;
353 std::string phone_number_;
354 bool phone_number_verified_;
355 bool marketing_enabled_;
356 time_t created_time_;
357 time_t updated_time_;
358 std::string state_;
359 std::string hrn_;
360 std::string account_type_;
361};
362} // namespace model
363} // namespace authentication
364} // namespace olp
An account information.
Definition UserAccountInfoResponse.h:30
bool GetMarketingEnabled() const
Checks if the marketing is enabled.
Definition UserAccountInfoResponse.h:243
void SetPhoneNumberVerified(bool phone_number_verified)
Sets the verification of the phone number.
Definition UserAccountInfoResponse.h:234
time_t GetUpdatedTime() const
Gets the timestamp (milliseconds since the Unix epoch) of when the account was last updated.
Definition UserAccountInfoResponse.h:280
void SetMarketingEnabled(bool marketing_enabled)
Sets the marketing if it is enabled.
Definition UserAccountInfoResponse.h:250
void SetFirstname(std::string firstname)
Sets the first name of the user.
Definition UserAccountInfoResponse.h:91
void SetCountryCode(std::string country_code)
Sets the code of the user's country in the ISO 3166-1 alpha-3 format.
Definition UserAccountInfoResponse.h:167
const std::string & GetAccountType() const
Gets the account type.
Definition UserAccountInfoResponse.h:330
const std::string & GetRealm() const
Gets the realm in which the user account exists.
Definition UserAccountInfoResponse.h:51
const std::string & GetLastname() const
Gets the last name of the user.
Definition UserAccountInfoResponse.h:100
time_t GetCreatedTime() const
Gets the timestamp (milliseconds since the Unix epoch) of when the account was created.
Definition UserAccountInfoResponse.h:260
void SetEmailVerified(bool email_verified)
Sets the verification of the primary email address.
Definition UserAccountInfoResponse.h:201
const std::string & GetLanguage() const
Gets the code of the user's language in the ISO 639-1 2 format.
Definition UserAccountInfoResponse.h:176
const std::string & GetHrn() const
Gets the HRN of the user.
Definition UserAccountInfoResponse.h:316
const std::string & GetState() const
Gets the current state of the account.
Definition UserAccountInfoResponse.h:302
const std::string & GetDob() const
Gets the day of birth in the day/month/year format.
Definition UserAccountInfoResponse.h:144
void SetEmail(std::string email)
Sets the primary email address.
Definition UserAccountInfoResponse.h:121
bool GetEmailVerified() const
Gets the verification of the primary email address.
Definition UserAccountInfoResponse.h:193
void SetAccountType(std::string account_type)
Sets the account type.
Definition UserAccountInfoResponse.h:337
const std::string & GetFacebookId() const
Gets the Facebook ID of the user.
Definition UserAccountInfoResponse.h:68
const std::string & GetEmail() const
Gets the primary email address.
Definition UserAccountInfoResponse.h:114
void SetLanguage(std::string language)
Sets the code of the user's language in the ISO 639-1 2 format.
Definition UserAccountInfoResponse.h:183
void SetRealm(std::string realm)
Sets the realm in which the user account exists.
Definition UserAccountInfoResponse.h:58
void SetLastname(std::string lastname)
Sets the last name of the user.
Definition UserAccountInfoResponse.h:107
void SetPhoneNumber(std::string phone_number)
Sets the user's phone number.
Definition UserAccountInfoResponse.h:217
void SetUpdatedTime(time_t updated_time)
Sets the timestamp (milliseconds since the Unix epoch) of when the account was last updated.
Definition UserAccountInfoResponse.h:288
void SetUserId(std::string user_id)
Sets the HERE Account ID of the user.
Definition UserAccountInfoResponse.h:44
const std::string & GetFirstname() const
Gets the first name of the user.
Definition UserAccountInfoResponse.h:84
void SetFacebookId(std::string facebook_id)
Sets the Facebook ID of the user.
Definition UserAccountInfoResponse.h:75
const std::string & GetRecoveryEmail() const
Gets the recovery email address.
Definition UserAccountInfoResponse.h:128
void SetCreatedTime(time_t created_time)
Sets the timestamp (milliseconds since the Unix epoch) of when the account was created.
Definition UserAccountInfoResponse.h:268
void SetHrn(std::string hrn)
Sets the HRN of the user.
Definition UserAccountInfoResponse.h:323
const std::string & GetUserId() const
Gets the HERE Account ID of the user.
Definition UserAccountInfoResponse.h:37
const std::string & GetCountryCode() const
Gets the code of the user's country in the ISO 3166-1 alpha-3 format.
Definition UserAccountInfoResponse.h:159
const std::string & GetPhoneNumber() const
Gets the user's phone number.
Definition UserAccountInfoResponse.h:210
void SetDob(std::string dob)
Sets the day of birth.
Definition UserAccountInfoResponse.h:151
void SetState(std::string state)
Sets the current state of the account.
Definition UserAccountInfoResponse.h:309
bool GetPhoneNumberVerified() const
Gets the verification of the phone number.
Definition UserAccountInfoResponse.h:226
void SetRecoveryEmail(std::string recovery_email)
Sets the recovery email address.
Definition UserAccountInfoResponse.h:135
Rules all the other namespaces.
Definition AppleSignInProperties.h:24