Implemented simple and basic file downloading
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:marianum_mobile/api/apiParams.dart';
|
||||
|
||||
part 'downloadFileParams.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class DownloadFileParams extends ApiParams {
|
||||
String webdavSourcePath;
|
||||
String localTargetPath;
|
||||
String filename;
|
||||
|
||||
DownloadFileParams(this.webdavSourcePath, this.localTargetPath, this.filename);
|
||||
|
||||
factory DownloadFileParams.fromJson(Map<String, dynamic> json) => _$DownloadFileParamsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$DownloadFileParamsToJson(this);
|
||||
}
|
Reference in New Issue
Block a user