From 9d0b01c91658f39069226a47e0391e55515c4862 Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Wed, 14 Feb 2024 17:31:48 +0900 Subject: [PATCH] [MediaContent] Deprecate meaningless media group enum (#5939) * [MediaContent] Deprecate meaningless media group enum --- .../Tizen.Content.MediaContent/AudioInfo.cs | 16 +++++----- .../Tizen.Content.MediaContent/BookInfo.cs | 4 +-- .../Tizen.Content.MediaContent/Columns.cs | 30 +++++++++--------- .../Tizen.Content.MediaContent/FaceInfo.cs | 14 ++++---- .../Tizen.Content.MediaContent/FaceInfoCommand.cs | 16 +++++----- .../Tizen.Content.MediaContent/ImageInfo.cs | 8 ++--- .../Tizen.Content.MediaContent/MediaInfo.cs | 16 +++++----- .../MediaInfoColumnKey.cs | 37 ++++++++++++++++++++++ .../Tizen.Content.MediaContent/MediaInfoCommand.cs | 22 ++++++------- .../Tizen.Content.MediaContent/Tag.cs | 8 ++--- .../Tizen.Content.MediaContent/TagCommand.cs | 36 ++++++++++----------- .../Tizen.Content.MediaContent/VideoInfo.cs | 26 +++++++-------- 12 files changed, 135 insertions(+), 98 deletions(-) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs index 87f0d62..6e2b516 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/AudioInfo.cs @@ -91,7 +91,7 @@ namespace Tizen.Content.MediaContent /// /// The composer from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Composer { get; } /// @@ -106,7 +106,7 @@ namespace Tizen.Content.MediaContent /// /// The recorded date from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string DateRecorded { get; } /// @@ -114,7 +114,7 @@ namespace Tizen.Content.MediaContent /// /// The copyright from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Copyright { get; } /// @@ -129,7 +129,7 @@ namespace Tizen.Content.MediaContent /// /// The bit rate in bit per second. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int BitRate { get; } /// @@ -137,7 +137,7 @@ namespace Tizen.Content.MediaContent /// /// The bit per sample. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int BitPerSample { get; } /// @@ -145,7 +145,7 @@ namespace Tizen.Content.MediaContent /// /// The sample rate in hertz. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int SampleRate { get; } /// @@ -153,7 +153,7 @@ namespace Tizen.Content.MediaContent /// /// The number of channels. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Channels { get; } /// @@ -161,7 +161,7 @@ namespace Tizen.Content.MediaContent /// /// The track duration in milliseconds. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Duration { get; } } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookInfo.cs index 20d8a92..60cdc0c 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/BookInfo.cs @@ -65,7 +65,7 @@ namespace Tizen.Content.MediaContent /// /// The published date. /// 9 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string DatePublished { get; } /// @@ -73,7 +73,7 @@ namespace Tizen.Content.MediaContent /// /// The publisher. /// 9 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Publisher { get; } } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs index 6cd5534..0baea56 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Columns.cs @@ -143,7 +143,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Timeline => "MEDIA_TIMELINE"; /// @@ -225,7 +225,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Composer => "MEDIA_COMPOSER"; /// @@ -250,7 +250,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string DateRecorded => "MEDIA_RECORDED_DATE"; /// @@ -275,7 +275,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Duration => "MEDIA_DURATION"; /// @@ -287,7 +287,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Longitude => "MEDIA_LONGITUDE"; /// @@ -299,7 +299,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Latitude => "MEDIA_LATITUDE"; /// @@ -311,7 +311,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Altitude => "MEDIA_ALTITUDE"; /// @@ -358,7 +358,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Favorite => "MEDIA_FAVOURITE"; /// @@ -370,7 +370,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string IsDrm => "MEDIA_IS_DRM"; } @@ -538,7 +538,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Name => "TAG_NAME"; /// @@ -551,7 +551,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Count => "TAG_MEDIA_COUNT"; /// @@ -563,7 +563,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public static string Id => "TAG_ID"; } @@ -626,7 +626,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public static class FaceInfoColumns { /// @@ -638,7 +638,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public static string Tag => "MEDIA_FACE_TAG"; /// @@ -650,7 +650,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public static string Id => "MEDIA_FACE_ID"; } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs index 6f7f600..c504471 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfo.cs @@ -22,7 +22,7 @@ namespace Tizen.Content.MediaContent /// Represents the face information for the media. /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public class FaceInfo { internal FaceInfo(IntPtr handle) @@ -52,7 +52,7 @@ namespace Tizen.Content.MediaContent /// The coordinates of the rectangle are orientation-applied values. /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public Rectangle Rect { get; } /// @@ -60,7 +60,7 @@ namespace Tizen.Content.MediaContent /// /// The unique ID of face information. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public string Id { get; } /// @@ -68,7 +68,7 @@ namespace Tizen.Content.MediaContent /// /// The media ID that the face information is added. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public string MediaInfoId { get; } /// @@ -76,7 +76,7 @@ namespace Tizen.Content.MediaContent /// /// The tag of face information. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public string Tag { get; } /// @@ -84,7 +84,7 @@ namespace Tizen.Content.MediaContent /// /// The orientation of face information. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public Orientation Orientation { get; } internal static FaceInfo FromHandle(IntPtr handle) @@ -97,7 +97,7 @@ namespace Tizen.Content.MediaContent /// /// A string representation of the current face info. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public override string ToString() => $"Id={Id}, MediaInfoId={MediaInfoId}, Rect=({Rect}), Tag={Tag}"; } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs index 1956dc0..19ea44a 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/FaceInfoCommand.cs @@ -23,7 +23,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public class FaceInfoCommand : MediaCommand { /// @@ -33,7 +33,7 @@ namespace Tizen.Content.MediaContent /// is null. /// has already been disposed. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public FaceInfoCommand(MediaDatabase database) : base(database) { } @@ -51,7 +51,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public bool Delete(string faceInfoId) { ValidateDatabase(); @@ -77,7 +77,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public MediaDataReader Select() { return Select(null); @@ -92,7 +92,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public MediaDataReader Select(SelectArguments filter) { ValidateDatabase(); @@ -114,7 +114,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public bool UpdateTag(string faceInfoId, string tag) { ValidateDatabase(); @@ -166,7 +166,7 @@ namespace Tizen.Content.MediaContent /// /// The caller has no required privilege. /// 6 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation) { return Insert(mediaId, area, orientation, null); @@ -192,7 +192,7 @@ namespace Tizen.Content.MediaContent /// /// The caller has no required privilege. /// 6 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation, string tag) { ValidateDatabase(); diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs index 768dce0..fd78b67 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/ImageInfo.cs @@ -88,7 +88,7 @@ namespace Tizen.Content.MediaContent /// /// The exposure time from EXIF. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public string ExposureTime { get; } /// @@ -96,7 +96,7 @@ namespace Tizen.Content.MediaContent /// /// The FNumber from EXIF. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public double FNumber { get; } /// @@ -104,7 +104,7 @@ namespace Tizen.Content.MediaContent /// /// The iso from EXIF. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public int Iso { get; } /// @@ -112,7 +112,7 @@ namespace Tizen.Content.MediaContent /// /// The model from EXIF. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public string Model { get; } } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs index a7c6e1d..34dbeff 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfo.cs @@ -120,7 +120,7 @@ namespace Tizen.Content.MediaContent /// otherwise the modified date. /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public DateTimeOffset Timeline { get; } /// @@ -135,7 +135,7 @@ namespace Tizen.Content.MediaContent /// /// The description from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Description { get; } /// @@ -143,7 +143,7 @@ namespace Tizen.Content.MediaContent /// /// The longitude. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public double Longitude { get; } /// @@ -151,7 +151,7 @@ namespace Tizen.Content.MediaContent /// /// The latitude. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public double Latitude { get; } /// @@ -159,7 +159,7 @@ namespace Tizen.Content.MediaContent /// /// The altitude. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public double Altitude { get; } /// @@ -167,7 +167,7 @@ namespace Tizen.Content.MediaContent /// /// The rating from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Rating { get; } /// @@ -175,7 +175,7 @@ namespace Tizen.Content.MediaContent /// /// true if media is set as favorite, otherwise false. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool IsFavorite { get; } /// @@ -190,7 +190,7 @@ namespace Tizen.Content.MediaContent /// /// A bool value indicating whether the media is DRM-protected. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool IsDrm { get; } /// diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs index 9748bb1..110d575 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoColumnKey.cs @@ -14,6 +14,8 @@ * limitations under the License. */ +using System; + namespace Tizen.Content.MediaContent { /// @@ -25,82 +27,117 @@ namespace Tizen.Content.MediaContent /// /// Display name. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] DisplayName, + /// /// Media type. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Type, + /// /// Mime type. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] MimeType, + /// /// File size. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Size, + /// /// Date added. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] DateAdded, + /// /// Date modified. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] DateModified, + /// /// Content title. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Title, + /// /// Artist. /// Artist, + /// /// Album artist. /// AlbumArtist, + /// /// Genre. /// Genre, + /// /// Composer. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Composer = 10, + /// /// Year. /// Year, + /// /// Date recorded. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] DateRecorded, + /// /// Copyright. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Copyright, + /// /// Track number. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] TrackNumber, + /// /// Description. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Description, + /// /// Longitude. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Longitude, + /// /// Latitude. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Latitude, + /// /// Altitude. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Altitude, + /// /// Rating. /// + [Obsolete("Deprecated since API12. Will be removed in API14.")] Rating = 20, } } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs index 77ac6d1..dea8e07 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs @@ -145,7 +145,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public int CountFaceInfo(string mediaId, CountArguments arguments) { ValidateDatabase(); @@ -166,7 +166,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public MediaDataReader SelectFaceInfo(string mediaId) { return SelectFaceInfo(mediaId, null); @@ -184,7 +184,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public MediaDataReader SelectFaceInfo(string mediaId, SelectArguments arguments) { ValidateDatabase(); @@ -223,7 +223,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int CountTag(string mediaId, CountArguments arguments) { ValidateDatabase(); @@ -244,7 +244,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader SelectTag(string mediaId) { return SelectTag(mediaId, null); @@ -262,7 +262,7 @@ namespace Tizen.Content.MediaContent /// is null. /// is a zero-length string, contains only white space. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader SelectTag(string mediaId, SelectArguments filter) { ValidateDatabase(); @@ -748,7 +748,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool UpdateFavorite(string mediaId, bool value) { ValidateDatabase(); @@ -882,7 +882,7 @@ namespace Tizen.Content.MediaContent /// The media is in the external USB storage. /// /// 4 - [Obsolete("Deprecated since API10; Will be removed in API12. Please use CreateThumbnail instead.")] + [Obsolete("Deprecated since API10. Will be removed in API12. Please use CreateThumbnail instead.")] public Task CreateThumbnailAsync(string mediaId) { return CreateThumbnailAsync(mediaId, CancellationToken.None); @@ -915,7 +915,7 @@ namespace Tizen.Content.MediaContent /// The media is in the external USB storage. /// /// 4 - [Obsolete("Deprecated since API10; Will be removed in API12. Please use CreateThumbnail instead.")] + [Obsolete("Deprecated since API10. Will be removed in API12. Please use CreateThumbnail instead.")] public Task CreateThumbnailAsync(string mediaId, CancellationToken cancellationToken) { ValidateDatabase(); @@ -1075,7 +1075,7 @@ namespace Tizen.Content.MediaContent /// The required feature is not supported. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public Task DetectFaceAsync(string mediaId) { return DetectFaceAsync(mediaId, CancellationToken.None); @@ -1114,7 +1114,7 @@ namespace Tizen.Content.MediaContent /// /// The required feature is not supported. /// 4 - [Obsolete("Deprecated since API11; Will be removed in API13.")] + [Obsolete("Deprecated since API11. Will be removed in API13.")] public Task DetectFaceAsync(string mediaId, CancellationToken cancellationToken) { if (Features.IsSupported(Features.FaceRecognition) == false) diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs index 2c3168c..99fdbd4 100755 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/Tag.cs @@ -24,7 +24,7 @@ namespace Tizen.Content.MediaContent /// a simplified and faster way of accessing media items. /// /// 3 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public class Tag { internal Tag(IntPtr handle) @@ -38,7 +38,7 @@ namespace Tizen.Content.MediaContent /// /// The unique ID of the tag. /// 3 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Id { get; } /// @@ -46,7 +46,7 @@ namespace Tizen.Content.MediaContent /// /// The name of the tag. /// 3 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Name { get; } internal static Tag FromHandle(IntPtr handle) => new Tag(handle); @@ -56,7 +56,7 @@ namespace Tizen.Content.MediaContent /// /// A string representation of the current tag. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public override string ToString() => $"Id={Id}, Name={Name}"; } diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs index 35eada2..b5fa3d5 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/TagCommand.cs @@ -25,7 +25,7 @@ namespace Tizen.Content.MediaContent /// /// /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public class TagCommand : MediaCommand { /// @@ -35,7 +35,7 @@ namespace Tizen.Content.MediaContent /// is null. /// has already been disposed. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public TagCommand(MediaDatabase database) : base(database) { } @@ -48,7 +48,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Count() { return Count(arguments: null); @@ -63,7 +63,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Count(CountArguments arguments) { ValidateDatabase(); @@ -84,7 +84,7 @@ namespace Tizen.Content.MediaContent /// is less than or equal to zero. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool Delete(int tagId) { ValidateDatabase(); @@ -117,7 +117,7 @@ namespace Tizen.Content.MediaContent /// is null. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public Tag Insert(string name) { ValidateDatabase(); @@ -158,7 +158,7 @@ namespace Tizen.Content.MediaContent /// is less than or equal to zero. /// The caller has no required privilege. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool UpdateName(int tagId, string name) { ValidateDatabase(); @@ -204,7 +204,7 @@ namespace Tizen.Content.MediaContent /// An error occurred while executing the command. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public Tag Select(int tagId) { ValidateDatabase(); @@ -246,7 +246,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader Select() { return Select(arguments: null); @@ -261,7 +261,7 @@ namespace Tizen.Content.MediaContent /// The has already been disposed. /// An error occurred while executing the command. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader Select(SelectArguments arguments) { ValidateDatabase(); @@ -279,7 +279,7 @@ namespace Tizen.Content.MediaContent /// An error occurred while executing the command. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int CountMedia(int tagId) { return CountMedia(tagId, null); @@ -296,7 +296,7 @@ namespace Tizen.Content.MediaContent /// An error occurred while executing the command. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int CountMedia(int tagId, CountArguments arguments) { ValidateDatabase(); @@ -320,7 +320,7 @@ namespace Tizen.Content.MediaContent /// An error occurred while executing the command. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader SelectMedia(int tagId) { return SelectMedia(tagId, null); @@ -337,7 +337,7 @@ namespace Tizen.Content.MediaContent /// An error occurred while executing the command. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public MediaDataReader SelectMedia(int tagId, SelectArguments filter) { ValidateDatabase(); @@ -423,7 +423,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool AddMedia(int tagId, string mediaId) { ValidationUtil.ValidateNotNullOrEmpty(mediaId, nameof(mediaId)); @@ -451,7 +451,7 @@ namespace Tizen.Content.MediaContent /// /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool AddMedia(int tagId, IEnumerable mediaIds) { return UpdateMember(tagId, mediaIds, Interop.Tag.AddMedia); @@ -471,7 +471,7 @@ namespace Tizen.Content.MediaContent /// is a zero-length string, contains only white space. /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool RemoveMedia(int tagId, string mediaId) { ValidationUtil.ValidateNotNullOrEmpty(mediaId, nameof(mediaId)); @@ -499,7 +499,7 @@ namespace Tizen.Content.MediaContent /// /// is less than or equal to zero. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public bool RemoveMedia(int tagId, IEnumerable mediaIds) { return UpdateMember(tagId, mediaIds, Interop.Tag.RemoveMedia); diff --git a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/VideoInfo.cs b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/VideoInfo.cs index 946b5ad..7b0fb30 100644 --- a/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/VideoInfo.cs +++ b/src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/VideoInfo.cs @@ -61,7 +61,7 @@ namespace Tizen.Content.MediaContent /// /// The album name from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Album { get; } /// @@ -69,7 +69,7 @@ namespace Tizen.Content.MediaContent /// /// The artist name from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Artist { get; } /// @@ -77,7 +77,7 @@ namespace Tizen.Content.MediaContent /// /// The album artist name from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string AlbumArtist { get; } /// @@ -85,7 +85,7 @@ namespace Tizen.Content.MediaContent /// /// The genre name from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Genre { get; } /// @@ -93,7 +93,7 @@ namespace Tizen.Content.MediaContent /// /// The composer name from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Composer { get; } /// @@ -101,7 +101,7 @@ namespace Tizen.Content.MediaContent /// /// The year from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Year { get; } /// @@ -109,7 +109,7 @@ namespace Tizen.Content.MediaContent /// /// The recorded date information from the metadata if exists; otherwise, the modified date of the file. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string DateRecorded { get; } /// @@ -117,7 +117,7 @@ namespace Tizen.Content.MediaContent /// /// The copyright notice from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string Copyright { get; } /// @@ -125,7 +125,7 @@ namespace Tizen.Content.MediaContent /// /// The track number from the metadata. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public string TrackNumber { get; } /// @@ -133,7 +133,7 @@ namespace Tizen.Content.MediaContent /// /// The bit rate of the video. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int BitRate { get; } /// @@ -141,7 +141,7 @@ namespace Tizen.Content.MediaContent /// /// The track duration of the video in milliseconds. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Duration { get; } /// @@ -149,7 +149,7 @@ namespace Tizen.Content.MediaContent /// /// The width of the video in pixels. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Width { get; } /// @@ -157,7 +157,7 @@ namespace Tizen.Content.MediaContent /// /// The height of the video in pixels. /// 4 - [Obsolete("Deprecated since API12; Will be removed in API14.")] + [Obsolete("Deprecated since API12. Will be removed in API14.")] public int Height { get; } } -- 2.7.4