cleaning up constants

This commit is contained in:
prabathabey 2014-12-09 17:56:24 +05:30
parent 1d94f81ec6
commit 1476036b89
4 changed files with 12 additions and 7 deletions

View File

@ -19,10 +19,15 @@ package org.wso2.carbon.device.mgt.mobile.impl;
/**
* Constants used by Mobile device Management classes.
*/
public class MobileDeviceManagementConstants {
public final class MobileDeviceManagementConstants {
public final static String MOBILE_DEVICE_TYPE_ANDROID = "android";
public final static String MOBILE_DEVICE_TYPE_IOS = "ios";
public final static String MOBILE_DEVICE_TYPE_WINDOWS = "windows";
public static class PlatformTypes {
private PlatformTypes() {
throw new AssertionError();
}
public final static String MOBILE_DEVICE_TYPE_ANDROID = "android";
public final static String MOBILE_DEVICE_TYPE_IOS = "ios";
public final static String MOBILE_DEVICE_TYPE_WINDOWS = "windows";
}
}

View File

@ -31,7 +31,7 @@ public class AndroidDeviceManagerService implements DeviceManagerService {
@Override
public String getProviderType() {
return MobileDeviceManagementConstants.MOBILE_DEVICE_TYPE_ANDROID;
return MobileDeviceManagementConstants.PlatformTypes.MOBILE_DEVICE_TYPE_ANDROID;
}
@Override

View File

@ -31,7 +31,7 @@ public class IOSDeviceManagerService implements DeviceManagerService {
@Override
public String getProviderType() {
return MobileDeviceManagementConstants.MOBILE_DEVICE_TYPE_IOS;
return MobileDeviceManagementConstants.PlatformTypes.MOBILE_DEVICE_TYPE_IOS;
}
@Override

View File

@ -31,7 +31,7 @@ public class WindowsDeviceManagerService implements DeviceManagerService {
@Override
public String getProviderType() {
return MobileDeviceManagementConstants.MOBILE_DEVICE_TYPE_WINDOWS;
return MobileDeviceManagementConstants.PlatformTypes.MOBILE_DEVICE_TYPE_WINDOWS;
}
@Override