Skip to content

Instantly share code, notes, and snippets.

@codedrobot
Created September 5, 2020 17:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
package com.peloton.sensor.client;
/* compiled from: HardwareType.kt */
public enum HardwareType {
V1BIKE(r4),
V2BIKE(r4),
TITAN("titan"),
PRISM("prism"),
MAZU("mazu"),
TREAD("aurora"),
UNKNOWN("Unknown Hardware");
private final String productModelName;
private HardwareType(String str) {
this.productModelName = str;
}
public final String getProductModelName() {
return this.productModelName;
}
public final boolean isBike() {
return this == V1BIKE || this == TITAN || this == V2BIKE;
}
public final boolean isMazu() {
return this == MAZU;
}
public final boolean isTread() {
return this == TREAD || this == PRISM;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment