forked from pockethub/PocketHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
159 additions
and
0 deletions.
There are no files selected for viewing
159 changes: 159 additions & 0 deletions
159
app/src/main/java/com/github/mobile/core/search/SearchUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
package com.github.mobile.core.search; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
import org.eclipse.egit.github.core.util.DateUtils; | ||
|
||
/** | ||
* GitHub v2 user model class. | ||
*/ | ||
public class SearchUser implements Serializable { | ||
|
||
/** serialVersionUID */ | ||
private static final long serialVersionUID = 159979362732689788L; | ||
|
||
private Date createdAt; | ||
|
||
private int followers; | ||
|
||
private String id; | ||
|
||
private String gravatarId; | ||
|
||
private String location; | ||
|
||
private String login; | ||
|
||
private String name; | ||
|
||
private String language; | ||
|
||
/** | ||
* @return createdAt | ||
*/ | ||
public Date getCreatedAt() { | ||
return DateUtils.clone(createdAt); | ||
} | ||
|
||
/** | ||
* @param createdAt | ||
* @return this user | ||
*/ | ||
public SearchUser setCreatedAt(Date createdAt) { | ||
this.createdAt = DateUtils.clone(createdAt); | ||
return this; | ||
} | ||
|
||
/** | ||
* @return followers | ||
*/ | ||
public int getFollowers() { | ||
return followers; | ||
} | ||
|
||
/** | ||
* @param followers | ||
* @return this user | ||
*/ | ||
public SearchUser setFollowers(int followers) { | ||
this.followers = followers; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return id | ||
*/ | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* @param id | ||
* @return this user | ||
*/ | ||
public SearchUser setId(String id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return gravatarId | ||
*/ | ||
public String getGravatarId() { | ||
return gravatarId; | ||
} | ||
|
||
/** | ||
* @param gravatarId | ||
* @return this user | ||
*/ | ||
public SearchUser setGravatarId(String gravatarId) { | ||
this.gravatarId = gravatarId; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return location | ||
*/ | ||
public String getLocation() { | ||
return location; | ||
} | ||
|
||
/** | ||
* @param location | ||
* @return this user | ||
*/ | ||
public SearchUser setLocation(String location) { | ||
this.location = location; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return login | ||
*/ | ||
public String getLogin() { | ||
return login; | ||
} | ||
|
||
/** | ||
* @param login | ||
* @return this user | ||
*/ | ||
public SearchUser setLogin(String login) { | ||
this.login = login; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* @param name | ||
* @return this user | ||
*/ | ||
public SearchUser setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* @return language | ||
*/ | ||
public String getLanguage() { | ||
return language; | ||
} | ||
|
||
/** | ||
* @param language | ||
* @return this user | ||
*/ | ||
public SearchUser setLanguage(String language) { | ||
this.language = language; | ||
return this; | ||
} | ||
} |