Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MediaCommand"/> class with the specified <see cref="MediaDatabase"/>.
        /// </summary>
        /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
        /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
        /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed.</exception>
        /// <since_tizen> 4 </since_tizen>
        protected MediaCommand(MediaDatabase database)
        {
            Database = database ?? throw new ArgumentNullException(nameof(database));

            if (database.IsDisposed)
            {
                throw new ObjectDisposedException(nameof(database));
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TagCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed of.</exception>
 /// <since_tizen> 4 </since_tizen>
 public TagCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BookmarkCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed.</exception>
 /// <since_tizen> 4 </since_tizen>
 public BookmarkCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed.</exception>
 /// <since_tizen> 4 </since_tizen>
 public FolderCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AlbumCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed.</exception>
 /// <since_tizen> 4 </since_tizen>
 public AlbumCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlaylistCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">A <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed.</exception>
 /// <since_tizen> 4 </since_tizen>
 public PlaylistCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FaceInfoCommand"/> class with the specified <see cref="MediaDatabase"/>.
 /// </summary>
 /// <param name="database">The <see cref="MediaDatabase"/> that the commands run on.</param>
 /// <exception cref="ArgumentNullException"><paramref name="database"/> is null.</exception>
 /// <exception cref="ObjectDisposedException"><paramref name="database"/> has already been disposed of.</exception>
 /// <since_tizen> 4 </since_tizen>
 public FaceInfoCommand(MediaDatabase database) : base(database)
 {
 }
Ejemplo n.º 8
0
 public StorageCommand(MediaDatabase database) : base(database)
 {
 }