2 * Copyright (c) 2010-2020 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
25 public class FeedBindingConstants {
27 public static final String BINDING_ID = "feed";
29 // List of all Thing Type UIDs
30 public static final ThingTypeUID FEED_THING_TYPE_UID = new ThingTypeUID("feed", "feed");
32 // List of all Channel IDs
34 * Contains the published date of the last feed entry.
36 public static final String CHANNEL_LATEST_PUBLISHED_DATE = "latest-date";
39 * Contains the title of the last feed entry.
41 public static final String CHANNEL_LATEST_TITLE = "latest-title";
44 * Contains the description of the last feed entry.
46 public static final String CHANNEL_LATEST_DESCRIPTION = "latest-description";
49 * Contains the link to the last feed entry.
51 public static final String CHANNEL_LATEST_LINK = "latest-link";
54 * Description of the feed.
56 public static final String CHANNEL_DESCRIPTION = "description";
59 * The last update date of the feed.
61 public static final String CHANNEL_LAST_UPDATE = "last-update";
64 * The name of the feed author, if author is present.
66 public static final String CHANNEL_AUTHOR = "author";
69 * The title of the feed.
71 public static final String CHANNEL_TITLE = "title";
74 * Number of entries in the feed
76 public static final String CHANNEL_NUMBER_OF_ENTRIES = "number-of-entries";
78 // Configuration parameters
80 * * The URL of the feed document.
82 public static final String URL = "URL";
85 * The refresh time in minutes.
87 public static final String REFRESH_TIME = "refresh";
90 * The default auto refresh time in minutes.
92 public static final long DEFAULT_REFRESH_TIME = 20;
95 * The minimum refresh time in milliseconds. Any REFRESH command send to a Thing, before this time has expired, will
96 * not trigger an attempt to download new data from the server.
98 public static final int MINIMUM_REFRESH_TIME = 3000;