All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twilio.sdk.resource.list.taskrouter.EventList Maven / Gradle / Ivy

There is a newer version: 7.0.0-rc-10
Show newest version
package com.twilio.sdk.resource.list.taskrouter;

import com.twilio.sdk.TwilioTaskRouterClient;
import com.twilio.sdk.resource.NextGenListResource;
import com.twilio.sdk.resource.instance.taskrouter.Event;

import java.util.Map;

public class EventList extends NextGenListResource {

    private String workspaceSid;

    /**
     * Instantiates a event list.
     *
     * @param client the client
     * @param workspaceSid the workspace sid
     */
    public EventList(final TwilioTaskRouterClient client, final String workspaceSid) {
        super(client);
        this.workspaceSid = workspaceSid;
    }

    /**
     * Instantiates a event list.
     *
     * @param client the client
     * @param workspaceSid the workspace sid
     * @param filters the filters
     */
    public EventList(final TwilioTaskRouterClient client, final String workspaceSid, final Map filters) {
        super(client, filters);
        this.workspaceSid = workspaceSid;
    }

    @Override
    protected Event makeNew(final TwilioTaskRouterClient client, final Map params) {
        return new Event(client, params);
    }

    @Override
    protected String getResourceLocation() {
        return "/" + TwilioTaskRouterClient.DEFAULT_VERSION + "/Workspaces/" + workspaceSid + "/Events";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy