目录

City

Class Info

public class City implements Parcelable

City information in WeatherSituation, including the city code, province name, time zone, and city/district name.

Public Method Summary

Qualifier and Type

Method Name

String

getCityCode()

String

getProvinceName()

String

getTimeZone()

String

getName()

Public Methods

[h2]getCityCode

Method

public String getCityCode()

Obtains the code used in Awareness Kit to identify the state/province, city, county, and town in the world.

Returns

Type

Description

String

Code used in Awareness Kit to identify the state/province, city, county, and town in the world.

[h2]getProvinceName

Method

public String getProvinceName()

Obtains the province name, which may be set to null.

Returns

Type

Description

String

Province name, which may be set to null.

[h2]getTimeZone

Method

public String getTimeZone()

Obtains the time zone of the city in Alson format. Example: Asia/shanghai

Returns

Type

Description

String

Time zone of the city in Alson format. Example: Asia/shanghai

[h2]getName

Method

public String getName()

Obtains the city/district/town name.

Returns

Type

Description

String

City/district/town name.