/FileExtraction/Java_unseen/Kegbot_kegbot-android/kegtab/src/main/java/org/kegbot/app/KegtabBroadcast.java
/*
 * Copyright 2003-2020 The Kegbot Project contributors <info@kegbot.org>
 *
 * This file is part of the Kegtab package from the Kegbot project. For
 * more information on Kegtab or Kegbot, see <http://kegbot.org/>.
 *
 * Kegtab is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, version 2.
 *
 * Kegtab is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with Kegtab. If not, see <http://www.gnu.org/licenses/>.
 */
package org.kegbot.app;

/**
 * Constants involving broadcasts.
 */
public class KegtabBroadcast {

  /**
   * Action set when a new temperature reading is recorded.
   */
  public static final String ACTION_THERMO_UPDATE = "org.kegbot.action.THERMO_UPDATE";
  public static final String THERMO_UPDATE_EXTRA_SENSOR_NAME = "sensor_name";
  public static final String THERMO_UPDATE_EXTRA_TEMP_C = "temp_c";

  public static final String ACTION_USER_AUTHED = "org.kegbot.action.USER_AUTHED";
  public static final String USER_AUTHED_EXTRA_USERNAME = "username";
  public static final String USER_AUTHED_EXTRA_TAP_NAME = "tap_name";

  public static final String DRINKER_SELECT_EXTRA_TAP_NAME = "tap";

  public static final String ACTION_METER_UPDATE = "org.kegbot.action.METER_UPDATE";
  public static final String METER_UPDATE_EXTRA_METER_NAME = "meter";
  public static final String METER_UPDATE_EXTRA_TICKS = "ticks";

  public static final String ACTION_TOKEN_ADDED = "org.kegbot.action.TOKEN_ADDED";
  public static final String TOKEN_ADDED_EXTRA_AUTH_DEVICE = "auth_device";
  public static final String TOKEN_ADDED_EXTRA_TOKEN_VALUE = "token";

  public static final String ACTION_CONTROLLER_ADDED = "org.kegbot.action.CONTROLLER_ADDED";
  public static final String CONTROLLER_ADDED_EXTRA_NAME = "name";

  public static final String ACTION_CONTROLLER_REMOVED = "org.kegbot.action.CONTROLLER_REMOVED";
  public static final String CONTROLLER_REMOVED_EXTRA_NAME = "name";

  private KegtabBroadcast() {
    throw new IllegalStateException("Non-instantiable class.");
  }

}
