public class DemographicsData extends Object
Constructor and Description |
---|
DemographicsData()
Creates new demographics data object with default parameters.
|
DemographicsData(int age,
Gender gender,
String geoLocation)
Creates demographics data object from existing data.
|
Modifier and Type | Method and Description |
---|---|
int |
getAge()
Get the age of the player.
|
Gender |
getGender()
Get the gender of the player.
|
String |
getGeoLocation()
Get the geolocation string.
|
void |
setAge(int age)
Set the age of the player.
|
void |
setGender(Gender gender)
Set the gender of the player.
|
void |
setGeoLocation(String geoLocation)
Set the Geolocation of the player.
|
String |
toString() |
public DemographicsData(int age, Gender gender, String geoLocation)
age
- Age, -1 if unknowngender
- Gender Enum.geoLocation
- Name of the geolocation. Phrase.DEM_UNKNOWN if not
known.public DemographicsData()
public int getAge()
public Gender getGender()
public String getGeoLocation()
public void setAge(int age)
age
- 0 to 99, -1 if not known.public void setGender(Gender gender)
gender
- Gender Enum. UNKNOWN if not known.public void setGeoLocation(String geoLocation)
geoLocation
- Country name, eg. Republic of Kongo, theLoginHandling
Copyright © 2017. All rights reserved.