cleaning up constants

4.x.x
prabathabey 10 years ago
parent 1d94f81ec6
commit 1476036b89

@ -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";
}
}

@ -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

@ -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

@ -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

Loading…
Cancel
Save