1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 03:23:23 +00:00

Send file model changes (#1293)

* Remove Url from SendFile.
Add file length hit to SendRequest

* Populate SendRequest file length
This commit is contained in:
Matt Gibson
2021-03-02 10:09:26 -06:00
committed by GitHub
parent 1098686d51
commit 2c13cef17c
8 changed files with 14 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ namespace Bit.Core.Models.Request
public class SendRequest
{
public SendType Type { get; set; }
public long? FileLength { get; set; }
public string Name { get; set; }
public string Notes { get; set; }
public string Key { get; set; }
@@ -19,9 +20,10 @@ namespace Bit.Core.Models.Request
public string Password { get; set; }
public bool Disabled { get; set; }
public SendRequest(Send send)
public SendRequest(Send send, long? fileLength)
{
Type = send.Type;
Type = send.Type ;
FileLength = fileLength;
Name = send.Name?.EncryptedString;
Notes = send.Notes?.EncryptedString;
MaxAccessCount = send.MaxAccessCount;