@Test public void testRequestStatus() { assertEquals("should be a valid value", "*#1*21##", requestStatus("21").getValue()); assertEquals("should be a valid value", "*#1*0##", requestStatus("0").getValue()); assertEquals("should be a valid value", "*#1*9999##", requestStatus("9999").getValue()); assertEquals("should be a valid value", "*#1*01##", requestStatus("01").getValue()); assertEquals("should be a valid value", "*#1*1##", requestStatus("1").getValue()); assertEquals("should be a valid value", "*#1*09##", requestStatus("09").getValue()); assertEquals("should be a valid value", "*#1*9##", requestStatus("9").getValue()); }
public static Lighting requestStatus(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Lighting(format(FORMAT_STATUS, WHO, where)); }
Lighting extends BaseOpenMessage { public static Lighting requestStatus(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Lighting(format(FORMAT_STATUS, WHO, where)); } }
Lighting extends BaseOpenMessage { public static Lighting requestStatus(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Lighting(format(FORMAT_STATUS, WHO, where)); } private  Lighting(String value); }
Lighting extends BaseOpenMessage { public static Lighting requestStatus(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Lighting(format(FORMAT_STATUS, WHO, where)); } private  Lighting(String value); static Lighting requestTurnOn(String where); static Lighting requestTurnOn(String where, Type type, String bus); static Lighting requestTurnOff(String where); static Lighting requestTurnOff(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Lighting requestStatus(String where); static Lighting requestStatus(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static boolean isValidRangeType(String where, Type type, String bus); }
Lighting extends BaseOpenMessage { public static Lighting requestStatus(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Lighting(format(FORMAT_STATUS, WHO, where)); } private  Lighting(String value); static Lighting requestTurnOn(String where); static Lighting requestTurnOn(String where, Type type, String bus); static Lighting requestTurnOff(String where); static Lighting requestTurnOff(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Lighting requestStatus(String where); static Lighting requestStatus(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleStatus(Action0 onStatus, Action0 offStatus); static boolean isValidRangeType(String where, Type type, String bus);  }