com.symphony.bdk.bot.sdk.notification.model.NotificationRequest Maven / Gradle / Ivy
package com.symphony.bdk.bot.sdk.notification.model;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
/**
* Notification request
*
* @author Marcus Secato
*
*/
@Data
public class NotificationRequest {
private Map headers;
private String payload;
private String identifier;
private String streamId;
private Map attributes;
public NotificationRequest(Map headers,
String payload, String identifier) {
this.headers = headers;
this.payload = payload;
this.identifier = identifier;
this.streamId = identifier;
this.attributes = new HashMap<>();
}
public void setAttribute(String attributeName, Object attributeValue) {
attributes.put(attributeName, attributeValue);
}
public Object getAttribute(String attributeName) {
return attributes.get(attributeName);
}
}