package com.intuso.housemate.client.v1_0.rest;

import com.intuso.housemate.client.v1_0.api.object.System;
import com.intuso.housemate.client.v1_0.rest.model.Page;

import javax.ws.rs.*;

/**
 * Created by tomc on 21/01/17.
 */
@Path("/power")
public interface PowerResource {

    @GET
    @Produces("application/json")
    Page<System.Data> list(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("limit") @DefaultValue("20") int limit);

    @GET
    @Path("/{id}")
    boolean isOn(@PathParam("id") String id);

    @POST
    @Path("/{id}/on")
    void turnOn(@PathParam("id") String id);

    @POST
    @Path("/{id}/off")
    void turnOff(@PathParam("id") String id);
}

@@ -92,22 +92,22 @@
 .object.
-System
+Device
 ;%0Aimport
@@ -327,14 +327,14 @@
 age%3C
-System
+Device
 .Dat

Add session utility functions. Re-implement power resource so it loads devices instead of systems