This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
forked from jnightlee/webdav-teambition
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bean object use lombok to generate getter and setter
- Loading branch information
Showing
19 changed files
with
54 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 3 additions & 40 deletions
43
src/main/java/com/github/zxbu/webdavteambition/model/CreateFileRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
27 changes: 3 additions & 24 deletions
27
src/main/java/com/github/zxbu/webdavteambition/model/DownloadRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
19 changes: 3 additions & 16 deletions
19
src/main/java/com/github/zxbu/webdavteambition/model/FileGetRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 2 additions & 25 deletions
27
src/main/java/com/github/zxbu/webdavteambition/model/MoveRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
19 changes: 3 additions & 16 deletions
19
src/main/java/com/github/zxbu/webdavteambition/model/MoveRequestId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
35
src/main/java/com/github/zxbu/webdavteambition/model/Page.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
src/main/java/com/github/zxbu/webdavteambition/model/PathInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
35 changes: 3 additions & 32 deletions
35
src/main/java/com/github/zxbu/webdavteambition/model/RefreshUploadUrlRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.