Package com.nnamo.models
Class AgencyModel
java.lang.Object
com.nnamo.models.AgencyModel
Represents a GTFS agency entity.
Used with ORMLite for database persistence.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by ORMLite.AgencyModel
(String id, String name, String timezone, String url) Constructs an AgencyModel with required fields. -
Method Summary
-
Constructor Details
-
AgencyModel
public AgencyModel()Empty constructor required by ORMLite. -
AgencyModel
Constructs an AgencyModel with required fields.- Parameters:
id
- the unique identifiername
- the agency nametimezone
- the agency timezoneurl
- the agency URL
-
-
Method Details
-
getId
Gets the agency ID.- Returns:
- the agency ID
-
getName
Gets the agency name.- Returns:
- the agency name
-
getUrl
Gets the agency URL.- Returns:
- the agency URL
-
getTimezone
Gets the agency timezone.- Returns:
- the agency timezone
-
getPhone
Gets the agency phone number.- Returns:
- the agency phone number, or null if not set
-
getEmail
Gets the agency email address.- Returns:
- the agency email address, or null if not set
-