
com.activitystream.aspects.LocationAspect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
For a description please see https://github.com/activitystream/as-sdk-java
package com.activitystream.aspects;
public class LocationAspect extends AspectBase {
public static final String LOCATION_LATLONG = "geo_location.latlong";
public static final String LOCATION_TYPE = "geo_location.type";
public LocationAspect(String latlong) {
aspectPropertyMap.put(LOCATION_LATLONG, new AspectProperty(IsRequired.True));
aspectPropertyMap.put(LOCATION_TYPE, new AspectProperty(IsRequired.False));
aspectPropertyMap.get(LOCATION_LATLONG).value = latlong;
}
public LocationAspect type(String type) {
aspectPropertyMap.get(LOCATION_TYPE).value = type;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy