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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user