org.springframework.social.twitter.api
Class PlacePrototype
java.lang.Object
org.springframework.social.twitter.api.PlacePrototype
public class PlacePrototype
- extends java.lang.Object
Represents a new place that could be created.
This is the type returned from calls to GeoOperations.findSimilarPlaces(double, double, String)
.
It is the only type that can be given to GeoOperations.createPlace(PlacePrototype)
to create a new place.
This guarantees consistency between the query performed when finding similar places and when creating a new place so that the create token will be valid.
- Author:
- Craig Walls
Constructor Summary |
PlacePrototype(java.lang.String createToken,
double latitude,
double longitude,
java.lang.String name,
java.lang.String streetAddress,
java.lang.String containedWithin)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlacePrototype
public PlacePrototype(java.lang.String createToken,
double latitude,
double longitude,
java.lang.String name,
java.lang.String streetAddress,
java.lang.String containedWithin)
getLatitude
public double getLatitude()
getLongitude
public double getLongitude()
getName
public java.lang.String getName()
getStreetAddress
public java.lang.String getStreetAddress()
getContainedWithin
public java.lang.String getContainedWithin()
getCreateToken
public java.lang.String getCreateToken()