Skip to content

Instantly share code, notes, and snippets.

@codedrobot
Created Sep 5, 2020
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