com.sarbacane.api.Contacts.SBSmsContact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sarbacane-sdk Show documentation
Show all versions of sarbacane-sdk Show documentation
Sarbacane SDK to send e-mail and text messages (sms)
The newest version!
package com.sarbacane.api.Contacts;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sarbacane.api.Lists.ListsManager;
import java.util.HashMap;
import java.util.Map;
@JsonIgnoreProperties({"listId", "request"})
public class SBSmsContact extends ListsManager {
public String id = null;
public String listId = null;
public String identifier = null;
public Map attributes = new HashMap();
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getListId() {
return listId;
}
public void setListId(String listId) {
this.listId = listId;
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public Map getAttributes() {
return attributes;
}
public void setAttributes(Map attributes) {
this.attributes = attributes;
}
@JsonIgnore
public void setFieldValue(String fieldId, String fieldValue) {
this.attributes.put(fieldId, fieldValue);
}
@Override
public String toString() {
return "PTContact{" +
"id='" + id + '\'' +
//", listId='" + listId + '\'' +
", identifier='" + identifier + '\'' +
", attributes=" + attributes +
'}';
}
}