Modifier and Type | Class and Description |
---|---|
static class |
Team.Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Modifier and Type | Field and Description |
---|---|
static Team.Companion |
Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Constructor and Description |
---|
Team(int id,
java.lang.String name,
java.lang.String shortName,
java.lang.String abbreviation,
java.lang.String iconSvg,
java.lang.String iconPng)
Model class that models a Team
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
:
|
java.lang.String |
component2()
:
|
java.lang.String |
component3()
:
|
java.lang.String |
component4()
:
|
java.lang.String |
component5()
:
|
java.lang.String |
component6()
:
|
Team |
copy(int id,
java.lang.String name,
java.lang.String shortName,
java.lang.String abbreviation,
java.lang.String iconSvg,
java.lang.String iconPng)
Model class that models a Team
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getAbbreviation()
:
|
java.lang.String |
getIconPng()
:
|
java.lang.String |
getIconSvg()
:
|
int |
getId()
:
|
java.lang.String |
getName()
:
|
java.lang.String |
getShortName()
:
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Converts the model object into a JSON object
|
java.lang.String |
toString() |
public static Team.Companion Companion
Companion object that implements static methods to generate the model using a JSONObject.
public Team(int id, java.lang.String name, java.lang.String shortName, java.lang.String abbreviation, java.lang.String iconSvg, java.lang.String iconPng)
Model class that models a Team
id
- : The database ID of the teamname
- : The full name of the teamshortName
- : A shortened name of the teamabbreviation
- : A 3-letter abbreviation for the teamiconSvg
- : A URL to an SVG image of the team's logoiconPng
- : A URL to a PNG image of the team's logoid
- : The database ID of the teamname
- : The full name of the teamshortName
- : A shortened name of the teamabbreviation
- : A 3-letter abbreviation for the teamiconSvg
- : A URL to an SVG image of the team's logoiconPng
- : A URL to a PNG image of the team's logopublic org.json.JSONObject toJson()
Converts the model object into a JSON object
public int getId()
:
The database ID of the team
public java.lang.String getName()
:
The full name of the team
public java.lang.String getShortName()
:
A shortened name of the team
public java.lang.String getAbbreviation()
:
A 3-letter abbreviation for the team
public java.lang.String getIconSvg()
:
A URL to an SVG image of the team's logo
public java.lang.String getIconPng()
:
A URL to a PNG image of the team's logo
public int component1()
:
The database ID of the team
public java.lang.String component2()
:
The full name of the team
public java.lang.String component3()
:
A shortened name of the team
public java.lang.String component4()
:
A 3-letter abbreviation for the team
public java.lang.String component5()
:
A URL to an SVG image of the team's logo
public java.lang.String component6()
:
A URL to a PNG image of the team's logo
public Team copy(int id, java.lang.String name, java.lang.String shortName, java.lang.String abbreviation, java.lang.String iconSvg, java.lang.String iconPng)
Model class that models a Team
id
- : The database ID of the teamname
- : The full name of the teamshortName
- : A shortened name of the teamabbreviation
- : A 3-letter abbreviation for the teamiconSvg
- : A URL to an SVG image of the team's logoiconPng
- : A URL to a PNG image of the team's logopublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)