Package com.twilio.sdk.resource.list

Source Code of com.twilio.sdk.resource.list.ConnectAppList

package com.twilio.sdk.resource.list;

import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.resource.ListResource;
import com.twilio.sdk.resource.instance.ConnectApp;

import java.util.Map;

/**
* The ConnectApps list resource shows all of the Connect Apps that you have
* created within your Twilio account. The instance resource shows you the
* permissions you are requesting for a single Connect App as well as
* information about the Connect App itself.
*
* For more information see <a
* href="https://www.twilio.com/docs/api/rest/connect-apps"
* >https://www.twilio.com/docs/api/rest/connect-apps</a>
*/
public class ConnectAppList extends ListResource<ConnectApp> {

  /**
   * Instantiates a new ConnectApp list.
   *
   * @param client
   *            the client
   */
  public ConnectAppList(TwilioRestClient client) {
    super(client);
  }

  /**
   * Instantiates a new ConnectApp list.
   *
   * @param client
   *            the client
   * @param filters
   *            the filters
   */
  public ConnectAppList(TwilioRestClient client, Map<String, String> filters) {
    super(client, filters);
  }

  /*
   * (non-Javadoc)
   *
   * @see com.twilio.sdk.resource.Resource#getResourceLocation()
   */
  @Override
  protected String getResourceLocation() {
    return "/" + TwilioRestClient.DEFAULT_VERSION + "/Accounts/"
        + this.getRequestAccountSid() + "/ConnectApps.json";
  }

  /*
   * (non-Javadoc)
   *
   * @see
   * com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient
   * , java.util.Map)
   */
  @Override
  protected ConnectApp makeNew(TwilioRestClient client,
      Map<String, Object> params) {
    return new ConnectApp(client, params);
  }

  /*
   * (non-Javadoc)
   *
   * @see com.twilio.sdk.resource.ListResource#getListKey()
   */
  @Override
  protected String getListKey() {
    return "connect_apps";
  }

}
TOP

Related Classes of com.twilio.sdk.resource.list.ConnectAppList

TOP
Copyright © 2018 www.massapi.com. 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.