001package net.filebot.web;
002
003import java.io.Serializable;
004import java.time.Instant;
005
006public class Extra implements Serializable {
007
008        protected String type;
009        protected String name;
010        protected String site;
011        protected String key;
012        protected String language;
013        protected Long size;
014        protected Boolean official;
015        protected Instant date;
016
017        public Extra() {
018                // used by serializer
019        }
020
021        public Extra(String type, String name, String site, String key, String language, Long size, Boolean official, Instant date) {
022                this.type = type;
023                this.name = name;
024                this.site = site;
025                this.key = key;
026                this.language = language;
027                this.size = size;
028                this.official = official;
029                this.date = date;
030        }
031
032        public String getType() {
033                return type;
034        }
035
036        public String getName() {
037                return name;
038        }
039
040        public String getSite() {
041                return site;
042        }
043
044        public String getKey() {
045                return key;
046        }
047
048        public String getLanguage() {
049                return language;
050        }
051
052        public Long getSize() {
053                return size;
054        }
055
056        public Boolean isOfficial() {
057                return official;
058        }
059
060        public Instant getDate() {
061                return date;
062        }
063
064        @Override
065        public String toString() {
066                return "[" + name + " | " + type + " | " + site + "::" + key + "]";
067        }
068
069}