/*
 * Copyright (C) 2022 Inera AB (http://www.inera.se)
 *
 * This file is part of sklintyg (https://github.com/sklintyg).
 *
 * sklintyg is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * sklintyg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package se.inera.intyg.minaintyg.web.service.dto;

import static org.springframework.util.Assert.hasText;

public class UtlatandeRecipient {

    private final String id;
    private final String name;
    private final boolean trusted;

    public UtlatandeRecipient(String id, String name, boolean trusted) {
        hasText(id, "recipient id must not be empty");
        hasText(name, "recipient name must not be empty");
        this.id = id;
        this.name = name;
        this.trusted = trusted;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public boolean isTrusted() {
        return trusted;
    }
}
