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
3d5a73bc
Commit
3d5a73bc
authored
Jun 13, 2018
by
yashkhem1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated User model to add roles and institute roles
parent
f8ba871f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
+25
-1
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/User.java
View file @
3d5a73bc
...
...
@@ -48,6 +48,12 @@ public class User {
@ColumnInfo
(
name
=
"followed_bodies_id"
)
@SerializedName
(
"followed_bodies_id"
)
List
<
String
>
userFollowedBodiesID
;
@ColumnInfo
(
name
=
"roles"
)
@SerializedName
(
"roles"
)
List
<
Role
>
userRoles
;
@ColumnInfo
(
name
=
"institute_roles"
)
@SerializedName
(
"institute_roles"
)
List
<
Role
>
userInstituteRoles
;
@ColumnInfo
(
name
=
"website_url"
)
@SerializedName
(
"website_url"
)
String
userWebsiteURL
;
...
...
@@ -55,7 +61,7 @@ public class User {
@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
)
{
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
,
List
<
Role
>
userRoles
,
List
<
Role
>
userInstituteRoles
,
String
userWebsiteURL
,
String
userLDAPId
)
{
this
.
userID
=
userID
;
this
.
userName
=
userName
;
this
.
userProfilePictureUrl
=
userProfilePictureUrl
;
...
...
@@ -67,6 +73,8 @@ public class User {
this
.
userAbout
=
userAbout
;
this
.
userFollowedBodies
=
userFollowedBodies
;
this
.
userFollowedBodiesID
=
userFollowedBodiesID
;
this
.
userRoles
=
userRoles
;
this
.
userInstituteRoles
=
userInstituteRoles
;
this
.
userWebsiteURL
=
userWebsiteURL
;
this
.
userLDAPId
=
userLDAPId
;
}
...
...
@@ -163,6 +171,22 @@ public class User {
this
.
userFollowedBodiesID
=
userFollowedBodiesID
;
}
public
List
<
Role
>
getUserRoles
()
{
return
userRoles
;
}
public
void
setUserRoles
(
List
<
Role
>
userRoles
)
{
this
.
userRoles
=
userRoles
;
}
public
List
<
Role
>
getUserInstituteRoles
()
{
return
userInstituteRoles
;
}
public
void
setUserInstituteRoles
(
List
<
Role
>
userInstituteRoles
)
{
this
.
userInstituteRoles
=
userInstituteRoles
;
}
public
String
getUserWebsiteURL
()
{
return
userWebsiteURL
;
}
...
...
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