--- /dev/null
+/* Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.common.model.local;\r
+\r
+import org.oran.otf.common.utility.gson.Convert;\r
+\r
+import java.util.Date;\r
+\r
+public class OTFApiResponse {\r
+\r
+ private int statusCode;\r
+ private String message;\r
+ private Date time;\r
+\r
+ public OTFApiResponse() {\r
+ }\r
+\r
+ public OTFApiResponse(int statusCode, String message) {\r
+ this.statusCode = statusCode;\r
+ this.message = message;\r
+ this.time = new Date(System.currentTimeMillis());\r
+ }\r
+\r
+ public int getStatusCode() {\r
+ return statusCode;\r
+ }\r
+\r
+ public void setStatusCode(int statusCode) {\r
+ this.statusCode = statusCode;\r
+ }\r
+\r
+ public String getMessage() {\r
+ return message;\r
+ }\r
+\r
+ public void setMessage(String message) {\r
+ this.message = message;\r
+ }\r
+\r
+ public Date getTime() {\r
+ return time;\r
+ }\r
+\r
+ public void setTime(Date time) {\r
+ this.time = time;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return Convert.objectToJson(this);\r
+ }\r
+}\r