All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.activitystream.aspects.LocationAspect Maven / Gradle / Ivy

Go to download

For a description please see https://github.com/activitystream/as-sdk-java

There is a newer version: 0.5.8
Show newest version
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