using Microsoft.Extensions.Logging;
using DomainResults.Common;
using MongoDB.Driver;
using DataProviders.Abstractions;
namespace DataProviders.Buckets {
///
///
///
public interface IImageBucketDataProvider {
///
///
///
///
///
///
///
(Guid?, IDomainResult) Upload(Guid siteId, Guid userId, BucketFile file);
///
///
///
///
///
///
///
(List?, IDomainResult) UploadMany(Guid siteId, Guid userId, List files);
///
///
///
///
///
///
(BucketFile?, IDomainResult) Download(Guid siteId, Guid fileId);
///
///
///
///
///
///
///
(BucketFile?, IDomainResult) Download(Guid siteId, Guid userId, Guid fileId);
///
///
///
///
///
///
///
IDomainResult DeleteOne(Guid siteId, Guid userId, Guid fileId);
///
///
///
///
///
///
IDomainResult DeletMany(Guid siteId, Guid userId);
}
///
///
///
public class ImageBucketDataProvider : SpecificBucketDataProviderBase, IImageBucketDataProvider {
///
///
///
///
///
public ImageBucketDataProvider(
ILogger logger,
IMongoClient client
) : base(logger, client, "images") { }
}
}