|
|
@ -18,24 +18,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
|
|
|
package org.wso2.carbon.device.mgt.jaxrs.beans;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Properties;
|
|
|
|
import java.util.Properties;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This class represents the generic mobile AuthenticationImpl information
|
|
|
|
* This class represents the generic mobile AuthenticationImpl information
|
|
|
|
* which is used by AppM.
|
|
|
|
* which is used by AppM.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@ApiModel(value = "ApplicationWrapper", description = "Details of a mobile application.")
|
|
|
|
public class MobileApp {
|
|
|
|
public class MobileApp {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "id", value = "Id of the app used internally.", required = true )
|
|
|
|
private String id;
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "name", value = "The name of the application.", required = true )
|
|
|
|
private String name;
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "type", value = "The type of the application. The following types of applications are " +
|
|
|
|
|
|
|
|
"supported: enterprise, public and webapp..", required = true )
|
|
|
|
private MobileAppTypes type;
|
|
|
|
private MobileAppTypes type;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "platform", value = "Platform the app can be installed on .", required = true )
|
|
|
|
private String platform;
|
|
|
|
private String platform;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "version", value = "Version of the application.", required = true )
|
|
|
|
private String version;
|
|
|
|
private String version;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "identifier", value = "The package name of the application.", required = true )
|
|
|
|
private String identifier;
|
|
|
|
private String identifier;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "iconImage", value = "Link to the icon of the app.", required = true )
|
|
|
|
private String iconImage;
|
|
|
|
private String iconImage;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "packageName", value = "Define the exact name of the application package. You can use one " +
|
|
|
|
|
|
|
|
"of the following methods to get the package name.\n" +
|
|
|
|
|
|
|
|
"Go to the respective application in the play store and copy the" +
|
|
|
|
|
|
|
|
" ID or package name from the URL.\n" +
|
|
|
|
|
|
|
|
"Example: The play store application URL for the Viber app is " +
|
|
|
|
|
|
|
|
"https://play.google.com/store/apps/details?id=com.viber.voip&hl=en." +
|
|
|
|
|
|
|
|
" Therefore, the package name or " +
|
|
|
|
|
|
|
|
"the application ID is: id=com.viber.voip \n" +
|
|
|
|
|
|
|
|
"Download the System Info for Android to your device from the" +
|
|
|
|
|
|
|
|
" play store. \n" +
|
|
|
|
|
|
|
|
"Once the application is successfully installed go to the Tasks " +
|
|
|
|
|
|
|
|
"tab and you will see the package name under the respective " +
|
|
|
|
|
|
|
|
"application..", required = true )
|
|
|
|
private String packageName;
|
|
|
|
private String packageName;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "appIdentifier", value = "The package name of the application.", required = true )
|
|
|
|
private String appIdentifier;
|
|
|
|
private String appIdentifier;
|
|
|
|
private String location;
|
|
|
|
private String location;
|
|
|
|
|
|
|
|
@ApiModelProperty(name = "properties", value = "List of meta data.", required = true )
|
|
|
|
private Properties properties;
|
|
|
|
private Properties properties;
|
|
|
|
|
|
|
|
|
|
|
|
public MobileAppTypes getType() {
|
|
|
|
public MobileAppTypes getType() {
|
|
|
|