package net.siciarz.openlaundryapi.client;

import java.net.URL;

import org.codehaus.jackson.map.ObjectMapper;

/**
 * Entry point to the application.
 * 
 */
public class App {
    public static void main(String[] args) {
        System.out.println("Open Laundry API Java client");
        URL apiUrl;
        try {
            apiUrl = new URL("http://openlaundryapi.org/api/device/666/");
            ObjectMapper mapper = new ObjectMapper();
            Device device = mapper.readValue(apiUrl, Device.class);
            System.out.println(device.getName());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

@@ -289,19 +289,105 @@
     
-URL apiUrl;
+String deviceId = %22666%22;%0A        if (args.length %3E 0) %7B%0A            deviceId = args%5B0%5D;%0A        %7D
 %0A   
@@ -409,16 +409,20 @@
         
+URL 
 apiUrl =
@@ -468,19 +468,60 @@
 /device/
-666
+%22%0A                            + deviceId + %22
 /%22);%0A   

Handle device_id set as commandline argument.