mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 01:33:22 +00:00
attachments on view page abd device actions
This commit is contained in:
@@ -20,5 +20,17 @@ namespace Bit.Core.Models.View
|
||||
public string SizeName { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public SymmetricCryptoKey Key { get; set; }
|
||||
|
||||
public long FileSize
|
||||
{
|
||||
get
|
||||
{
|
||||
if(!string.IsNullOrWhiteSpace(Size) && long.TryParse(Size, out var s))
|
||||
{
|
||||
return s;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user