org.springframework.social.twitter.api
Class PlacePrototype

java.lang.Object
  extended by org.springframework.social.twitter.api.PlacePrototype

public class PlacePrototype
extends 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.


Constructor Summary
PlacePrototype(String createToken, double latitude, double longitude, String name, String streetAddress, String containedWithin)
           
 
Method Summary
 String getContainedWithin()
           
 String getCreateToken()
           
 double getLatitude()
           
 double getLongitude()
           
 String getName()
           
 String getStreetAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacePrototype

public PlacePrototype(String createToken,
                      double latitude,
                      double longitude,
                      String name,
                      String streetAddress,
                      String containedWithin)
Method Detail

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getName

public String getName()

getStreetAddress

public String getStreetAddress()

getContainedWithin

public String getContainedWithin()

getCreateToken

public String getCreateToken()