Skip to content

Commit

Permalink
[MediaContent] Deprecate meaningless media group enum (Samsung#5939)
Browse files Browse the repository at this point in the history
* [MediaContent] Deprecate meaningless media group enum
  • Loading branch information
hsgwon authored Feb 14, 2024
1 parent cb8927a commit 9d0b01c
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ internal AudioInfo(Interop.MediaInfoHandle handle) : base(handle)
/// </summary>
/// <value>The composer from the metadata.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Composer { get; }

/// <summary>
Expand All @@ -106,15 +106,15 @@ internal AudioInfo(Interop.MediaInfoHandle handle) : base(handle)
/// </summary>
/// <value>The recorded date from the metadata.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public string DateRecorded { get; }

/// <summary>
/// Gets the copyright.
/// </summary>
/// <value>The copyright from the metadata.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Copyright { get; }

/// <summary>
Expand All @@ -129,39 +129,39 @@ internal AudioInfo(Interop.MediaInfoHandle handle) : base(handle)
/// </summary>
/// <value>The bit rate in bit per second.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public int BitRate { get; }

/// <summary>
/// Gets the bit per sample.
/// </summary>
/// <value>The bit per sample.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public int BitPerSample { get; }

/// <summary>
/// Gets the sample rate in hertz.
/// </summary>
/// <value>The sample rate in hertz.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public int SampleRate { get; }

/// <summary>
/// Gets the number of channels.
/// </summary>
/// <value>The number of channels.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Channels { get; }

/// <summary>
/// Gets the track duration in milliseconds.
/// </summary>
/// <value>The track duration in milliseconds.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public int Duration { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ internal BookInfo(Interop.MediaInfoHandle handle) : base(handle)
/// </summary>
/// <value>The published date.</value>
/// <since_tizen> 9 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public string DatePublished { get; }

/// <summary>
/// Gets the publisher of the book.
/// </summary>
/// <value>The publisher.</value>
/// <since_tizen> 9 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public string Publisher { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static class MediaInfoColumns
/// <seealso cref="MediaInfo.Timeline"/>
/// <seealso cref="DateTimeOffset.ToUnixTimeSeconds"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Timeline => "MEDIA_TIMELINE";

/// <summary>
Expand Down Expand Up @@ -225,7 +225,7 @@ public static class MediaInfoColumns
/// <seealso cref="AudioInfo.Composer"/>
/// <seealso cref="VideoInfo.Composer"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Composer => "MEDIA_COMPOSER";

/// <summary>
Expand All @@ -250,7 +250,7 @@ public static class MediaInfoColumns
/// <seealso cref="AudioInfo.DateRecorded"/>
/// <seealso cref="VideoInfo.DateRecorded"/>
/// <since_tizen> 4 </since_tizen>
[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";

/// <summary>
Expand All @@ -275,7 +275,7 @@ public static class MediaInfoColumns
/// <seealso cref="AudioInfo.Duration"/>
/// <seealso cref="VideoInfo.Duration"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Duration => "MEDIA_DURATION";

/// <summary>
Expand All @@ -287,7 +287,7 @@ public static class MediaInfoColumns
/// </remarks>
/// <seealso cref="MediaInfo.Longitude"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Longitude => "MEDIA_LONGITUDE";

/// <summary>
Expand All @@ -299,7 +299,7 @@ public static class MediaInfoColumns
/// </remarks>
/// <seealso cref="MediaInfo.Latitude"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Latitude => "MEDIA_LATITUDE";

/// <summary>
Expand All @@ -311,7 +311,7 @@ public static class MediaInfoColumns
/// </remarks>
/// <seealso cref="MediaInfo.Altitude"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Altitude => "MEDIA_ALTITUDE";

/// <summary>
Expand Down Expand Up @@ -358,7 +358,7 @@ public static class MediaInfoColumns
/// </remarks>
/// <seealso cref="MediaInfo.IsFavorite"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Favorite => "MEDIA_FAVOURITE";

/// <summary>
Expand All @@ -370,7 +370,7 @@ public static class MediaInfoColumns
/// </remarks>
/// <seealso cref="MediaInfo.IsDrm"/>
/// <since_tizen> 4 </since_tizen>
[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";
}

Expand Down Expand Up @@ -538,7 +538,7 @@ public static class TagColumns
/// </remarks>
/// <seealso cref="Tag.Name"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Name => "TAG_NAME";

/// <summary>
Expand All @@ -551,7 +551,7 @@ public static class TagColumns
/// <seealso cref="TagCommand.AddMedia(int, string)"/>
/// <seealso cref="TagCommand.RemoveMedia(int, string)"/>
/// <since_tizen> 4 </since_tizen>
[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";

/// <summary>
Expand All @@ -563,7 +563,7 @@ public static class TagColumns
/// </remarks>
/// <seealso cref="Tag.Id"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API12; Will be removed in API14.")]
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static string Id => "TAG_ID";
}

Expand Down Expand Up @@ -626,7 +626,7 @@ public static class BookmarkColumns
/// <seealso cref="MediaInfoCommand.CountFaceInfo(string, CountArguments)"/>
/// <seealso cref="MediaInfoCommand.SelectFaceInfo(string, SelectArguments)"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public static class FaceInfoColumns
{
/// <summary>
Expand All @@ -638,7 +638,7 @@ public static class FaceInfoColumns
/// </remarks>
/// <seealso cref="FaceInfo.Tag"/>
/// <since_tizen> 4 </since_tizen>
[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";

/// <summary>
Expand All @@ -650,7 +650,7 @@ public static class FaceInfoColumns
/// </remarks>
/// <seealso cref="FaceInfo.Id"/>
/// <since_tizen> 4 </since_tizen>
[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";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Tizen.Content.MediaContent
/// Represents the face information for the media.
/// </summary>
/// <since_tizen> 4 </since_tizen>
[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)
Expand Down Expand Up @@ -52,39 +52,39 @@ private static Rectangle GetRect(IntPtr faceHandle)
/// The coordinates of the rectangle are orientation-applied values.
/// </remarks>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public Rectangle Rect { get; }

/// <summary>
/// Gets the ID of face information.
/// </summary>
/// <value>The unique ID of face information.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public string Id { get; }

/// <summary>
/// Gets the media ID that the face information is added.
/// </summary>
/// <value>The media ID that the face information is added.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public string MediaInfoId { get; }

/// <summary>
/// Gets the tag.
/// </summary>
/// <value>The tag of face information.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public string Tag { get; }

/// <summary>
/// Gets the orientation of face information.
/// </summary>
/// <value>The orientation of face information.</value>
/// <since_tizen> 4 </since_tizen>
[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)
Expand All @@ -97,7 +97,7 @@ internal static FaceInfo FromHandle(IntPtr handle)
/// </summary>
/// <returns>A string representation of the current face info.</returns>
/// <since_tizen> 4 </since_tizen>
[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}";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Tizen.Content.MediaContent
/// </summary>
/// <seealso cref="Album"/>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public class FaceInfoCommand : MediaCommand
{
/// <summary>
Expand All @@ -33,7 +33,7 @@ public class FaceInfoCommand : MediaCommand
/// <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>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public FaceInfoCommand(MediaDatabase database) : base(database)
{
}
Expand All @@ -51,7 +51,7 @@ public FaceInfoCommand(MediaDatabase database) : base(database)
/// <exception cref="ArgumentException"><paramref name="faceInfoId"/> is a zero-length string, contains only white space.</exception>
/// <exception cref="UnauthorizedAccessException">The caller has no required privilege.</exception>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public bool Delete(string faceInfoId)
{
ValidateDatabase();
Expand All @@ -77,7 +77,7 @@ public bool Delete(string faceInfoId)
/// <exception cref="ObjectDisposedException">The <see cref="MediaDatabase"/> has already been disposed.</exception>
/// <exception cref="MediaDatabaseException">An error occurred while executing the command.</exception>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public MediaDataReader<FaceInfo> Select()
{
return Select(null);
Expand All @@ -92,7 +92,7 @@ public MediaDataReader<FaceInfo> Select()
/// <exception cref="ObjectDisposedException">The <see cref="MediaDatabase"/> has already been disposed.</exception>
/// <exception cref="MediaDatabaseException">An error occurred while executing the command.</exception>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public MediaDataReader<FaceInfo> Select(SelectArguments filter)
{
ValidateDatabase();
Expand All @@ -114,7 +114,7 @@ public MediaDataReader<FaceInfo> Select(SelectArguments filter)
/// <exception cref="ArgumentException"><paramref name="faceInfoId"/> is a zero-length string, contains only white space.</exception>
/// <exception cref="UnauthorizedAccessException">The caller has no required privilege.</exception>
/// <since_tizen> 4 </since_tizen>
[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();
Expand Down Expand Up @@ -166,7 +166,7 @@ public bool UpdateTag(string faceInfoId, string tag)
/// </exception>
/// <exception cref="UnauthorizedAccessException">The caller has no required privilege.</exception>
/// <since_tizen> 6 </since_tizen>
[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);
Expand All @@ -192,7 +192,7 @@ public FaceInfo Insert(string mediaId, Rectangle area, Orientation orientation)
/// </exception>
/// <exception cref="UnauthorizedAccessException">The caller has no required privilege.</exception>
/// <since_tizen> 6 </since_tizen>
[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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,31 +88,31 @@ internal ImageInfo(Interop.MediaInfoHandle handle) : base(handle)
/// </summary>
/// <value>The exposure time from EXIF.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public string ExposureTime { get; }

/// <summary>
/// Gets the FNumber from EXIF.
/// </summary>
/// <value>The FNumber from EXIF.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public double FNumber { get; }

/// <summary>
/// Gets the ISO from EXIF.
/// </summary>
/// <value>The iso from EXIF.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public int Iso { get; }

/// <summary>
/// Gets the model from EXIF.
/// </summary>
/// <value>The model from EXIF.</value>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API11; Will be removed in API13.")]
[Obsolete("Deprecated since API11. Will be removed in API13.")]
public string Model { get; }
}
}
Loading

0 comments on commit 9d0b01c

Please sign in to comment.