public class User extends Model
Modifier and Type | Field and Description |
---|---|
private static org.ksoap2.serialization.PropertyInfo[] |
PI_PROP_ARRAY |
private static org.ksoap2.serialization.PropertyInfo |
PI_userFirstname |
private static org.ksoap2.serialization.PropertyInfo |
PI_userID |
private static org.ksoap2.serialization.PropertyInfo |
PI_userNickname |
private static org.ksoap2.serialization.PropertyInfo |
PI_userPhoto |
private static org.ksoap2.serialization.PropertyInfo |
PI_userRole |
private static org.ksoap2.serialization.PropertyInfo |
PI_userSurname1 |
private static org.ksoap2.serialization.PropertyInfo |
PI_userSurname2 |
private static org.ksoap2.serialization.PropertyInfo |
PI_wsKey |
private String |
userFirstname
User name.
|
private String |
userID
User identifier.
|
private String |
userNickname
User nickname.
|
private String |
userPhoto
Full path where user's picture is stored.
|
private int |
userRole
User role. 1:guest 2: student 3: teacher
|
private String |
userSurname1
User first surname.
|
private String |
userSurname2
User last surname.
|
private String |
wsKey
Webservices session key.
|
Constructor and Description |
---|
User(long id,
String wsKey,
String userID,
String userNickname,
String userSurname1,
String userSurname2,
String userFirstname,
String userPhoto,
int userRole)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPhotoFileName()
Gets File name where user's picture is stored.
|
Object |
getProperty(int param) |
int |
getPropertyCount() |
void |
getPropertyInfo(int param,
Hashtable arg1,
org.ksoap2.serialization.PropertyInfo propertyInfo) |
String |
getUserFirstname()
Gets user name.
|
String |
getUserID()
Gets user identifier.
|
String |
getUserNickname()
Gets user nickname.
|
String |
getUserPhoto()
Gets Full path where user's picture is stored.
|
int |
getUserRole()
Gets User role.
|
String |
getUserSurname1()
Gets user first surname.
|
String |
getUserSurname2()
Gets user last surname.
|
String |
getWsKey()
Gets Webservices session key.
|
void |
setProperty(int param,
Object obj) |
void |
setUserFirstname(String userFirstname)
Sets user name.
|
void |
setUserID(String userID)
Sets user identifier.
|
void |
setUserNickname(String userNickname)
Sets user nickname.
|
void |
setUserPhoto(String userPhoto)
Sets Full path where user's picture is stored.
|
void |
setUserRole(int userRole)
Sets User role.
|
void |
setUserSurname1(String userSurname1)
Sets user first surname.
|
void |
setUserSurname2(String userSurname2)
Sets user last surname.
|
void |
setWsKey(String wsKey)
Sets Webservices session key.
|
private String wsKey
private String userID
private String userNickname
private String userSurname1
private String userSurname2
private String userFirstname
private String userPhoto
private int userRole
private static final org.ksoap2.serialization.PropertyInfo PI_wsKey
private static final org.ksoap2.serialization.PropertyInfo PI_userID
private static final org.ksoap2.serialization.PropertyInfo PI_userNickname
private static final org.ksoap2.serialization.PropertyInfo PI_userSurname1
private static final org.ksoap2.serialization.PropertyInfo PI_userSurname2
private static final org.ksoap2.serialization.PropertyInfo PI_userFirstname
private static final org.ksoap2.serialization.PropertyInfo PI_userPhoto
private static final org.ksoap2.serialization.PropertyInfo PI_userRole
private static org.ksoap2.serialization.PropertyInfo[] PI_PROP_ARRAY
public User(long id, String wsKey, String userID, String userNickname, String userSurname1, String userSurname2, String userFirstname, String userPhoto, int userRole)
id
- User code.wsKey
- Webservices session key.userID
- User identifier.userNickname
- User nickname.userSurname1
- User first surname.userSurname2
- User last surname.userFirstname
- User name.userPhoto
- Full path where user's picture is stored.userRole
- User role.public String getUserFirstname()
public void setUserFirstname(String userFirstname)
userFirstname
- User name.public String getUserID()
public void setUserID(String userID)
userID
- User identifier.public String getUserNickname()
public void setUserNickname(String userNickname)
userNickname
- User nickname.public String getUserSurname1()
public void setUserSurname1(String userSurname1)
userSurname1
- User first surname.public String getUserSurname2()
public void setUserSurname2(String userSurname2)
userSurname2
- User last surname.public String getUserPhoto()
public String getPhotoFileName()
public void setUserPhoto(String userPhoto)
userPhoto
- the userPhoto to setpublic int getUserRole()
public void setUserRole(int userRole)
userRole
- User role.public String getWsKey()
public void setWsKey(String wsKey)
wsKey
- Webservices session key.public Object getProperty(int param)
public int getPropertyCount()
public void getPropertyInfo(int param, Hashtable arg1, org.ksoap2.serialization.PropertyInfo propertyInfo)
public void setProperty(int param, Object obj)