001/* 
002 * Copyright (C) 2016 Hobrasoft s.r.o.
003 *
004 * This program is free software: you can redistribute it and/or modify
005 * it under the terms of the GNU Affero General Public License as published by
006 * the Free Software Foundation, either version 3 of the License, or
007 * (at your option) any later version.
008 *
009 * This program is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012 * GNU Affero General Public License for more details.
013 *
014 * You should have received a copy of the GNU Affero General Public License
015 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
016 */
017package cz.hobrasoft.pdfmu.jackson;
018
019import com.fasterxml.jackson.annotation.JsonPropertyDescription;
020import java.util.List;
021import java.util.Objects;
022
023/**
024 *
025 * @author <a href="mailto:filip.bartek@hobrasoft.cz">Filip Bartek</a>
026 */
027public class SignatureDisplay extends Result {
028
029    @JsonPropertyDescription("Number of revisions of the document")
030    public Integer nRevisions;
031
032    @JsonPropertyDescription("Signatures")
033    public List<Signature> signatures;
034
035    @Override
036    public boolean equals(Object obj) {
037        if (this == obj) {
038            return true;
039        }
040        if (obj == null) {
041            return false;
042        }
043        if (getClass() != obj.getClass()) {
044            return false;
045        }
046        final SignatureDisplay other = (SignatureDisplay) obj;
047        if (!Objects.equals(this.nRevisions, other.nRevisions)) {
048            return false;
049        }
050        if (!Objects.equals(this.signatures, other.signatures)) {
051            return false;
052        }
053        return true;
054    }
055
056}