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.smsmodem.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.Thing;
17 import org.openhab.core.thing.ThingTypeUID;
20 * The {@link SMSModemBindingConstants} class defines common constants, which are
21 * used across the whole binding.
23 * @author Gwendal ROULLEAU - Initial contribution
26 public class SMSModemBindingConstants {
28 private static final String BINDING_ID = "smsmodem";
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");
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";
43 public static final String SMSCONVERSATION_PARAMETER_RECIPIENT = "recipient";
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";