Package it.freedomotic.restapi.model

Examples of it.freedomotic.restapi.model.PluginPojo


    @Override
    protected void doInit() throws ResourceException {
        plugins = new ArrayList<PluginPojo>();
        for (Client c : RestApi.getFreedomoticApi().getClients("plugin")) {
                plugins.add(new PluginPojo(c.getName(), c.isRunning()));
        }
    }
View Full Code Here


public class PluginConverter implements Converter {

    @Override
    public void marshal(Object o, HierarchicalStreamWriter writer, MarshallingContext mc) {
        System.out.println("PluginConverter: " + o.toString());
        PluginPojo plug = (PluginPojo) o;
        writer.startNode("plugin");
        writer.setValue(plug.getName());
        writer.endNode();
        writer.startNode("running");
        writer.setValue(Boolean.toString(plug.isRunning()));
        writer.endNode(); //end sequences
    }
View Full Code Here

TOP

Related Classes of it.freedomotic.restapi.model.PluginPojo

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.