]> git.basschouten.com Git - openhab-addons.git/blob
7090842d8335620189d271892aba8e3ba16fb369
[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.millheat.internal.dto;
14
15 import org.openhab.binding.millheat.internal.model.Home;
16 import org.openhab.binding.millheat.internal.model.Room;
17
18 /**
19  * This DTO class wraps the set room temp request
20  *
21  * @see SetDeviceTempRequest
22  * @author Arne Seime - Initial contribution
23  */
24 public class SetRoomTempRequest implements AbstractRequest {
25     public final long roomId;
26     public int comfortTemp;
27     public int sleepTemp;
28     public int awayTemp;
29     public final int homeType;
30
31     public SetRoomTempRequest(final Home home, final Room room) {
32         roomId = room.getId();
33         homeType = home.getType();
34         comfortTemp = room.getComfortTemp();
35         sleepTemp = room.getSleepTemp();
36         awayTemp = room.getAwayTemp();
37     }
38
39     @Override
40     public String getRequestUrl() {
41         return "changeRoomModeTempInfo";
42     }
43 }