From 8ce3b6a8c36f2809d0031a18fc00416f0d34b349 Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Thu, 24 Aug 2017 12:21:19 +0530 Subject: [PATCH] code formatting --- .../android/bean/wrapper/FileTransfer.java | 23 ++++++++----------- .../bean/wrapper/FileTransferBeanWrapper.java | 3 --- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransfer.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransfer.java index 4ed253b41..9aa5b5fa0 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransfer.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransfer.java @@ -25,12 +25,11 @@ import java.io.Serializable; @ApiModel(value = "FileTransfer", - //todo description = "This class carries all information related to file transfer operation.") public class FileTransfer extends AndroidOperation implements Serializable { -//todo - @ApiModelProperty(name = "fileLocation", value = "FTP URL of file", required = true) - private String fileLocation; + + @ApiModelProperty(name = "ftpServerAddress", value = "FTP Server Address", required = true) + private String ftpServerAddress; @ApiModelProperty(name = "ftpUserName", value = "FTP User name", required = true) private String ftpUserName; @@ -41,21 +40,20 @@ public class FileTransfer extends AndroidOperation implements Serializable { @ApiModelProperty(name = "fileName", value = "File name", required = true) private String fileName; - public String getFileName(){ + public String getFileName() { return fileName; } - public void setFileName(String fileName){ + public void setFileName(String fileName) { this.fileName = fileName; } - - public String getFileLocation() { - return fileLocation; + public String getFtpServerAddress() { + return ftpServerAddress; } - public void setFileLocation(String fileLocation) { - this.fileLocation = fileLocation; + public void setFtpServerAddress(String ftpServerAddress) { + this.ftpServerAddress = ftpServerAddress; } public String getFtpUserName() { @@ -73,6 +71,5 @@ public class FileTransfer extends AndroidOperation implements Serializable { public void setFtpPassword(String ftpPassword) { this.ftpPassword = ftpPassword; } - - } + diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransferBeanWrapper.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransferBeanWrapper.java index 4794b05d7..8fe429e1c 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransferBeanWrapper.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/bean/wrapper/FileTransferBeanWrapper.java @@ -19,12 +19,9 @@ package org.wso2.carbon.mdm.services.android.bean.wrapper; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.wso2.carbon.mdm.services.android.bean.DeviceLock; import java.util.List; - - /** * This class is used to wrap the Notification bean with devices. */