mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Adding swagger annotations
This commit is contained in:
parent
34d4da7e66
commit
f66aad9e0e
@ -30,7 +30,7 @@ import java.io.Serializable;
|
||||
description = "This class carries all information related to install application")
|
||||
public class ApplicationInstallation extends AndroidOperation implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "appIdentifier", value = "DeviceIdentifier", required = true)
|
||||
@ApiModelProperty(name = "appIdentifier", value = "Application Identifier", required = true)
|
||||
private String appIdentifier;
|
||||
|
||||
@ApiModelProperty(name = "type", value = "Application type(Enterprise/Web/public)", required = true)
|
||||
|
||||
@ -18,16 +18,29 @@
|
||||
|
||||
package org.wso2.carbon.mdm.services.android.bean;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* This class represents the information of uninstall application operation.
|
||||
*/
|
||||
@ApiModel(value = "ApplicationUninstallation",
|
||||
description = "This class carries all information related to application uninstallation.")
|
||||
public class ApplicationUninstallation extends AndroidOperation implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "appIdentifier", value = "The package name of the application to be uninstalled.", required = true)
|
||||
private String appIdentifier;
|
||||
|
||||
@ApiModelProperty(name = "type", value = "The type of the application. The following types of applications " +
|
||||
"are supported: enterprise, public and webapp.", required = true)
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(name = "url", value = "The URL of the application.", required = true)
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty(name = "name", value = "The name of the application.", required = true)
|
||||
private String name;
|
||||
|
||||
public String getAppIdentifier() {
|
||||
|
||||
@ -18,14 +18,21 @@
|
||||
|
||||
package org.wso2.carbon.mdm.services.android.bean;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This class represents the blacklist applications information.
|
||||
*/
|
||||
@ApiModel(value = "BlacklistApplications",
|
||||
description = "This class represents the blacklist applications information.")
|
||||
public class BlacklistApplications extends AndroidOperation implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "appIdentifiers", value = "A list of application package names to be blacklisted.",
|
||||
required = true)
|
||||
private List<String> appIdentifiers;
|
||||
|
||||
public List<String> getAppIdentifier() {
|
||||
|
||||
@ -18,13 +18,20 @@
|
||||
|
||||
package org.wso2.carbon.mdm.services.android.bean;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* This class represents the information of camera operation.
|
||||
*/
|
||||
@ApiModel(value = "Camera",
|
||||
description = "This class represents the information of camera operation.")
|
||||
public class Camera extends AndroidOperation implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "enabled", value = "Disable the camera on the device by assigning false as the value or " +
|
||||
"enable the camera on the device to function by defining true as the value.", required = true)
|
||||
private boolean enabled;
|
||||
|
||||
public boolean isEnabled() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user