
com.activitystream.aspects.AffiliateAspect 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 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