]> git.basschouten.com Git - openhab-addons.git/blob
ee1ae34e7fe5bf3b877914405838addd6dbec81b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.spotify.internal.api.model;
14
15 import java.util.List;
16
17 /**
18  * Spotify Web Api Device data class.
19  *
20  * @author Andreas Stenlund - Initial contribution
21  * @author Hilbrand Bouwkamp - Moved to it's own class
22  */
23 public class Item {
24
25     private Album album;
26     private List<Artist> artists;
27     private List<String> availableMarkets;
28     private Integer discNumber;
29     private long durationMs;
30     private boolean explicit;
31     private ExternalIds externalIds;
32     private ExternalUrl externalUrls;
33     private String href;
34     private String id;
35     private String name;
36     private Integer popularity;
37     private String previewUrl;
38     private Integer trackNumber;
39     private String type;
40     private String uri;
41
42     public Album getAlbum() {
43         return album;
44     }
45
46     public List<Artist> getArtists() {
47         return artists;
48     }
49
50     public List<String> getAvailableMarkets() {
51         return availableMarkets;
52     }
53
54     public Integer getDiscNumber() {
55         return discNumber;
56     }
57
58     public long getDurationMs() {
59         return durationMs;
60     }
61
62     public boolean isExplicit() {
63         return explicit;
64     }
65
66     public ExternalIds getExternalIds() {
67         return externalIds;
68     }
69
70     public ExternalUrl getExternalUrls() {
71         return externalUrls;
72     }
73
74     public String getHref() {
75         return href;
76     }
77
78     public String getId() {
79         return id;
80     }
81
82     public String getName() {
83         return name;
84     }
85
86     public Integer getPopularity() {
87         return popularity;
88     }
89
90     public String getPreviewUrl() {
91         return previewUrl;
92     }
93
94     public Integer getTrackNumber() {
95         return trackNumber;
96     }
97
98     public String getType() {
99         return type;
100     }
101
102     public String getUri() {
103         return uri;
104     }
105 }