com.flagsense.model.FSUser 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
Java SDK for consuming flagsense services
package com.flagsense.model;
import java.util.HashMap;
import java.util.Map;
public class FSUser {
private String userId;
private Map attributes;
public FSUser(String userId, Map attributes) {
this.userId = userId;
this.attributes = attributes;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public Map getAttributes() {
return attributes;
}
public void setAttributes(Map attributes) {
this.attributes = attributes;
}
public void addAttribute(String key, Object value) {
if (key == null)
return;
if (this.attributes == null)
this.attributes = new HashMap<>();
this.attributes.put(key, value);
}
}