32
32
33
33
import com .owncloud .android .lib .common .network .WebdavEntry ;
34
34
35
- import lombok .Getter ;
36
- import lombok .Setter ;
37
-
38
-
39
35
/**
40
36
* Contains the data of a versioned file from a WebDavEntry.
41
37
*/
@@ -48,10 +44,10 @@ public class FileVersion implements Parcelable, ServerFileInterface {
48
44
49
45
public static final String DIRECTORY = "DIR" ;
50
46
51
- @ Getter @ Setter private String mimeType ;
52
- @ Getter @ Setter private long fileLength ;
53
- @ Getter @ Setter private long modifiedTimestamp ;
54
- @ Getter private long localId ;
47
+ private String mimeType ;
48
+ private long fileLength ;
49
+ private long modifiedTimestamp ;
50
+ private long localId ;
55
51
56
52
@ Override
57
53
public boolean isFavorite () {
@@ -63,11 +59,24 @@ public String getFileName() {
63
59
return String .valueOf (modifiedTimestamp / 1000 );
64
60
}
65
61
62
+ @ Override
63
+ public String getMimeType () {
64
+ return mimeType ;
65
+ }
66
+
66
67
@ Override
67
68
public String getRemotePath () {
68
69
return "" ;
69
70
}
70
71
72
+ /**
73
+ * For file version this is the same as remoteId
74
+ */
75
+ @ Override
76
+ public long getLocalId () {
77
+ return localId ;
78
+ }
79
+
71
80
/**
72
81
* For file version this is the same as remoteId
73
82
*/
@@ -80,6 +89,27 @@ public boolean isFolder() {
80
89
return DIRECTORY .equals (mimeType );
81
90
}
82
91
92
+ @ Override
93
+ public long getFileLength () {
94
+ return 0 ;
95
+ }
96
+
97
+ public void setMimeType (String mimeType ) {
98
+ this .mimeType = mimeType ;
99
+ }
100
+
101
+ public void setFileLength (long fileLength ) {
102
+ this .fileLength = fileLength ;
103
+ }
104
+
105
+ public long getModifiedTimestamp () {
106
+ return modifiedTimestamp ;
107
+ }
108
+
109
+ public void setModifiedTimestamp (long modifiedTimestamp ) {
110
+ this .modifiedTimestamp = modifiedTimestamp ;
111
+ }
112
+
83
113
public boolean isHidden () {
84
114
return getFileName ().startsWith ("." );
85
115
}
0 commit comments