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

com.activitystream.aspects.AffiliateAspect 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 AffiliateAspect extends AspectBase {
    private static final String ID = "affiliate.id";
    private static final String TYPE = "affiliate.type";

    public AffiliateAspect(String id) {
        aspectPropertyMap.put(ID, new AspectProperty(IsRequired.True, id));
        aspectPropertyMap.put(TYPE, new AspectProperty(IsRequired.False,null));
    }

    public AffiliateAspect type(AffiliateType type) {
        aspectPropertyMap.get(TYPE).value = type.getType();
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy