Package com.cumulocity.me.sdk.client.event

Examples of com.cumulocity.me.sdk.client.event.EventFilter


    }

    @When("I query all Events by type '([^']*)'$")
    public void iQueryAllByType(String type) throws SDKException, ClassNotFoundException {
        try {
            EventFilter filter = new EventFilter().byType(type);
            collection = (EventCollectionRepresentation) eventApi.getEventsByFilter(filter).get();
        } catch (SDKException ex) {
            status = ex.getHttpStatus();
        }
    }
View Full Code Here


    @When("I query all Events by source '(\\d+)'$")
    public void iQueryAllBySource(int index) throws SDKException {
        try {
            ManagedObjectRepresentation mo = managedObject;
            EventFilter filter = new EventFilter().bySource(mo);
            collection = (EventCollectionRepresentation) eventApi.getEventsByFilter(filter).get();
        } catch (SDKException ex) {
            status = ex.getHttpStatus();
        }
    }
View Full Code Here

    @When("I query all Events by source '(\\d+)' and type '([^']*)'$")
    public void iQueryAllBySourceAndType(int index, String type) throws SDKException, ClassNotFoundException {
        try {
            ManagedObjectRepresentation mo = managedObject;
            EventFilter filter = new EventFilter().bySource(mo).byType(type);
            collection = (EventCollectionRepresentation) eventApi.getEventsByFilter(filter).get();
        } catch (SDKException ex) {
            status = ex.getHttpStatus();
        }
    }
View Full Code Here

    }

    @When("I query all Events by source '(\\d+)' and time '([^']*)'$")
    public void iQueryAllBySourceAndTime(int index, String time) throws SDKException, ClassNotFoundException {
        try {
            EventFilter filter = new EventFilter().byDate(DateConverter.string2Date(time), DateConverter.string2Date(time));
            collection = (EventCollectionRepresentation) eventApi.getEventsByFilter(filter).get();
        } catch (SDKException ex) {
            status = ex.getHttpStatus();
        }
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.sdk.client.event.EventFilter

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.