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 last feed entry.
46 public static final String CHANNEL_LATEST_DESCRIPTION = "latest-description";
49 * Description of the feed.
51 public static final String CHANNEL_DESCRIPTION = "description";
54 * The last update date of the feed.
56 public static final String CHANNEL_LAST_UPDATE = "last-update";
59 * The name of the feed author, if author is present.
61 public static final String CHANNEL_AUTHOR = "author";
64 * The title of the feed.
66 public static final String CHANNEL_TITLE = "title";
69 * Number of entries in the feed
71 public static final String CHANNEL_NUMBER_OF_ENTRIES = "number-of-entries";
73 // Configuration parameters
75 * * The URL of the feed document.
77 public static final String URL = "URL";
80 * The refresh time in minutes.
82 public static final String REFRESH_TIME = "refresh";
85 * The default auto refresh time in minutes.
87 public static final long DEFAULT_REFRESH_TIME = 20;
90 * The minimum refresh time in milliseconds. Any REFRESH command send to a Thing, before this time has expired, will
91 * not trigger an attempt to download new data from the server.
93 public static final int MINIMUM_REFRESH_TIME = 3000;