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.feed.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
19 * The {@link FeedBindingConstants} class defines common constants, which are
20 * used across the whole binding.
22 * @author Svilen Valkanov - Initial contribution
23 * @author Juergen Pabel - Added enclosure channel
26 public class FeedBindingConstants {
28 public static final String BINDING_ID = "feed";
30 // List of all Thing Type UIDs
31 public static final ThingTypeUID FEED_THING_TYPE_UID = new ThingTypeUID("feed", "feed");
33 // List of all Channel IDs
35 * Contains the published date of the last feed entry.
37 public static final String CHANNEL_LATEST_PUBLISHED_DATE = "latest-date";
40 * Contains the title of the last feed entry.
42 public static final String CHANNEL_LATEST_TITLE = "latest-title";
45 * Contains the description of the last feed entry.
47 public static final String CHANNEL_LATEST_DESCRIPTION = "latest-description";
50 * Contains the link to the last feed entry.
52 public static final String CHANNEL_LATEST_LINK = "latest-link";
55 * Contains the enclosure link to the last feed entry.
57 public static final String CHANNEL_LATEST_ENCLOSURE = "latest-enclosure";
60 * Description of the feed.
62 public static final String CHANNEL_DESCRIPTION = "description";
65 * The last update date of the feed.
67 public static final String CHANNEL_LAST_UPDATE = "last-update";
70 * The name of the feed author, if author is present.
72 public static final String CHANNEL_AUTHOR = "author";
75 * The title of the feed.
77 public static final String CHANNEL_TITLE = "title";
80 * Number of entries in the feed
82 public static final String CHANNEL_NUMBER_OF_ENTRIES = "number-of-entries";
84 // Configuration parameters
86 * * The URL of the feed document.
88 public static final String URL = "URL";
91 * The refresh time in minutes.
93 public static final String REFRESH_TIME = "refresh";
96 * The default auto refresh time in minutes.
98 public static final long DEFAULT_REFRESH_TIME = 20;
101 * The minimum refresh time in milliseconds. Any REFRESH command send to a Thing, before this time has expired, will
102 * not trigger an attempt to download new data from the server.
104 public static final int MINIMUM_REFRESH_TIME = 3000;