TF-56 Send email with attachment
This commit is contained in:
@@ -8,10 +8,9 @@ class UploadRequest with EquatableMixin {
|
||||
final Uri uploadUrl;
|
||||
final FileInfo fileInfo;
|
||||
final AccountId accountId;
|
||||
final AccountRequest accountRequest;
|
||||
|
||||
UploadRequest(this.uploadUrl, this.accountId, this.fileInfo, this.accountRequest);
|
||||
UploadRequest(this.uploadUrl, this.accountId, this.fileInfo);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [uploadUrl, accountId, fileInfo, accountRequest];
|
||||
List<Object?> get props => [uploadUrl, accountId, fileInfo];
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class UploadResponse with EquatableMixin {
|
||||
}
|
||||
|
||||
extension UploadResponseExtension on UploadResponse {
|
||||
Attachment toAttachmentFile(String nameFile) {
|
||||
return Attachment(blobId: blobId, size: UnsignedInt(size), name: nameFile, type: type);
|
||||
Attachment toAttachmentFile(String nameFile, {MediaType? mediaType}) {
|
||||
return Attachment(blobId: blobId, size: UnsignedInt(size), name: nameFile, type: mediaType ?? type);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user