1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 10:32:49 -05:00

database adjustments and storage for attachments

This commit is contained in:
Kyle Spearrin
2017-06-30 14:41:57 -04:00
parent 6cea556ae1
commit 284078e946
17 changed files with 178 additions and 23 deletions

View File

@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
namespace Bit.Core.Models.Data
{
@ -12,7 +13,23 @@ namespace Bit.Core.Models.Data
public class MetaData
{
public long Size { get; set; }
private long _size;
[JsonIgnore]
public long Size
{
get { return _size; }
set { _size = value; }
}
// We serialize Size as a string since JSON (or Javascript) doesn't support full precision for long numbers
[JsonProperty("Size")]
public string SizeString
{
get { return _size.ToString(); }
set { _size = Convert.ToInt64(value); }
}
public string FileName { get; set; }
}
}