]> git.basschouten.com Git - openhab-addons.git/blob
de5ffa82d4441483754fa21d47bc834c34cc3368
[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.hue.internal.api.dto.clip1;
14
15 /**
16  * Details of a bridge firmware update.
17  *
18  * @author Q42 - Initial contribution
19  * @author Denis Dudnik - moved Jue library source code inside the smarthome Hue binding
20  */
21 public class SoftwareUpdate {
22     private int updatestate;
23     private String url;
24     private String text;
25     private boolean notify;
26
27     /**
28      * Returns the state of the update.
29      *
30      * <p>
31      * Actual meaning currently undocumented
32      *
33      * @return state of update
34      */
35     public int getUpdateState() {
36         return updatestate;
37     }
38
39     /**
40      * Returns the url of the changelog.
41      *
42      * @return changelog url
43      */
44     public String getUrl() {
45         return url;
46     }
47
48     /**
49      * Returns a description of the update.
50      *
51      * @return update description
52      */
53     public String getText() {
54         return text;
55     }
56
57     /**
58      * Returns if there will be a notification about this update.
59      *
60      * @return true for notification, false otherwise
61      */
62     public boolean isNotified() {
63         return notify;
64     }
65 }