Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

Commit d390ab7

Browse files
committed
version upgrade, customer signup missing email fix
1 parent 2bce33b commit d390ab7

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.4.3
2+
=====
3+
* Adding back email field for organization sign up
4+
5+
16
0.4.2
27
=====
38
* Support for all device types/names by platform id

cloudsdk/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
apply plugin: 'me.tatarka.retrolambda'
33

44
// This is the library version used when deploying the artifact
5-
version = '0.4.2'
5+
version = '0.4.3'
66

77
ext {
88
bintrayRepo = 'android'

cloudsdk/src/main/java/io/particle/android/sdk/cloud/models/SignUpInfo.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,40 @@
1313
*/
1414
@ParametersAreNonnullByDefault
1515
public class SignUpInfo implements Parcelable {
16-
private String username, password;
16+
private String username, password, email;
1717
@SerializedName("grant_type") @Nullable
1818
private String grantType;
1919
@SerializedName("account_info") @Nullable
2020
private AccountInfo accountInfo;
2121

22+
public SignUpInfo(String username, String password, String email) {
23+
this.username = username;
24+
this.password = password;
25+
this.email = email;
26+
}
27+
28+
public SignUpInfo(String username, String password, String email, AccountInfo accountInfo) {
29+
this.username = username;
30+
this.password = password;
31+
this.accountInfo = accountInfo;
32+
this.email = email;
33+
}
34+
2235
public SignUpInfo(String username, String password) {
2336
this.username = username;
2437
this.password = password;
38+
this.email = username;
2539
}
2640

2741
public SignUpInfo(String username, String password, AccountInfo accountInfo) {
2842
this.username = username;
2943
this.password = password;
3044
this.accountInfo = accountInfo;
45+
this.email = username;
46+
}
47+
48+
public String getEmail() {
49+
return email;
3150
}
3251

3352
public String getUsername() {
@@ -66,13 +85,15 @@ public int describeContents() {
6685
public void writeToParcel(Parcel dest, int flags) {
6786
dest.writeString(this.username);
6887
dest.writeString(this.password);
88+
dest.writeString(this.email);
6989
dest.writeString(this.grantType);
7090
dest.writeParcelable(this.accountInfo, flags);
7191
}
7292

7393
protected SignUpInfo(Parcel in) {
7494
this.username = in.readString();
7595
this.password = in.readString();
96+
this.email = in.readString();
7697
this.grantType = in.readString();
7798
this.accountInfo = in.readParcelable(AccountInfo.class.getClassLoader());
7899
}

0 commit comments

Comments
 (0)