Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/javascript/selenium-webdriver/lib/fedcm/account.js
2885 views
1
// Licensed to the Software Freedom Conservancy (SFC) under one
2
// or more contributor license agreements. See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership. The SFC licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License. You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied. See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
class Account {
19
constructor(
20
accountId,
21
email,
22
name,
23
givenName,
24
pictureUrl,
25
idpConfigUrl,
26
loginState,
27
termsOfServiceUrl,
28
privacyPolicyUrl,
29
) {
30
this._accountId = accountId
31
this._email = email
32
this._name = name
33
this._givenName = givenName
34
this._pictureUrl = pictureUrl
35
this._idpConfigUrl = idpConfigUrl
36
this._loginState = loginState
37
this._termsOfServiceUrl = termsOfServiceUrl
38
this._privacyPolicyUrl = privacyPolicyUrl
39
}
40
41
get accountId() {
42
return this._accountId
43
}
44
45
get email() {
46
return this._email
47
}
48
49
get name() {
50
return this._name
51
}
52
53
get givenName() {
54
return this._givenName
55
}
56
57
get pictureUrl() {
58
return this._pictureUrl
59
}
60
61
get idpConfigUrl() {
62
return this._idpConfigUrl
63
}
64
65
get loginState() {
66
return this._loginState
67
}
68
69
get termsOfServiceUrl() {
70
return this._termsOfServiceUrl
71
}
72
73
get privacyPolicyUrl() {
74
return this._privacyPolicyUrl
75
}
76
}
77
78
module.exports = Account
79
80