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

com.flagsense.model.FSUser Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy