Refactoring some code and adding disable_tls flag
[aaf/sms.git] / sms-client / src / main / java / org / onap / aaf / sms / SmsResponse.java
1 /*
2  * Copyright 2018 Intel Corporation, Inc
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.aaf.sms;
18
19 import java.util.Map;
20
21 public class SmsResponse {
22     private boolean success;
23     private int responseCode;
24     private String errorMessage;
25     private Map<String, Object> response;
26
27     public SmsResponse() {
28         success = false;
29         responseCode = -1;
30         errorMessage = "";
31         response = null;
32     }
33     public void setResponseCode(int code) {
34         responseCode = code;
35     }
36     public void setResponse(Map<String, Object> res) {
37         response = res;
38     }
39     public void setSuccess(boolean val) {
40         success = val;
41     }
42     public int getResponseCode() {
43         return responseCode;
44     }
45     public void setErrorMessage(String em) {
46         errorMessage = em;
47     }
48     public String getErrorMessage() {
49         return errorMessage;
50     }
51     public Map<String, Object> getResponse() {
52         return response;
53     }
54     public boolean getSuccess() {
55         return success;
56     }
57 }