package br.mp.mprj.portal.portlet.gestaomensagens.service.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author Henrique Simoes
 * @generated
 */
public class EmailDestinatarioSoap implements Serializable {
    private String _uuid;
    private long _emailDestinatarioId;
    private String _email;
    private long _grupoDestinatarioId;

    public EmailDestinatarioSoap() {
    }

    public static EmailDestinatarioSoap toSoapModel(EmailDestinatario model) {
        EmailDestinatarioSoap soapModel = new EmailDestinatarioSoap();

        soapModel.setUuid(model.getUuid());
        soapModel.setEmailDestinatarioId(model.getEmailDestinatarioId());
        soapModel.setEmail(model.getEmail());
        soapModel.setGrupoDestinatarioId(model.getGrupoDestinatarioId());

        return soapModel;
    }

    public static EmailDestinatarioSoap[] toSoapModels(
        EmailDestinatario[] models) {
        EmailDestinatarioSoap[] soapModels = new EmailDestinatarioSoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static EmailDestinatarioSoap[][] toSoapModels(
        EmailDestinatario[][] models) {
        EmailDestinatarioSoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new EmailDestinatarioSoap[models.length][models[0].length];
        } else {
            soapModels = new EmailDestinatarioSoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static EmailDestinatarioSoap[] toSoapModels(
        List<EmailDestinatario> models) {
        List<EmailDestinatarioSoap> soapModels = new ArrayList<EmailDestinatarioSoap>(models.size());

        for (EmailDestinatario model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new EmailDestinatarioSoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _emailDestinatarioId;
    }

    public void setPrimaryKey(long pk) {
        setEmailDestinatarioId(pk);
    }

    public String getUuid() {
        return _uuid;
    }

    public void setUuid(String uuid) {
        _uuid = uuid;
    }

    public long getEmailDestinatarioId() {
        return _emailDestinatarioId;
    }

    public void setEmailDestinatarioId(long emailDestinatarioId) {
        _emailDestinatarioId = emailDestinatarioId;
    }

    public String getEmail() {
        return _email;
    }

    public void setEmail(String email) {
        _email = email;
    }

    public long getGrupoDestinatarioId() {
        return _grupoDestinatarioId;
    }

    public void setGrupoDestinatarioId(long grupoDestinatarioId) {
        _grupoDestinatarioId = grupoDestinatarioId;
    }
}
