Packagecom.yahoo.webapis.upcoming
Classpublic class Country
InheritanceCountry Inheritance flash.events.EventDispatcher

Yahoo! Upcoming.org API Country class. This class is used to hold information about countries in which Upcoming events take place.



Public Properties
 PropertyDefined by
  code : String
Country code (on Upcoming.org)
Country
  id : Number
Country's Upcoming.org identification number
Country
  name : String
Country name
Country
  parent_service : UpcomingService
Defines the parent UpcomingService for this country (used to access the token and API key)
Country
Public Methods
 MethodDefined by
  
Country(_parent_service:UpcomingService, _id:Number, _name:String, _code:String)
Country class constructor
Country
  
update(_id:Number):void
This method updates the data in the specific instance of Country by the ID number.
Country
Property detail
codeproperty
public var code:String

Country code (on Upcoming.org)

idproperty 
public var id:Number

Country's Upcoming.org identification number

nameproperty 
public var name:String

Country name

parent_serviceproperty 
public var parent_service:UpcomingService

Defines the parent UpcomingService for this country (used to access the token and API key)

Constructor detail
Country()constructor
public function Country(_parent_service:UpcomingService, _id:Number, _name:String, _code:String)

Country class constructor

Parameters
_parent_service:UpcomingService — An UpcomingService with an instantiated token and API key.
 
_id:Number — Country's Upcoming.org identification number
 
_name:String — Country's name
 
_code:String — Country's code
Method detail
update()method
public function update(_id:Number):void

This method updates the data in the specific instance of Country by the ID number. If the id property is already filled in, then no argument needs to be passed. Otherwise, pass the country's Upcoming.org identification number.

When the update completes, the country class will dispatch an UpcomingResultEvent.COUNTRY_GET_INFO event.

Parameters
_id:Number — The country's Upcoming.org identification number, if none is filled in.