com.github.muratkaragozgil.netmera4j.model.notification.SingleMessage 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.notification;
import lombok.*;
import java.util.HashMap;
import java.util.Map;
/**
* @author Murat Karagözgil
*/
@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@RequiredArgsConstructor
public class SingleMessage extends Message {
private Map params;
public SingleMessage addParameter(String key, Object value) {
if (params == null) {
params = new HashMap<>(1);
}
params.put(key, value);
return this;
}
}