public static int GetBatteryCount(this KMBombInfo bombInfo, Battery batteryType) { return(GetBatteryCount(bombInfo, (int)batteryType)); }
public static IEnumerable <string> GetColoredIndicators(this KMBombInfo bombInfo, IndicatorColor color) { return(GetColoredIndicators(bombInfo, color.ToString())); }
public static int GetBatteryCount(this KMBombInfo bombInfo) { return(GetBatteryEntries(bombInfo).Sum((x) => x.numbatteries)); }
public static IEnumerable <string> GetOffIndicators(this KMBombInfo bombInfo) { return(GetIndicatorEntries(bombInfo).Where((x) => !x.IsOn()).Select((x) => x.label)); }
public static IEnumerable <string> GetColoredIndicators(this KMBombInfo bombInfo, Indicator label) { return(GetColoredIndicators(bombInfo, null, label.ToString())); }
public static bool IsIndicatorOff(this KMBombInfo bombInfo, Indicator indicatorLabel) { return(bombInfo.IsIndicatorOff(indicatorLabel.ToString())); }
public static bool IsIndicatorOff(this KMBombInfo bombInfo, string indicatorLabel) { return(GetIndicatorEntries(bombInfo).Any((x) => !x.IsOn() && indicatorLabel.Equals(x.label))); }
public static bool IsIndicatorColored(this KMBombInfo bombInfo, string indicatorLabel, string indicatorColor) { return(GetColoredIndicators(bombInfo, indicatorColor).Any((x) => x.Equals(indicatorLabel))); }
public static bool IsIndicatorColorPresent(this KMBombInfo bombInfo, string indicatorColor) { return(GetColoredIndicators(bombInfo, indicatorColor).Any()); }
public static bool IsIndicatorPresent(this KMBombInfo bombInfo, string indicatorLabel) { return(GetIndicatorEntries(bombInfo).Any((x) => indicatorLabel.Equals(x.label))); }
public static bool IsIndicatorColored(this KMBombInfo bombInfo, Indicator indicatorLabel, string indicatorColor) { return(IsIndicatorColored(bombInfo, indicatorLabel.ToString(), indicatorColor)); }
private static IEnumerable <TwoFactorJSON> GetTwoFactorEntries(KMBombInfo bombInfo) { return(GetJSONEntries <TwoFactorJSON>(bombInfo, WidgetQueryTwofactor, null)); }
private static IEnumerable <SerialNumberJSON> GetSerialNumberEntries(KMBombInfo bombInfo) { return(GetJSONEntries <SerialNumberJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_SERIAL_NUMBER, null)); }
private static IEnumerable <PortsJSON> GetPortEntries(KMBombInfo bombInfo) { return(GetJSONEntries <PortsJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_PORTS, null)); }
private static IEnumerable <BatteryJSON> GetBatteryEntries(KMBombInfo bombInfo) { return(GetJSONEntries <BatteryJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_BATTERIES, null)); }
private static IEnumerable <ColorIndicatorJSON> GetColorIndicatorEntries(KMBombInfo bombInfo) { return(GetJSONEntries <ColorIndicatorJSON>(bombInfo, KMBombInfo.QUERYKEY_GET_INDICATOR + "Color", null)); }