23 lines
1018 B
C#
23 lines
1018 B
C#
namespace Piwigo.Client;
|
|
|
|
public class PiwigoClient : IPiwigoClient
|
|
{
|
|
public PiwigoClient(IGroupApi group, IImageApi image, IPermissionApi permission, ITagApi tag, IUserApi user, ISessionApi session, IAlbumApi album)
|
|
{
|
|
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));
|
|
Album = album ?? throw new ArgumentNullException(nameof(album));
|
|
}
|
|
|
|
public IGroupApi Group { get; }
|
|
public IImageApi Image { get; }
|
|
public IPermissionApi Permission { get; }
|
|
public ITagApi Tag { get; }
|
|
public IUserApi User { get; }
|
|
public ISessionApi Session { get; }
|
|
public IAlbumApi Album { get; }
|
|
} |