Refactoring of EasySetup Android implementation
[platform/upstream/iotivity.git] / service / easy-setup / sdk / mediator / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / impl / WiFiProvConfig.java
1 package org.iotivity.service.easysetup.impl;
2
3 import org.iotivity.service.easysetup.core.ProvisioningConfig;
4 import org.iotivity.service.easysetup.mediator.EnrolleeInfo;
5
6 import android.net.wifi.WifiConfiguration;
7
8 public class WiFiProvConfig implements ProvisioningConfig{
9
10     private final ConnType mConnType = ProvisioningConfig.ConnType.WiFi;
11
12     private final String mSsId;
13     private final String mPassword;
14
15     public WiFiProvConfig(String ssid, String pass) {
16         mSsId = ssid;
17         mPassword = pass;
18     }
19
20     @Override
21     public Object getConfig() {
22         return this;
23     }
24
25     @Override
26     public ConnType getConnType() {
27         // TODO Auto-generated method stub
28         return mConnType;
29     }
30
31     public String getSsId() {
32         return mSsId;
33     }
34
35     public String getPassword() {
36         return mPassword;
37     }
38
39 }