Package com.anzsoft.client.ui

Examples of com.anzsoft.client.ui.RoomDialog$Room


  }
 
  public void showRooms()
  {
    if(roomDlg == null)
      roomDlg = new RoomDialog(disco);
   
    roomDlg.show();
    WindowManager.get().bringToFront(roomDlg);
  }
View Full Code Here


     *                 For example, to declare that two children ages 5 and 12,
     *                 you would put 5,12.
     * @return a hotel list request builder
     */
    public GetHotelListBuilder room(final int adults, final int... children) {
        final Room room = new Room();
        room.setNumberOfAdults(adults);
        room.setNumberOfChildren(children.length);
        for (int child : children) {
            room.getChildAges().add(child);
        }

        RoomGroup group = request.getRoomGroup();
        if (group == null) {
            group = new RoomGroup();
View Full Code Here

    public void shouldBuildStringWithRoomFormatForREST() {
        final HotelListRequest request = new HotelListRequest();
        final RoomGroup group = new RoomGroup();
        request.setRoomGroup(group);

        final Room room1 = new Room();
        room1.setNumberOfAdults(1);
        group.getRoom().add(room1);

        final StringBuilder builder1 = new StringBuilder();
        JsonFormBodyWriter.writeTo(request.getClass(), request, builder1);
        assertThat("Result strings should be the same.",
                builder1.toString(), is(equalTo("&cid=0&room1=1")));

        final Room room2 = new Room();
        room2.setNumberOfAdults(2);
        room2.setNumberOfChildren(2);
        room2.getChildAges().add(5);
        room2.getChildAges().add(12);
        group.getRoom().add(room2);

        final StringBuilder builder2 = new StringBuilder();
        JsonFormBodyWriter.writeTo(request.getClass(), request, builder2);
        assertThat("Result strings should be the same.",
View Full Code Here

TOP

Related Classes of com.anzsoft.client.ui.RoomDialog$Room

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.