2022-10-06 23:54:44 +02:00
|
|
|
namespace Piwigo.Client;
|
|
|
|
|
|
|
|
public class PiwigoClient : IPiwigoClient
|
|
|
|
{
|
2022-10-25 17:19:13 +02:00
|
|
|
public PiwigoClient(IImageApi image, ITagApi tag, ISessionApi session, IAlbumApi album)
|
2022-10-06 23:54:44 +02:00
|
|
|
{
|
2022-10-15 00:23:49 +02:00
|
|
|
Image = image ?? throw new ArgumentNullException(nameof(image));
|
|
|
|
Tag = tag ?? throw new ArgumentNullException(nameof(tag));
|
|
|
|
Session = session ?? throw new ArgumentNullException(nameof(session));
|
2022-10-16 23:00:03 +02:00
|
|
|
Album = album ?? throw new ArgumentNullException(nameof(album));
|
2022-10-06 23:54:44 +02:00
|
|
|
}
|
2022-10-07 13:43:19 +02:00
|
|
|
|
2022-10-15 00:23:49 +02:00
|
|
|
public IImageApi Image { get; }
|
|
|
|
public ITagApi Tag { get; }
|
2022-10-15 00:07:59 +02:00
|
|
|
public ISessionApi Session { get; }
|
2022-10-16 23:00:03 +02:00
|
|
|
public IAlbumApi Album { get; }
|
2022-10-06 23:54:44 +02:00
|
|
|
}
|