]> git.basschouten.com Git - openhab-addons.git/blob
ffe657e9505ec7a91f34c50520ec988d17d7b253
[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.qolsysiq.internal.client.dto.action;
14
15 /**
16  * An {@link ActionType.ARMING} type of {@link ArmingAction} message sent to the panel
17  *
18  * @author Dan Cunningham - Initial contribution
19  */
20 public class ArmingAction extends Action {
21     public ArmingActionType armingType;
22     public Integer partitionId;
23     public String usercode;
24
25     public ArmingAction(ArmingActionType armingType, Integer partitionId) {
26         this(armingType, "", partitionId, null);
27     }
28
29     public ArmingAction(ArmingActionType armingType, Integer partitionId, String usercode) {
30         this(armingType, "", partitionId, usercode);
31     }
32
33     public ArmingAction(ArmingActionType armingType, String token, Integer partitionId) {
34         this(armingType, token, partitionId, null);
35     }
36
37     public ArmingAction(ArmingActionType armingType, String token, Integer partitionId, String usercode) {
38         super(ActionType.ARMING, token);
39         this.armingType = armingType;
40         this.partitionId = partitionId;
41         this.usercode = usercode;
42     }
43 }