@@ -0,0 +1,1703 @@
+/**%0A * Copyright 2016, RadiantBlue Technologies, Inc.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *   http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A **/%0Apackage model.response;%0A%0Aimport java.util.List;%0A%0Aimport model.service.metadata.Service;%0A%0A/**%0A * Represents the response that the Gateway returns to the user when the user%0A * has requested to see the information on a list of Services currently held by%0A * the Piazza system; represented internally using the Service object.%0A * %0A * @author Patrick.Doody%0A * %0A */%0Apublic class ServiceListResponse extends PiazzaResponse %7B%0A%09private String type = %22data-list%22;%0A%09public List%3CService%3E data;%0A%09public Pagination pagination;%0A%0A%09public ServiceListResponse() %7B%0A%09%7D%0A%0A%09public ServiceListResponse(List%3CService%3E services) %7B%0A%09%09this.data = services;%0A%09%7D%0A%0A%09public ServiceListResponse(List%3CService%3E services, Pagination pagination) %7B%0A%09%09this(services);%0A%09%09this.pagination = pagination;%0A%09%7D%0A%0A%09/**%0A%09 * Gets the type of this response.%0A%09 * %0A%09 * @return%0A%09 */%0A%09public String getType() %7B%0A%09%09return type;%0A%09%7D%0A%0A%09/**%0A%09 * Returns the list of Services held by this response object%0A%09 * %0A%09 * @return The list%0A%09 */%0A%09public List%3CService%3E getData() %7B%0A%09%09return data;%0A%09%7D%0A%0A%09public Pagination getPagination() %7B%0A%09%09return pagination;%0A%09%7D%0A%7D%0A

Add service response