Fix formatting in the dashboard
[nonrtric.git] / dashboard / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / model / SuccessTransport.java
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 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  * ========================LICENSE_END===================================
19  */
20 package org.oransc.ric.portal.dashboard.model;
21
22 public class SuccessTransport implements IDashboardResponse {
23
24     private int status;
25     private Object data;
26
27     /**
28      * Builds an empty object
29      */
30     public SuccessTransport() {
31         // no-arg constructor
32     }
33
34     /**
35      * Builds an object with the specified values.
36      *
37      * @param status
38      *        Status code
39      * @param data
40      *        Data to transport
41      */
42     public SuccessTransport(int status, Object data) {
43         this.status = status;
44         this.data = data;
45     }
46
47     public int getStatus() {
48         return status;
49     }
50
51     public void setStatus(int status) {
52         this.status = status;
53     }
54
55     public Object getData() {
56         return data;
57     }
58
59     public void setData(Object data) {
60         this.data = data;
61     }
62
63 }