forked from jlcool/aliossflutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresponse.dart
44 lines (42 loc) · 985 Bytes
/
response.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class ProgressResponse {
final double currentSize;
final String key;
final double totalSize;
ProgressResponse({this.currentSize, this.totalSize,this.key});
double getProgress() {
// TODO: implement toString
return currentSize / totalSize;
}
}
class SignResponse {
bool success;
String url;
String key;
String msg;
SignResponse({this.success, this.url,this.msg,this.key});
}
class UploadResponse {
bool success;
String key;
String msg;
String servercallback;
UploadResponse({this.success, this.key,this.msg,this.servercallback});
}
class DownloadResponse {
bool success;
String path;
String key;
String msg;
DownloadResponse({this.success, this.path,this.msg,this.key});
}
class DeleteResponse {
bool success;
String key;
DeleteResponse({this.success,this.key});
}
class HeadObjectResponse {
bool success;
int lastModified;
String key;
HeadObjectResponse({this.success,this.lastModified,this.key});
}