/// <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)); } }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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) { }
public StorageCommand(MediaDatabase database) : base(database) { }