97131fd783ce6e9aba37b5dc4b2ab44831c08b3d
[music.git] / src / main / java / org / onap / music / datastore / jsonobjects / MusicResponse.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
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
10  * 
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  * 
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.
18  * 
19  * ============LICENSE_END=============================================
20  * ====================================================================
21  */
22 package org.onap.music.datastore.jsonobjects;
23
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
27
28 import org.onap.music.rest.Application;
29
30 public class MusicResponse implements Serializable {
31
32         /**
33          * 
34          */
35         private static final long serialVersionUID = 1L;
36         private List<Application> applicationList = new ArrayList<>();
37         private String message;
38
39         public String getStatus() {
40                 return status;
41         }
42
43         public void setStatus(String status) {
44                 this.status = status;
45         }
46
47         private String status;
48
49         public void setSucces(boolean isSucces) {
50                 this.isSucces = isSucces;
51         }
52
53         private boolean isSucces;
54
55         public boolean isSucces() {
56                 return isSucces;
57         }
58
59         public void setisSucces(boolean isSucces) {
60                 this.isSucces = isSucces;
61         }
62
63         public String getMessage() {
64                 return message;
65         }
66
67         public void setMessage(String message) {
68                 this.message = message;
69         }
70
71         public List<Application> getApplicationList() {
72                 return applicationList;
73         }
74
75         public void setApplicationList(List<Application> applicationList) {
76                 this.applicationList = applicationList;
77         }
78
79         public void setResposne(String status, String message) {
80                 this.status = status;
81                 this.message = message;
82         }
83         
84         public void addAppToList(Application app) {
85                 applicationList.add(app);
86         }
87 }