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