GraphPlace
最新版本的 SDK 已不再提供此課程。

Provides a strongly-typed representation of a Place as defined by the Graph API.

Note that this interface is intended to be used with GraphObject.Factory and not implemented directly.

實作GraphObject
套件:model
執行個體方法
getId()

Returns the ID of the place.

public String getId()
Returns
The ID of the place
setId(String)

Sets the ID of the place.

public void setId(String id)
參數說明
idThe ID of the place
getName()

Returns the name of the place.

public String getName()
Returns
The name of the place
setName(String)

Sets the name of the place.

public void setName(String name)
參數說明
nameThe name of the place
getCategory()

Returns the category of the place.

public String getCategory()
Returns
The category of the place
setCategory(String)

Sets the category of the place.

public void setCategory(String category)
參數說明
categoryThe category of the place
getLocation()

Returns the location of the place.

public GraphLocation getLocation()
Returns
The location of the place
setLocation(GraphLocation)

Sets the location of the place.

public void setLocation(GraphLocation location)
參數說明
locationThe location of the place