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.sensibo.internal.dto.setacstateproperty;
15 import org.openhab.binding.sensibo.internal.dto.AbstractRequest;
18 * All classes in the ..binding.sensibo.dto are data transfer classes used by the GSON mapper. This class reflects a
19 * part of a request/response data structure.
21 * @author Arne Seime - Initial contribution.
23 public class SetAcStatePropertyRequest extends AbstractRequest {
24 public transient String podId; // Transient fields are ignored by gson
25 public transient String property;
26 public Object newValue;
28 public SetAcStatePropertyRequest(String podId, String property, Object value) {
30 this.property = property;
31 this.newValue = value;
35 public String getRequestUrl() {
36 return String.format("/v2/pods/%s/acStates/%s", podId, property);
40 public String getMethod() {