
com.github.segmentio.models.PropertyPayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics Show documentation
Show all versions of analytics Show documentation
The analytics API you've always wanted.
The newest version!
package com.github.segmentio.models;
import com.google.common.collect.ImmutableMap;
/**
* A payload that has a list of properties
*
* @author jpollak
*
*/
public class PropertyPayload extends BasePayload {
private ImmutableMap properties;
public PropertyPayload(String type,
Props properties,
Options options) {
super(type, options);
if (properties == null) properties = new Props();
this.properties = ImmutableMap.copyOf(properties);
}
public ImmutableMap getProperties() {
return properties;
}
public void setProperties(Props properties) {
this.properties = ImmutableMap.copyOf(properties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy