Package com.cumulocity.me.rest.representation

Examples of com.cumulocity.me.rest.representation.PageStatisticsRepresentation


        putInt(json, PROP_PAGE_SIZE, $(representation).getPageSize());
        return json;
    }

    public Object fromJson(JSONObject json) {
        PageStatisticsRepresentation representation = new PageStatisticsRepresentation();
        representation.setTotalPages(getInt(json, PROP_TOTAL_PAGES));
        representation.setCurrentPage(getInt(json, PROP_CURRENT_PAGE));
        representation.setPageSize(getInt(json, PROP_PAGE_SIZE));
        return representation;
    }
View Full Code Here


        return get(DEFAULT_PAGE_SIZE);
    }

    public BaseCollectionRepresentation get(int pageSize) throws SDKException {
      BaseCollectionRepresentation collectionRepresentaton = (BaseCollectionRepresentation) newCollectionRepresentationInstance();
      collectionRepresentaton.setPageStatistics(new PageStatisticsRepresentation());
        return collectionRepresentaton;
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.rest.representation.PageStatisticsRepresentation

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.