001package com.plivo.api.models.base;
002
003import java.util.List;
004
005/**
006 * A generic container for all list responses.
007 *
008 * @param <T> The type of the contained resource.
009 */
010public class ListResponse<T> extends BaseResponse {
011
012  private Meta meta;
013  private List<T> objects;
014
015  /**
016   * @return The pagination-related metadata for this list response.
017   */
018  public Meta getMeta() {
019    return meta;
020  }
021
022  /**
023   * @return The actual list of objects.
024   */
025  public List<T> getObjects() {
026    return objects;
027  }
028}