2022-10-06 23:54:44 +02:00
|
|
|
namespace Piwigo.Client;
|
|
|
|
|
|
|
|
public class PiwigoClient : IPiwigoClient
|
|
|
|
{
|
2022-10-16 23:00:03 +02:00
|
|
|
public PiwigoClient(IGroupApi group, IImageApi image, IPermissionApi permission, ITagApi tag, IUserApi user, ISessionApi session, IAlbumApi album)
|
2022-10-06 23:54:44 +02:00
|
|
|
{
|
2022-10-15 00:23:49 +02:00
|
|
|
Group = group ?? throw new ArgumentNullException(nameof(group));
|
|
|
|
Image = image ?? throw new ArgumentNullException(nameof(image));
|
|
|
|
Permission = permission ?? throw new ArgumentNullException(nameof(permission));
|
|
|
|
Tag = tag ?? throw new ArgumentNullException(nameof(tag));
|
|
|
|
User = user ?? throw new ArgumentNullException(nameof(user));
|
|
|
|
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 IGroupApi Group { get; }
|
|
|
|
public IImageApi Image { get; }
|
|
|
|
public IPermissionApi Permission { get; }
|
|
|
|
public ITagApi Tag { get; }
|
|
|
|
public IUserApi User { 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
|
|
|
}
|