public class EnrolleeConf
{
private static final String TAG = EnrolleeConf.class.getName();
- protected OcRepresentation mProvRep = null;
+ protected OcRepresentation mEasySetupRep = null;
/**
* Constructor
*
*/
public EnrolleeConf(OcRepresentation rep)
{
- mProvRep = rep;
+ mEasySetupRep = rep;
}
public EnrolleeConf(EnrolleeConf enrolleeConf)
{
- mProvRep = enrolleeConf.getProvResRep();
+ mEasySetupRep = enrolleeConf.getEasySetupRep();
}
/**
*/
public String getDeviceName()
{
- if(mProvRep == null)
+ if(mEasySetupRep == null)
{
return null;
}
- List<OcRepresentation> children = mProvRep.getChildren();
+ List<OcRepresentation> children = mEasySetupRep.getChildren();
for (OcRepresentation child : children) {
if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_DEVCONF) != -1)
*/
public String getModelNumber()
{
- if(mProvRep == null)
+ if(mEasySetupRep == null)
{
return null;
}
- List<OcRepresentation> children = mProvRep.getChildren();
+ List<OcRepresentation> children = mEasySetupRep.getChildren();
for (OcRepresentation child : children) {
if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_DEVCONF) != -1)
*/
public ArrayList<WIFI_MODE> getWiFiModes()
{
- if(mProvRep == null)
+ if(mEasySetupRep == null)
{
return null;
}
- List<OcRepresentation> children = mProvRep.getChildren();
+ List<OcRepresentation> children = mEasySetupRep.getChildren();
ArrayList<WIFI_MODE> modes = new ArrayList<WIFI_MODE>();
for (OcRepresentation child : children) {
- if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_WIFI) != -1)
+ if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_WIFICONF) != -1)
{
try {
OcRepresentation rep;
*/
public WIFI_FREQ getWiFiFreq()
{
- if(mProvRep == null)
+ if(mEasySetupRep == null)
{
return WIFI_FREQ.WIFI_FREQ_NONE;
}
- List<OcRepresentation> children = mProvRep.getChildren();
+ List<OcRepresentation> children = mEasySetupRep.getChildren();
for (OcRepresentation child : children) {
- if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_WIFI) != -1)
+ if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_WIFICONF) != -1)
{
try{
OcRepresentation rep;
*/
public boolean isCloudAccessible()
{
- if(mProvRep == null)
+ if(mEasySetupRep == null)
{
return false;
}
- List<OcRepresentation> children = mProvRep.getChildren();
+ List<OcRepresentation> children = mEasySetupRep.getChildren();
for (OcRepresentation child : children) {
- if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_CLOUDSERVER) != -1)
+ if(child.getUri().indexOf(ESConstants.OC_RSRVD_ES_URI_COAPCLOUDCONF) != -1)
{
return true;
}
return false;
}
- public OcRepresentation getProvResRep()
+ public OcRepresentation getEasySetupRep()
{
- return mProvRep;
+ return mEasySetupRep;
}
}