mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
cleaning up constants
This commit is contained in:
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…
Reference in New Issue
Block a user