cleaning up constants

merge-requests/1/head
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. * Constants used by Mobile device Management classes.
*/ */
public class MobileDeviceManagementConstants { public final class MobileDeviceManagementConstants {
public final static String MOBILE_DEVICE_TYPE_ANDROID = "android"; public static class PlatformTypes {
public final static String MOBILE_DEVICE_TYPE_IOS = "ios"; private PlatformTypes() {
public final static String MOBILE_DEVICE_TYPE_WINDOWS = "windows"; 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 @Override
public String getProviderType() { public String getProviderType() {
return MobileDeviceManagementConstants.MOBILE_DEVICE_TYPE_ANDROID; return MobileDeviceManagementConstants.PlatformTypes.MOBILE_DEVICE_TYPE_ANDROID;
} }
@Override @Override

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

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

Loading…
Cancel
Save