001package jmri.jmrix.ipocs.protocol.enums;
002
003/**
004 * @author Fredrik Elestedt Copyright (C) 2020
005 * @since 4.21.2
006 */
007public enum RqReleaseCommand {
008  LocalControl(1),
009  CentralControl(2);
010
011  public final byte value;
012
013  private RqReleaseCommand(int value) {
014    this.value = (byte)value;
015  }
016
017  public static RqReleaseCommand valueOf(byte value) {
018    for (RqReleaseCommand e : values()) {
019      if (e.value == value) {
020        return e;
021      }
022    }
023    return null;
024  }
025}