Created UserInfo class

This commit is contained in:
Pierre 2017-11-02 13:59:14 +01:00
parent afebc57e0c
commit 019dc275fb
2 changed files with 101 additions and 1 deletions

View File

@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" /> <ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" /> <ConfirmationsSetting value="0" id="Remove" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@ -0,0 +1,100 @@
package org.communiquons.android.comunic.client.data;
/**
* This class contains the informations about a single user
*
* @author Pierre HUBERT
* Created by pierre on 11/2/17.
*/
public class UserInfo {
/**
* Informations about the user
*/
private int id;
private String firstName;
private String lastName;
private String imageURL;
/**
* Set the ID of the user
*
* @param id The ID to set
*/
public void setId(int id) {
this.id = id;
}
/**
* Get the ID of the user
*
* @return The ID of the user
*/
public int getId() {
return id;
}
/***
* Set the first name of the user
*
* @param firstName The new first name of the user
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* Get the first name of the user
*
* @return The first name of the user
*/
public String getFirstName() {
return firstName;
}
/**
* Set the last name of the user
*
* @param lastName The last name of the user
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* Get the last name of the user
*
* @return The last name of the user
*/
public String getLastName() {
return lastName;
}
/**
* Get the full name of the user
*
* @return The full name of the user
*/
public String getFullName(){
return firstName + " " + lastName;
}
/**
* Set the image URL of the account of the user
*
* @param imageURL The URL of the image
*/
public void setImageURL(String imageURL) {
this.imageURL = imageURL;
}
/**
* Get the image URL of the account of the user
*
* @return The image URL of the account of the user
*/
public String getImageURL() {
return imageURL;
}
}