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