2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (c) 2017 AT&T Intellectual Property
6 * ===================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 * ============LICENSE_END=============================================
20 * ====================================================================
22 package org.onap.music.datastore.jsonobjects;
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
28 import org.onap.music.rest.Application;
30 public class MusicResponse implements Serializable {
35 private static final long serialVersionUID = 1L;
36 private List<Application> applicationList = new ArrayList<>();
37 private String message;
39 public String getStatus() {
43 public void setStatus(String status) {
47 private String status;
49 public void setSucces(boolean isSucces) {
50 this.isSucces = isSucces;
53 private boolean isSucces;
55 public boolean isSucces() {
59 public void setisSucces(boolean isSucces) {
60 this.isSucces = isSucces;
63 public String getMessage() {
67 public void setMessage(String message) {
68 this.message = message;
71 public List<Application> getApplicationList() {
72 return applicationList;
75 public void setApplicationList(List<Application> applicationList) {
76 this.applicationList = applicationList;
79 public void setResposne(String status, String message) {
81 this.message = message;
84 public void addAppToList(Application app) {
85 applicationList.add(app);