-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Android SDK update for version 25.1.0 #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0808589
f5ee7e3
97d04e7
244b940
aebe93d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,12 @@ data class Membership( | |
| @SerializedName("mfa") | ||
| val mfa: Boolean, | ||
|
|
||
| /** | ||
| * Most recent access date in ISO 8601 format. Show this attribute by toggling membership privacy in the Console. | ||
| */ | ||
| @SerializedName("userAccessedAt") | ||
| val userAccessedAt: String, | ||
|
|
||
| /** | ||
| * User list of roles | ||
| */ | ||
|
|
@@ -106,6 +112,7 @@ data class Membership( | |
| "joined" to joined as Any, | ||
| "confirm" to confirm as Any, | ||
| "mfa" to mfa as Any, | ||
| "userAccessedAt" to userAccessedAt as Any, | ||
| "roles" to roles as Any, | ||
| ) | ||
|
|
||
|
|
@@ -128,6 +135,7 @@ data class Membership( | |
| joined = map["joined"] as String, | ||
| confirm = map["confirm"] as Boolean, | ||
| mfa = map["mfa"] as Boolean, | ||
| userAccessedAt = map["userAccessedAt"] as String, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| roles = map["roles"] as List<String>, | ||
| ) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,6 +91,36 @@ data class User<T>( | |
| @SerializedName("emailVerification") | ||
| val emailVerification: Boolean, | ||
|
|
||
| /** | ||
| * Canonical form of the user email address. | ||
| */ | ||
| @SerializedName("emailCanonical") | ||
| var emailCanonical: String?, | ||
|
|
||
| /** | ||
| * Whether the user email is from a free email provider. | ||
| */ | ||
| @SerializedName("emailIsFree") | ||
| var emailIsFree: Boolean?, | ||
|
|
||
| /** | ||
| * Whether the user email is from a disposable email provider. | ||
| */ | ||
|
Comment on lines
+94
to
+108
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The five new email fields ( Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| @SerializedName("emailIsDisposable") | ||
| var emailIsDisposable: Boolean?, | ||
|
|
||
| /** | ||
| * Whether the user email is from a corporate domain. | ||
| */ | ||
| @SerializedName("emailIsCorporate") | ||
| var emailIsCorporate: Boolean?, | ||
|
|
||
| /** | ||
| * Whether the user email is in its canonical form. | ||
| */ | ||
| @SerializedName("emailIsCanonical") | ||
| var emailIsCanonical: Boolean?, | ||
|
|
||
| /** | ||
| * Phone verification status. | ||
| */ | ||
|
|
@@ -149,6 +179,11 @@ data class User<T>( | |
| "email" to email as Any, | ||
| "phone" to phone as Any, | ||
| "emailVerification" to emailVerification as Any, | ||
| "emailCanonical" to emailCanonical as Any, | ||
| "emailIsFree" to emailIsFree as Any, | ||
| "emailIsDisposable" to emailIsDisposable as Any, | ||
| "emailIsCorporate" to emailIsCorporate as Any, | ||
| "emailIsCanonical" to emailIsCanonical as Any, | ||
| "phoneVerification" to phoneVerification as Any, | ||
| "mfa" to mfa as Any, | ||
| "prefs" to prefs.toMap() as Any, | ||
|
|
@@ -174,6 +209,11 @@ data class User<T>( | |
| email: String, | ||
| phone: String, | ||
| emailVerification: Boolean, | ||
| emailCanonical: String?, | ||
| emailIsFree: Boolean?, | ||
| emailIsDisposable: Boolean?, | ||
| emailIsCorporate: Boolean?, | ||
| emailIsCanonical: Boolean?, | ||
| phoneVerification: Boolean, | ||
| mfa: Boolean, | ||
| prefs: Preferences<Map<String, Any>>, | ||
|
|
@@ -196,6 +236,11 @@ data class User<T>( | |
| email, | ||
| phone, | ||
| emailVerification, | ||
| emailCanonical, | ||
| emailIsFree, | ||
| emailIsDisposable, | ||
| emailIsCorporate, | ||
| emailIsCanonical, | ||
| phoneVerification, | ||
| mfa, | ||
| prefs, | ||
|
|
@@ -224,6 +269,11 @@ data class User<T>( | |
| email = map["email"] as String, | ||
| phone = map["phone"] as String, | ||
| emailVerification = map["emailVerification"] as Boolean, | ||
| emailCanonical = map["emailCanonical"] as? String, | ||
| emailIsFree = map["emailIsFree"] as? Boolean, | ||
| emailIsDisposable = map["emailIsDisposable"] as? Boolean, | ||
| emailIsCorporate = map["emailIsCorporate"] as? Boolean, | ||
| emailIsCanonical = map["emailIsCanonical"] as? Boolean, | ||
| phoneVerification = map["phoneVerification"] as Boolean, | ||
| mfa = map["mfa"] as Boolean, | ||
| prefs = Preferences.from(map = map["prefs"] as Map<String, Any>, nestedType), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!