Imported Upstream version 1.0.1
[platform/upstream/iotivity.git] / service / easy-setup / sdk / mediator / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / OnBoardingConnection.java
1 /**\r
2  * ***************************************************************\r
3  * <p/>\r
4  * Copyright 2015 Samsung Electronics All Rights Reserved.\r
5  * <p/>\r
6  * <p/>\r
7  * <p/>\r
8  * Licensed under the Apache License, Version 2.0 (the "License");\r
9  * you may not use this file except in compliance with the License.\r
10  * You may obtain a copy of the License at\r
11  * <p/>\r
12  * http://www.apache.org/licenses/LICENSE-2.0\r
13  * <p/>\r
14  * Unless required by applicable law or agreed to in writing, software\r
15  * distributed under the License is distributed on an "AS IS" BASIS,\r
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17  * See the License for the specific language governing permissions and\r
18  * limitations under the License.\r
19  * <p/>\r
20  * ****************************************************************\r
21  */\r
22 package org.iotivity.service.easysetup.mediator;\r
23 \r
24 /**\r
25  * This interface contains the connection details of the enrollee device\r
26  */\r
27 public interface OnBoardingConnection {\r
28 \r
29     /**\r
30      * This method returns the implementation of the Connection\r
31      *\r
32      * @return implementation\r
33      */\r
34     public Object getConnection();\r
35 \r
36     /**\r
37      * This method returns description on the connectivity.\r
38      *\r
39      * @return description\r
40      */\r
41     public String getDesc();\r
42 \r
43     /**\r
44      * This method is used to know if the device is connected or not\r
45      *\r
46      * @return True if connected or False\r
47      */\r
48     public boolean isConnected();\r
49 \r
50 }\r