| Package | com.yahoo.webapis.upcoming |
| Class | public class Metro |
| Inheritance | Metro flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| code : String
Upcoming.org Metro area code
| Metro | ||
| id : Number
Upcoming.org Metro area identification number
| Metro | ||
| name : String
Upcoming.org Metro area name
| Metro | ||
| parent_service : UpcomingService
Defines the parent UpcomingService for this Metro (used to access the token and API key)
| Metro | ||
| state : State
The state in which the Metro area is located
| Metro | ||
| Method | Defined by | ||
|---|---|---|---|
|
Metro class constructor
| Metro | ||
|
update(_id:Number):void
This method updates the data fields in the specific instance of Metro
by the ID number.
| Metro | ||
| code | property |
public var code:StringUpcoming.org Metro area code
| id | property |
public var id:NumberUpcoming.org Metro area identification number
| name | property |
public var name:StringUpcoming.org Metro area name
| parent_service | property |
public var parent_service:UpcomingServiceDefines the parent UpcomingService for this Metro (used to access the token and API key)
| state | property |
public var state:StateThe state in which the Metro area is located
| Metro | () | constructor |
public function Metro(_parent_service:UpcomingService, _id:Number, _name:String, _code:String, _state:State)Metro class constructor
Parameters_parent_service:UpcomingService — An UpcomingService with an instantiated token and API key.
|
|
_id:Number — The Metro area ID
|
|
_name:String — Metro area name
|
|
_code:String — Metro area code
|
|
_state:State — The state in which the Metro area is located
|
| update | () | method |
public function update(_id:Number):void
This method updates the data fields in the specific instance of Metro
by the ID number. If the id property is already filled in,
then no argument needs to be passed. Otherwise, pass the Metro's
Upcoming.org identification number.
When the update completes, the Metro class will dispatch an
UpcomingResultEvent.METRO_GET_INFO event.
_id:Number — The metro's Upcoming.org identification number, if
none is filled in.
|