]> git.basschouten.com Git - openhab-addons.git/blob
2e43042b0fb4793f0ccd4e0b29f623d363aa189f
[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.sonos.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link SonosMusicService} is a datastructure to describe a Sonos music service
20  *
21  * @author Laurent Garnier - Initial contribution
22  */
23 @NonNullByDefault
24 public class SonosMusicService {
25
26     private String id;
27     private String name;
28     private @Nullable Integer type;
29
30     public SonosMusicService(String id, String name, @Nullable Integer type) {
31         this.id = id;
32         this.name = name;
33         this.type = type;
34     }
35
36     public SonosMusicService(String id, String name) {
37         this(id, name, null);
38     }
39
40     public String getId() {
41         return id;
42     }
43
44     public String getName() {
45         return name;
46     }
47
48     public @Nullable Integer getType() {
49         return type;
50     }
51
52     public void setType(Integer type) {
53         this.type = type;
54     }
55 }