Skip to content

Instantly share code, notes, and snippets.

@codedrobot
Created September 5, 2020 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codedrobot/5c66d0a388119fae24423a9c82a70c4a to your computer and use it in GitHub Desktop.
Save codedrobot/5c66d0a388119fae24423a9c82a70c4a to your computer and use it in GitHub Desktop.
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