using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nuclex.Networking.Gallery3 {
/// Base class for users of the gallery connection
public class ConnectionUser {
///
/// Initializes a new gallery entity (which is either an album or an item)
///
///
/// Connection holding the resources needed to issue requests to
/// the gallery installation
///
internal ConnectionUser(IGalleryConnection connection) {
this.connection = connection;
}
/// Determines whether the connection is still open
public bool IsConnected {
get { return this.connection.RequestFactory != null; }
}
/// Gallery connection resources
internal IGalleryConnection Connection {
get { return this.connection; }
}
/// Stores connection resources required to access gallery
private IGalleryConnection connection;
}
} // namespace Nuclex.Networking.Gallery3