Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
* Bean object use lombok to generate getter and setter
Browse files Browse the repository at this point in the history
  • Loading branch information
eritpchy committed Feb 19, 2023
1 parent f819893 commit ed6d571
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 735 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ dependencies {
implementation("org.web3j:crypto:4.8.8-android") {
exclude group: 'org.slf4j', module: 'slf4j-api'
}

compileOnly("org.projectlombok:lombok:1.18.26")
annotationProcessor("org.projectlombok:lombok:1.18.26")
}
Original file line number Diff line number Diff line change
@@ -1,49 +1,12 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class CreateFileRequest {
private String check_name_mode = "refuse";
private String drive_id;
private String name;
private String parent_file_id;
private String type;

public String getCheck_name_mode() {
return check_name_mode;
}

public void setCheck_name_mode(String check_name_mode) {
this.check_name_mode = check_name_mode;
}

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getParent_file_id() {
return parent_file_id;
}

public void setParent_file_id(String parent_file_id) {
this.parent_file_id = parent_file_id;
}

public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class DownloadRequest {
private String drive_id;
private String file_id;
private Integer expire_sec = 14400;

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public String getFile_id() {
return file_id;
}

public void setFile_id(String file_id) {
this.file_id = file_id;
}

public Integer getExpire_sec() {
return expire_sec;
}

public void setExpire_sec(Integer expire_sec) {
this.expire_sec = expire_sec;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class FileGetRequest {
private String drive_id;
private String file_id;

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public String getFile_id() {
return file_id;
}

public void setFile_id(String file_id) {
this.file_id = file_id;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class FileListRequest extends Page{
private String drive_id;
private Boolean all = false;
Expand All @@ -8,60 +11,4 @@ public class FileListRequest extends Page{
private String image_url_process = "image/resize,w_1920/format,jpeg";
private String parent_file_id;
private String video_thumbnail_process = "video/snapshot,t_0,f_jpg,ar_auto,w_300";

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public Boolean getAll() {
return all;
}

public void setAll(Boolean all) {
this.all = all;
}

public String getFields() {
return fields;
}

public void setFields(String fields) {
this.fields = fields;
}

public String getImage_thumbnail_process() {
return image_thumbnail_process;
}

public void setImage_thumbnail_process(String image_thumbnail_process) {
this.image_thumbnail_process = image_thumbnail_process;
}

public String getImage_url_process() {
return image_url_process;
}

public void setImage_url_process(String image_url_process) {
this.image_url_process = image_url_process;
}

public String getParent_file_id() {
return parent_file_id;
}

public void setParent_file_id(String parent_file_id) {
this.parent_file_id = parent_file_id;
}

public String getVideo_thumbnail_process() {
return video_thumbnail_process;
}

public void setVideo_thumbnail_process(String video_thumbnail_process) {
this.video_thumbnail_process = video_thumbnail_process;
}
}
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
package com.github.zxbu.webdavteambition.model;

import java.util.List;
import lombok.Data;

@Data
public class MoveRequest {
private String drive_id;
private String file_id;
private String to_parent_file_id;

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public String getFile_id() {
return file_id;
}

public void setFile_id(String file_id) {
this.file_id = file_id;
}

public String getTo_parent_file_id() {
return to_parent_file_id;
}

public void setTo_parent_file_id(String to_parent_file_id) {
this.to_parent_file_id = to_parent_file_id;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class MoveRequestId {
private String ccpFileId;
private String id;

public String getCcpFileId() {
return ccpFileId;
}

public void setCcpFileId(String ccpFileId) {
this.ccpFileId = ccpFileId;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}
}
35 changes: 3 additions & 32 deletions src/main/java/com/github/zxbu/webdavteambition/model/Page.java
Original file line number Diff line number Diff line change
@@ -1,40 +1,11 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class Page {
private String marker;
private int limit;
private String order_by;
private String order_direction;

public String getMarker() {
return marker;
}

public void setMarker(String marker) {
this.marker = marker;
}

public int getLimit() {
return limit;
}

public void setLimit(int limit) {
this.limit = limit;
}

public String getOrder_by() {
return order_by;
}

public void setOrder_by(String order_by) {
this.order_by = order_by;
}

public String getOrder_direction() {
return order_direction;
}

public void setOrder_direction(String order_direction) {
this.order_direction = order_direction;
}
}
27 changes: 3 additions & 24 deletions src/main/java/com/github/zxbu/webdavteambition/model/PathInfo.java
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

@Data
public class PathInfo {
private String path;
private String parentPath;
private String name;

public String getPath() {
return path;
}

public void setPath(String path) {
this.path = path;
}

public String getParentPath() {
return parentPath;
}

public void setParentPath(String parentPath) {
this.parentPath = parentPath;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}
Original file line number Diff line number Diff line change
@@ -1,42 +1,13 @@
package com.github.zxbu.webdavteambition.model;

import lombok.Data;

import java.util.List;

@Data
public class RefreshUploadUrlRequest {
private String drive_id;
private List<UploadPreRequest.PartInfo> part_info_list;
private String file_id;
private String upload_id;

public String getDrive_id() {
return drive_id;
}

public void setDrive_id(String drive_id) {
this.drive_id = drive_id;
}

public List<UploadPreRequest.PartInfo> getPart_info_list() {
return part_info_list;
}

public void setPart_info_list(List<UploadPreRequest.PartInfo> part_info_list) {
this.part_info_list = part_info_list;
}

public String getFile_id() {
return file_id;
}

public void setFile_id(String file_id) {
this.file_id = file_id;
}

public String getUpload_id() {
return upload_id;
}

public void setUpload_id(String upload_id) {
this.upload_id = upload_id;
}
}
Loading

0 comments on commit ed6d571

Please sign in to comment.