|
| 1 | +/* |
| 2 | + * CDPrintable: A program that prints labels with track listings for your CD cases. |
| 3 | + * Copyright (C) 2025 Alexander McLean |
| 4 | + * |
| 5 | + * This source code is licensed under the GNU General Public License v3.0 |
| 6 | + * found in the LICENSE file in the root directory of this source tree. |
| 7 | + * |
| 8 | + * This is a class that stores data from the JSON reader. |
| 9 | + */ |
| 10 | + |
| 11 | +package com.CDPrintable.MusicBrainzResources; |
| 12 | + |
| 13 | +public class MusicBrainzCDStub { |
| 14 | + public String discID; |
| 15 | + public String discTitle; |
| 16 | + public String discArtist; |
| 17 | + public int trackCount; |
| 18 | + public int releaseYear; |
| 19 | + |
| 20 | + public MusicBrainzCDStub(String discID, String discTitle, String discArtist, int trackCount, int releaseYear) { |
| 21 | + this.discID = discID; |
| 22 | + this.discTitle = discTitle; |
| 23 | + this.discArtist = discArtist; |
| 24 | + this.trackCount = trackCount; |
| 25 | + this.releaseYear = releaseYear; |
| 26 | + } |
| 27 | + |
| 28 | + public String getDiscTitle() { |
| 29 | + return discTitle; |
| 30 | + } |
| 31 | + |
| 32 | + public void setDiscTitle(String discTitle) { |
| 33 | + this.discTitle = discTitle; |
| 34 | + } |
| 35 | + |
| 36 | + public String getDiscArtist() { |
| 37 | + return discArtist; |
| 38 | + } |
| 39 | + |
| 40 | + public void setDiscArtist(String discArtist) { |
| 41 | + this.discArtist = discArtist; |
| 42 | + } |
| 43 | + |
| 44 | + public int getTrackCount() { |
| 45 | + return trackCount; |
| 46 | + } |
| 47 | + |
| 48 | + public void setTrackCount(int trackCount) { |
| 49 | + this.trackCount = trackCount; |
| 50 | + } |
| 51 | + |
| 52 | + public int getReleaseYear() { |
| 53 | + return releaseYear; |
| 54 | + } |
| 55 | + |
| 56 | + public void setReleaseYear(int releaseYear) { |
| 57 | + this.releaseYear = releaseYear; |
| 58 | + } |
| 59 | + |
| 60 | + public String getDiscID() { |
| 61 | + return discID; |
| 62 | + } |
| 63 | + |
| 64 | + public void setDiscID(String discID) { |
| 65 | + this.discID = discID; |
| 66 | + } |
| 67 | +} |
0 commit comments