Package com.sportdataapi.data
Class Team
java.lang.Object
com.sportdataapi.data.Team
public class Team
extends java.lang.Object
Team object for Sportdataapi.com.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description Team()
Constructor. -
Method Summary
Modifier and Type Method Description Country
getCountry()
Returns the country.int
getId()
Returns the id.java.lang.String
getLogo()
Returns the logo.java.lang.String
getName()
Returns the name.java.lang.String
getShortCode()
Returns the shortCode.void
setCountry(Country country)
Sets the country.void
setId(int id)
Sets the id.void
setLogo(java.lang.String logo)
Sets the logo.void
setName(java.lang.String name)
Sets the name.void
setShortCode(java.lang.String shortCode)
Sets the shortCode.java.lang.String
toString()
-
Constructor Details
-
Team
public Team()Constructor.
-
-
Method Details
-
getId
public int getId()Returns the id.- Returns:
- the id
-
setId
public void setId(int id)Sets the id.- Parameters:
id
- the id to set
-
getName
public java.lang.String getName()Returns the name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)Sets the name.- Parameters:
name
- the name to set
-
getShortCode
public java.lang.String getShortCode()Returns the shortCode.- Returns:
- the shortCode
-
setShortCode
public void setShortCode(java.lang.String shortCode)Sets the shortCode.- Parameters:
shortCode
- the shortCode to set
-
getLogo
public java.lang.String getLogo()Returns the logo.- Returns:
- the logo
-
setLogo
public void setLogo(java.lang.String logo)Sets the logo.- Parameters:
logo
- the logo to set
-
getCountry
Returns the country.- Returns:
- the country
-
setCountry
Sets the country.- Parameters:
country
- the country to set
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-