37 lines
984 B
C#
37 lines
984 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DataProviders {
|
|
public class BucketFile {
|
|
|
|
public Guid Id { get; private set; }
|
|
public Guid SiteId { get; private set; }
|
|
public Guid UserId { get; private set; }
|
|
|
|
public DateTime? Published { get; private set; }
|
|
|
|
public string Name { get; private set; }
|
|
public byte[] Bytes { get; private set; }
|
|
public string ContentType { get; private set; }
|
|
|
|
public BucketFile(Guid id, Guid siteId, Guid userId, DateTime? published, string name, byte[] bytes, string contentType) {
|
|
Id = id;
|
|
SiteId = siteId;
|
|
UserId = userId;
|
|
|
|
Published = published;
|
|
|
|
Name = name;
|
|
Bytes = bytes;
|
|
ContentType = contentType;
|
|
}
|
|
|
|
public BucketFile(Guid id, Guid siteId, Guid userId, string name, byte[] bytes, string contentType)
|
|
: this(id, siteId, userId, null, name, bytes, contentType) { }
|
|
|
|
}
|
|
}
|