Persoenliche Mediazentrale
ulrich
2021-04-24 94b1c2f60bde70d681b4bf8a5cd04b86e9ccf4ed
commit | author | age
86bbf7 1 /*
94b1c2 2   Tango - Personal Media Center
90d368 3   Copyright (C) 2021  Ulrich Hilger
U 4
5   This program is free software: you can redistribute it and/or modify
6   it under the terms of the GNU Affero General Public License as
7   published by the Free Software Foundation, either version 3 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU Affero General Public License for more details.
14
15   You should have received a copy of the GNU Affero General Public License
16   along with this program.  If not, see <https://www.gnu.org/licenses/>.
86bbf7 17  */
94b1c2 18 package de.uhilger.tango.store;
86bbf7 19
d4d091 20 import java.util.Objects;
U 21
86bbf7 22 /**
U 23  *
24  * @author ulrich
25  */
26 public class StorageFile {
822ddf 27   
U 28   public static final String TYP_FOLDER = "folder";
29   public static final String TYP_FILE = "file";
7c22a2 30   public static final String TYP_AUDIO = "audio";
U 31   public static final String TYP_VIDEO = "video";
90d368 32   public static final String TYP_KATALOG = "katalog";
822ddf 33   
86bbf7 34   private String name;
U 35   private String typ;
37eadf 36   private String interpret = "";
U 37   private String titelAnzName = "";
38   private String album  = "";
86bbf7 39
U 40   public String getName() {
41     return name;
42   }
43
44   public void setName(String name) {
45     this.name = name;
46   }
47
48   public String getTyp() {
49     return typ;
50   }
51
52   public void setTyp(String typ) {
53     this.typ = typ;
54   }
37eadf 55
U 56   public String getInterpret() {
57     return interpret;
58   }
59
60   public void setInterpret(String ip) {
61     if(ip != null) {
62       this.interpret = ip;
63     }
64   }
65
66   public String getTitelAnzName() {
67     return titelAnzName;
68   }
69
70   public void setTitelAnzName(String tan) {
71     if(tan != null) {
b56bb3 72       this.titelAnzName = tan;
37eadf 73     }
U 74   }
75
76   public String getAlbum() {
77     return album;
78   }
79
80   public void setAlbum(String a) {
81     if(a != null) {
82       this.album = a;
83     }
84   }
85
d4d091 86   @Override
U 87   public String toString() {
88     return "StorageFile{" + "name=" + name + '}';
89   }
90
91   @Override
92   public int hashCode() {
93     int hash = 3;
94     return hash;
95   }
96
97   @Override
98   public boolean equals(Object obj) {
99     if (this == obj) {
100       return true;
101     }
102     if (obj == null) {
103       return false;
104     }
105     if (getClass() != obj.getClass()) {
106       return false;
107     }
108     final StorageFile other = (StorageFile) obj;
109     if (!Objects.equals(this.name, other.name)) {
110       return false;
111     }
112     return true;
113   }
114
115   
86bbf7 116   
U 117 }