diff --git a/api_demos/src/main/java/com/github/androidsocialnetworks/apidemos/fragment/demo/ShowProfileFragment.java b/api_demos/src/main/java/com/github/androidsocialnetworks/apidemos/fragment/demo/ShowProfileFragment.java index 84c20e9..2f11dfa 100644 --- a/api_demos/src/main/java/com/github/androidsocialnetworks/apidemos/fragment/demo/ShowProfileFragment.java +++ b/api_demos/src/main/java/com/github/androidsocialnetworks/apidemos/fragment/demo/ShowProfileFragment.java @@ -57,9 +57,6 @@ public void onViewCreated(View view, Bundle savedInstanceState) { builder.append("Position: "); builder.append(socialPerson.position); builder.append('\n'); - builder.append("Email: "); - builder.append(socialPerson.email); - builder.append('\n'); builder.append("Nickname: "); builder.append(socialPerson.nickname); builder.append('\n'); diff --git a/library/src/main/java/com/androidsocialnetworks/lib/SocialPerson.java b/library/src/main/java/com/androidsocialnetworks/lib/SocialPerson.java index 76c32e3..82cc1d8 100644 --- a/library/src/main/java/com/androidsocialnetworks/lib/SocialPerson.java +++ b/library/src/main/java/com/androidsocialnetworks/lib/SocialPerson.java @@ -23,7 +23,6 @@ public SocialPerson[] newArray(int size) { public String avatarURL; public String profileURL; // url to users profile, can be generated for twitter, facebook, but need to get via api from LinkedIn - public String email; public String nickname; public SocialPerson() { @@ -37,7 +36,6 @@ private SocialPerson(Parcel in) { position = in.readString(); avatarURL = in.readString(); profileURL = in.readString(); - email = in.readString(); nickname = in.readString(); } @@ -54,7 +52,6 @@ public void writeToParcel(Parcel dest, int flags) { dest.writeString(position); dest.writeString(avatarURL); dest.writeString(profileURL); - dest.writeString(email); dest.writeString(nickname); } @@ -68,7 +65,6 @@ public boolean equals(Object o) { if (avatarURL != null ? !avatarURL.equals(that.avatarURL) : that.avatarURL != null) return false; if (company != null ? !company.equals(that.company) : that.company != null) return false; - if (email != null ? !email.equals(that.email) : that.email != null) return false; if (id != null ? !id.equals(that.id) : that.id != null) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (nickname != null ? !nickname.equals(that.nickname) : that.nickname != null) @@ -89,7 +85,6 @@ public int hashCode() { result = 31 * result + (position != null ? position.hashCode() : 0); result = 31 * result + (avatarURL != null ? avatarURL.hashCode() : 0); result = 31 * result + (profileURL != null ? profileURL.hashCode() : 0); - result = 31 * result + (email != null ? email.hashCode() : 0); result = 31 * result + (nickname != null ? nickname.hashCode() : 0); return result; } @@ -103,7 +98,6 @@ public String toString() { ", position='" + position + '\'' + ", avatarURL='" + avatarURL + '\'' + ", profileURL='" + profileURL + '\'' + - ", email='" + email + '\'' + ", nickname='" + nickname + '\'' + '}'; }