Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
3053402b
Commit
3053402b
authored
May 31, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete user model with exception of roles
parent
19facc6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
+26
-14
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
View file @
3053402b
...
...
@@ -33,9 +33,6 @@ public class User {
@ColumnInfo
(
name
=
"email"
)
@SerializedName
(
"email"
)
String
userEmail
;
@ColumnInfo
(
name
=
"year"
)
@SerializedName
(
"year"
)
int
userYear
;
@ColumnInfo
(
name
=
"roll_no"
)
@SerializedName
(
"roll_no"
)
String
userRollNumber
;
...
...
@@ -51,20 +48,27 @@ public class User {
@ColumnInfo
(
name
=
"followed_bodies_id"
)
@SerializedName
(
"followed_bodies_id"
)
List
<
String
>
userFollowedBodiesID
;
public
User
(
String
userID
,
String
userName
,
String
userProfilePictureUrl
,
List
<
Event
>
userInterestedEvents
,
List
<
Event
>
userGoingEvents
,
String
userEmail
,
int
userYear
,
String
userRollNumber
,
String
userContactNumber
,
String
userAbout
,
List
<
Body
>
userFollowedBodies
,
List
<
String
>
userFollowedBodiesID
)
{
@ColumnInfo
(
name
=
"website_url"
)
@SerializedName
(
"website_url"
)
String
userWebsiteURL
;
@ColumnInfo
(
name
=
"ldap_id"
)
@SerializedName
(
"ldap_id"
)
String
userLDAPId
;
public
User
(
String
userID
,
String
userName
,
String
userProfilePictureUrl
,
List
<
Event
>
userInterestedEvents
,
List
<
Event
>
userGoingEvents
,
String
userEmail
,
String
userRollNumber
,
String
userContactNumber
,
String
userAbout
,
List
<
Body
>
userFollowedBodies
,
List
<
String
>
userFollowedBodiesID
,
String
userWebsiteURL
,
String
userLDAPID
)
{
this
.
userID
=
userID
;
this
.
userName
=
userName
;
this
.
userProfilePictureUrl
=
userProfilePictureUrl
;
this
.
userInterestedEvents
=
userInterestedEvents
;
this
.
userGoingEvents
=
userGoingEvents
;
this
.
userEmail
=
userEmail
;
this
.
userYear
=
userYear
;
this
.
userRollNumber
=
userRollNumber
;
this
.
userContactNumber
=
userContactNumber
;
this
.
userAbout
=
userAbout
;
this
.
userFollowedBodies
=
userFollowedBodies
;
this
.
userFollowedBodiesID
=
userFollowedBodiesID
;
this
.
userWebsiteURL
=
userWebsiteURL
;
this
.
userLDAPId
=
userLDAPID
;
}
public
static
User
fromString
(
String
json
)
{
...
...
@@ -119,14 +123,6 @@ public class User {
this
.
userEmail
=
userEmail
;
}
public
int
getUserYear
()
{
return
userYear
;
}
public
void
setUserYear
(
int
userYear
)
{
this
.
userYear
=
userYear
;
}
public
String
getUserRollNumber
()
{
return
userRollNumber
;
}
...
...
@@ -167,6 +163,22 @@ public class User {
this
.
userFollowedBodiesID
=
userFollowedBodiesID
;
}
public
String
getUserWebsiteURL
()
{
return
userWebsiteURL
;
}
public
void
setUserWebsiteURL
(
String
userWebsiteURL
)
{
this
.
userWebsiteURL
=
userWebsiteURL
;
}
public
String
getUserLDAPId
()
{
return
userLDAPId
;
}
public
void
setUserLDAPId
(
String
userLDAPId
)
{
this
.
userLDAPId
=
userLDAPId
;
}
@Override
public
String
toString
()
{
return
new
Gson
().
toJson
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment