com.github.muratkaragozgil.netmera4j.model.device.UserAndProfileAttributeMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netmera4j Show documentation
Show all versions of netmera4j Show documentation
A pleasant and complete Java wrapper for the Netmera Rest Api!
package com.github.muratkaragozgil.netmera4j.model.device;
import com.github.muratkaragozgil.netmera4j.util.NotEmpty;
import lombok.*;
import java.util.HashMap;
import java.util.Map;
/**
* @author Murat Karagözgil
*/
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class UserAndProfileAttributeMap {
@NotEmpty
private String extId;
@NotEmpty
private Map profile;
public void addProfileAttribute(String key, Object value) {
if (profile == null) {
profile = new HashMap<>();
}
profile.put(key, value);
}
}