2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.kodi.internal.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * Class representing Kodi system properties (https://kodi.wiki/view/JSON-RPC_API/v9#System.Property.Value)
22 * @author Christoph Weitkamp - Initial contribution
25 public class KodiSystemProperties {
26 @SerializedName("canhibernate")
27 private boolean canHibernate;
28 @SerializedName("canreboot")
29 private boolean canReboot;
30 @SerializedName("cansuspend")
31 private boolean canSuspend;
32 @SerializedName("canshutdown")
33 private boolean canShutdown;
35 public boolean canHibernate() {
39 public void setCanHibernate(boolean canHibernate) {
40 this.canHibernate = canHibernate;
43 public boolean canReboot() {
47 public void setCanReboot(boolean canReboot) {
48 this.canReboot = canReboot;
51 public boolean canSuspend() {
55 public void setCansuspend(boolean canSuspend) {
56 this.canSuspend = canSuspend;
59 public boolean canShutdown() {
63 public void setCanShutdown(boolean canShutdown) {
64 this.canShutdown = canShutdown;
67 public boolean canQuit() {
68 return !canHibernate && !canReboot && !canShutdown && !canSuspend;