]> git.basschouten.com Git - openhab-addons.git/blob
9d3591bd46cdae126ef8ae3d7d6ec9bc68ea9094
[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.smsmodem.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.Thing;
17 import org.openhab.core.thing.ThingTypeUID;
18
19 /**
20  * The {@link SMSModemBindingConstants} class defines common constants, which are
21  * used across the whole binding.
22  *
23  * @author Gwendal ROULLEAU - Initial contribution
24  */
25 @NonNullByDefault
26 public class SMSModemBindingConstants {
27
28     private static final String BINDING_ID = "smsmodem";
29
30     // List of all Thing Type UIDs
31     public static final ThingTypeUID SMSCONVERSATION_THING_TYPE = new ThingTypeUID(BINDING_ID, "smsconversation");
32     public static final ThingTypeUID SMSMODEMBRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID, "smsmodembridge");
33     public static final ThingTypeUID SMSMODEMREMOTEBRIDGE_THING_TYPE = new ThingTypeUID(BINDING_ID,
34             "smsmodemremotebridge");
35
36     // List of all Channel ids
37     public static final String CHANNEL_RECEIVED = "receive";
38     public static final String CHANNEL_SEND = "send";
39     public static final String CHANNEL_DELIVERYSTATUS = "deliverystatus";
40     public static final String CHANNEL_TRIGGER_MODEM_RECEIVE = "receivetrigger";
41
42     // parameter
43     public static final String SMSCONVERSATION_PARAMETER_RECIPIENT = "recipient";
44
45     // List of all properties
46     public static final String PROPERTY_MANUFACTURER = Thing.PROPERTY_VENDOR;
47     public static final String PROPERTY_MODEL = Thing.PROPERTY_MODEL_ID;
48     public static final String PROPERTY_SWVERSION = Thing.PROPERTY_FIRMWARE_VERSION;
49     public static final String PROPERTY_SERIALNO = Thing.PROPERTY_SERIAL_NUMBER;
50     public static final String PROPERTY_IMSI = "imsi";
51     public static final String PROPERTY_RSSI = "rssi";
52     public static final String PROPERTY_MODE = "mode";
53     public static final String PROPERTY_TOTALSENT = "sent";
54     public static final String PROPERTY_TOTALFAILED = "failed";
55     public static final String PROPERTY_TOTALRECEIVED = "received";
56     public static final String PROPERTY_TOTALFAILURE = "failure";
57 }