@Test public void testRequestDown() { assertEquals("should be a valid value", "*2*2*21##", requestMoveDown("21").getValue()); assertEquals("should be a valid value", "*2*2*0##", requestMoveDown("0").getValue()); assertEquals("should be a valid value", "*2*2*9999##", requestMoveDown("9999").getValue()); assertEquals("should be a valid value", "*2*2*01##", requestMoveDown("01").getValue()); assertEquals("should be a valid value", "*2*2*1##", requestMoveDown("1").getValue()); assertEquals("should be a valid value", "*2*2*09##", requestMoveDown("09").getValue()); assertEquals("should be a valid value", "*2*2*9##", requestMoveDown("9").getValue()); }
public static Automation requestMoveDown(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Automation(format(FORMAT_REQUEST, WHO, DOWN, where)); }
Automation extends BaseOpenMessage { public static Automation requestMoveDown(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Automation(format(FORMAT_REQUEST, WHO, DOWN, where)); } }
Automation extends BaseOpenMessage { public static Automation requestMoveDown(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Automation(format(FORMAT_REQUEST, WHO, DOWN, where)); } private  Automation(String value); }
Automation extends BaseOpenMessage { public static Automation requestMoveDown(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Automation(format(FORMAT_REQUEST, WHO, DOWN, where)); } private  Automation(String value); static Automation requestStop(String where); static Automation requestStop(String where, Type type, String bus); static Automation requestMoveUp(String where); static Automation requestMoveUp(String where, Type type, String bus); static Automation requestMoveDown(String where); static Automation requestMoveDown(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Automation requestStatus(String where); static Automation requestStatus(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleStatus(Action0 stopAction, Action0 upAction, Action0 downAction); static boolean isValidRangeType(String where, Type type, String bus); }
Automation extends BaseOpenMessage { public static Automation requestMoveDown(String where) { checkRange(WHERE_MIN_VALUE, WHERE_MAX_VALUE, checkIsInteger(where)); return new Automation(format(FORMAT_REQUEST, WHO, DOWN, where)); } private  Automation(String value); static Automation requestStop(String where); static Automation requestStop(String where, Type type, String bus); static Automation requestMoveUp(String where); static Automation requestMoveUp(String where, Type type, String bus); static Automation requestMoveDown(String where); static Automation requestMoveDown(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Automation requestStatus(String where); static Automation requestStatus(String where, Type type, String bus); static Func1<OpenSession, OpenSession> handleStatus(Action0 stopAction, Action0 upAction, Action0 downAction); static boolean isValidRangeType(String where, Type type, String bus);  }