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

com.sarbacane.api.Contacts.SBSmsContact Maven / Gradle / Ivy

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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy