2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 namespace Tizen.Content.MediaContent
22 /// Provides the column names that can be used for Select and Count commands.
24 /// <seealso cref="SelectArguments"/>
25 /// <seealso cref="CountArguments"/>
26 /// <seealso cref="QueryArguments.FilterExpression"/>
27 /// <seealso cref="SelectArguments.SortOrder"/>
28 /// <seealso cref="AlbumCommand.Count(CountArguments)"/>
29 /// <seealso cref="AlbumCommand.CountMember(int, CountArguments)"/>
30 /// <seealso cref="AlbumCommand.Select(SelectArguments)"/>
31 /// <seealso cref="AlbumCommand.SelectMember(int, SelectArguments)"/>
32 /// <seealso cref="BookmarkCommand.Count(CountArguments)"/>
33 /// <seealso cref="BookmarkCommand.Select(SelectArguments)"/>
34 /// <seealso cref="FaceInfoCommand.Select(SelectArguments)"/>
35 /// <seealso cref="FolderCommand.Count(CountArguments)"/>
36 /// <seealso cref="FolderCommand.CountMedia(string, CountArguments)"/>
37 /// <seealso cref="FolderCommand.Select(SelectArguments)"/>
38 /// <seealso cref="FolderCommand.SelectMedia(string, SelectArguments)"/>
39 /// <seealso cref="MediaInfoCommand.CountMedia(CountArguments)"/>
40 /// <seealso cref="MediaInfoCommand.SelectMedia(SelectArguments)"/>
41 /// <seealso cref="PlaylistCommand.Count(CountArguments)"/>
42 /// <seealso cref="PlaylistCommand.Select(SelectArguments)"/>
43 /// <seealso cref="PlaylistCommand.CountMember(int, CountArguments)"/>
44 /// <seealso cref="PlaylistCommand.SelectMember(int, SelectArguments)"/>
45 /// <seealso cref="TagCommand.Count(CountArguments)"/>
46 /// <seealso cref="TagCommand.CountMedia(int, CountArguments)"/>
47 /// <seealso cref="TagCommand.Select(SelectArguments)"/>
48 /// <seealso cref="TagCommand.SelectMedia(int, SelectArguments)"/>
49 /// <since_tizen> 4 </since_tizen>
50 public static class MediaInfoColumns
53 /// Gets the column name for the ID of media.
55 /// <value>The column name for the ID of media.</value>
56 /// <remarks>The value type is string.</remarks>
57 /// <seealso cref="MediaInfo.Id"/>
58 /// <since_tizen> 4 </since_tizen>
59 public static string Id => "MEDIA_ID";
62 /// Gets the column name for the path of media.
64 /// <value>The column name for the file path of media.</value>
65 /// <remarks>The value type is string.</remarks>
66 /// <seealso cref="MediaInfo.Path"/>
67 /// <since_tizen> 4 </since_tizen>
68 public static string Path => "MEDIA_PATH";
71 /// Gets the column name for the display name of media.
73 /// <value>The column name for the display name of media.</value>
74 /// <remarks>The value type is string.</remarks>
75 /// <seealso cref="MediaInfo.DisplayName"/>
76 /// <since_tizen> 4 </since_tizen>
77 public static string DisplayName => "MEDIA_DISPLAY_NAME";
80 /// Gets the column name for the type of media.
82 /// <value>The column name for the type of media.</value>
84 /// The value type is integer.
85 /// The value should be an integer that is one of the <see cref="MediaContent.MediaType"/> values.
87 /// <seealso cref="MediaInfo.MediaType"/>
88 /// <since_tizen> 4 </since_tizen>
89 public static string MediaType => "MEDIA_TYPE";
92 /// Gets the column name for the mime type of media.
94 /// <value>The column name for the mime type of media.</value>
95 /// <remarks>The value type is string.</remarks>
96 /// <seealso cref="MediaInfo.MimeType"/>
97 /// <since_tizen> 4 </since_tizen>
98 public static string MimeType => "MEDIA_MIME_TYPE";
101 /// Gets the column name for the file size of media.
103 /// <value>The column name for the file size of media.</value>
104 /// <remarks>The value type is integer.</remarks>
105 /// <seealso cref="MediaInfo.FileSize"/>
106 /// <since_tizen> 4 </since_tizen>
107 public static string FileSize => "MEDIA_SIZE";
110 /// Gets the column name for the date added of media.
112 /// <value>The column name for the date added of media.</value>
114 /// The value type is integer.
115 /// <see cref="DateTimeOffset"/> needs to be converted into the unix time.
117 /// <seealso cref="MediaInfo.DateAdded"/>
118 /// <seealso cref="DateTimeOffset.ToUnixTimeSeconds"/>
119 /// <since_tizen> 4 </since_tizen>
120 public static string DateAdded => "MEDIA_ADDED_TIME";
123 /// Gets the column name for the date modified of media.
125 /// <value>The column name for the date modified of media.</value>
127 /// The value type is integer.
128 /// <see cref="DateTimeOffset"/> needs to be converted into the unix time.
130 /// <seealso cref="MediaInfo.DateModified"/>
131 /// <seealso cref="DateTimeOffset.ToUnixTimeSeconds"/>
132 /// <since_tizen> 4 </since_tizen>
133 public static string DateModified => "MEDIA_MODIFIED_TIME";
136 /// Gets the column name for the timeline of media.
138 /// <value>The column name for the timeline of media.</value>
140 /// The value type is integer.
141 /// <see cref="DateTimeOffset"/> needs to be converted into the unix time.
143 /// <seealso cref="MediaInfo.Timeline"/>
144 /// <seealso cref="DateTimeOffset.ToUnixTimeSeconds"/>
145 /// <since_tizen> 4 </since_tizen>
146 [Obsolete("Deprecated since API12. Will be removed in API14.")]
147 public static string Timeline => "MEDIA_TIMELINE";
150 /// Gets the column name for the thumbnail path of media.
152 /// <value>The column name for the thumbnail path of media.</value>
154 /// The value type is string.
156 /// <seealso cref="MediaInfo.ThumbnailPath"/>
157 /// <since_tizen> 4 </since_tizen>
158 public static string ThumbnailPath => "MEDIA_THUMBNAIL_PATH";
161 /// Gets the column name for the title of media.
163 /// <value>The column name for the title of media.</value>
165 /// The value type is string.
167 /// <seealso cref="MediaInfo.Title"/>
168 /// <since_tizen> 4 </since_tizen>
169 public static string Title => "MEDIA_TITLE";
172 /// Gets the column name for the album of media.
174 /// <value>The column name for the album of media.</value>
176 /// The value type is string.
178 /// <seealso cref="AudioInfo.Album"/>
179 /// <since_tizen> 4 </since_tizen>
180 public static string Album => "MEDIA_ALBUM";
183 /// Gets the column name for the artist of media.
185 /// <value>The column name for the artist of media.</value>
187 /// The value type is string.
189 /// <seealso cref="AudioInfo.Artist"/>
190 /// <seealso cref="VideoInfo.Artist"/>
191 /// <since_tizen> 4 </since_tizen>
192 public static string Artist => "MEDIA_ARTIST";
195 /// Gets the column name for the album artist of media.
197 /// <value>The column name for the album artist of media.</value>
199 /// The value type is string.
201 /// <seealso cref="AudioInfo.AlbumArtist"/>
202 /// <seealso cref="VideoInfo.AlbumArtist"/>
203 /// <since_tizen> 4 </since_tizen>
204 public static string AlbumArtist => "MEDIA_ALBUM_ARTIST";
207 /// Gets the column name for the genre of media.
209 /// <value>The column name for the genre of media.</value>
211 /// The value type is string.
213 /// <seealso cref="AudioInfo.Genre"/>
214 /// <seealso cref="VideoInfo.Genre"/>
215 /// <since_tizen> 4 </since_tizen>
216 public static string Genre => "MEDIA_GENRE";
219 /// Gets the column name for the composer of media.
221 /// <value>The column name for the composer of media.</value>
223 /// The value type is string.
225 /// <seealso cref="AudioInfo.Composer"/>
226 /// <seealso cref="VideoInfo.Composer"/>
227 /// <since_tizen> 4 </since_tizen>
228 [Obsolete("Deprecated since API12. Will be removed in API14.")]
229 public static string Composer => "MEDIA_COMPOSER";
232 /// Gets the column name for the year of media.
234 /// <value>The column name for the year of media.</value>
236 /// The value type is string.
238 /// <seealso cref="AudioInfo.Year"/>
239 /// <seealso cref="VideoInfo.Year"/>
240 /// <since_tizen> 4 </since_tizen>
241 public static string Year => "MEDIA_YEAR";
244 /// Gets the column name for the date recorded of media.
246 /// <value>The column name for the date recorded of media.</value>
248 /// The value type is string.
250 /// <seealso cref="AudioInfo.DateRecorded"/>
251 /// <seealso cref="VideoInfo.DateRecorded"/>
252 /// <since_tizen> 4 </since_tizen>
253 [Obsolete("Deprecated since API12. Will be removed in API14.")]
254 public static string DateRecorded => "MEDIA_RECORDED_DATE";
257 /// Gets the column name for the track number of media.
259 /// <value>The column name for the track number of media.</value>
261 /// The value type is string.
263 /// <seealso cref="AudioInfo.TrackNumber"/>
264 /// <seealso cref="VideoInfo.TrackNumber"/>
265 /// <since_tizen> 4 </since_tizen>
266 public static string TrackNumber => "MEDIA_TRACK_NUM";
269 /// Gets the column name for the duration of media.
271 /// <value>The column name for the duration of media.</value>
273 /// The value type is integer.
275 /// <seealso cref="AudioInfo.Duration"/>
276 /// <seealso cref="VideoInfo.Duration"/>
277 /// <since_tizen> 4 </since_tizen>
278 [Obsolete("Deprecated since API12. Will be removed in API14.")]
279 public static string Duration => "MEDIA_DURATION";
282 /// Gets the column name for the longitude of media.
284 /// <value>The column name for the longitude of media.</value>
286 /// The value type is real.
288 /// <seealso cref="MediaInfo.Longitude"/>
289 /// <since_tizen> 4 </since_tizen>
290 [Obsolete("Deprecated since API12. Will be removed in API14.")]
291 public static string Longitude => "MEDIA_LONGITUDE";
294 /// Gets the column name for the latitude of media.
296 /// <value>The column name for the latitude of media.</value>
298 /// The value type is real.
300 /// <seealso cref="MediaInfo.Latitude"/>
301 /// <since_tizen> 4 </since_tizen>
302 [Obsolete("Deprecated since API12. Will be removed in API14.")]
303 public static string Latitude => "MEDIA_LATITUDE";
306 /// Gets the column name for the altitude of media.
308 /// <value>The column name for the altitude of media.</value>
310 /// The value type is real.
312 /// <seealso cref="MediaInfo.Altitude"/>
313 /// <since_tizen> 4 </since_tizen>
314 [Obsolete("Deprecated since API12. Will be removed in API14.")]
315 public static string Altitude => "MEDIA_ALTITUDE";
318 /// Gets the column name for the width of media.
320 /// <value>The column name for the width of media.</value>
322 /// The value type is integer.
324 /// <seealso cref="ImageInfo.Width"/>
325 /// <seealso cref="VideoInfo.Width"/>
326 /// <since_tizen> 4 </since_tizen>
327 public static string Width => "MEDIA_WIDTH";
330 /// Gets the column name for the height of media.
332 /// <value>The column name for the height of media.</value>
334 /// The value type is integer.
336 /// <seealso cref="ImageInfo.Height"/>
337 /// <seealso cref="VideoInfo.Height"/>
338 /// <since_tizen> 4 </since_tizen>
339 public static string Height => "MEDIA_HEIGHT";
342 /// Gets the column name for the date taken of media.
344 /// <value>The column name for the date taken of media.</value>
346 /// The value type is integer.
348 /// <seealso cref="ImageInfo.DateTaken"/>
349 /// <since_tizen> 4 </since_tizen>
350 public static string DateTaken => "MEDIA_DATETAKEN";
353 /// Gets the column name for the favorite status of media.
355 /// <value>The column name for the favorite status of media.</value>
357 /// The value type is integer (1 : true, 0 : false).
359 /// <seealso cref="MediaInfo.IsFavorite"/>
360 /// <since_tizen> 4 </since_tizen>
361 [Obsolete("Deprecated since API12. Will be removed in API14.")]
362 public static string Favorite => "MEDIA_FAVOURITE";
365 /// Gets the column name for the drm of media.
367 /// <value>The column name for the drm of media.</value>
369 /// The value type is integer (1 : true, 0 : false).
371 /// <seealso cref="MediaInfo.IsDrm"/>
372 /// <since_tizen> 4 </since_tizen>
373 [Obsolete("Deprecated since API12. Will be removed in API14.")]
374 public static string IsDrm => "MEDIA_IS_DRM";
378 /// Provides the folder column names that can be used for Select and Count commands.
380 /// <seealso cref="SelectArguments"/>
381 /// <seealso cref="CountArguments"/>
382 /// <seealso cref="QueryArguments.FilterExpression"/>
383 /// <seealso cref="SelectArguments.SortOrder"/>
384 /// <seealso cref="AlbumCommand.Count(CountArguments)"/>
385 /// <seealso cref="AlbumCommand.Select(SelectArguments)"/>
386 /// <since_tizen> 4 </since_tizen>
387 public static class AlbumColumns
390 /// Gets the column name for the name of album.
392 /// <value>The column name for the name of album.</value>
394 /// The value type is string.
396 /// <seealso cref="Album.Name"/>
397 /// <since_tizen> 4 </since_tizen>
398 public static string Name => "MEDIA_ALBUM";
401 /// Gets the column name for the artist of album.
403 /// <value>The column name for the artist of album.</value>
405 /// The value type is string.
407 /// <seealso cref="Album.Artist"/>
408 /// <since_tizen> 4 </since_tizen>
409 public static string Artist => "MEDIA_ARTIST";
413 /// Provides the folder column names that can be used for Select and Count commands.
415 /// <seealso cref="SelectArguments"/>
416 /// <seealso cref="CountArguments"/>
417 /// <seealso cref="QueryArguments.FilterExpression"/>
418 /// <seealso cref="SelectArguments.SortOrder"/>
419 /// <seealso cref="FolderCommand.Count(CountArguments)"/>
420 /// <seealso cref="FolderCommand.Select(SelectArguments)"/>
421 /// <since_tizen> 4 </since_tizen>
422 public static class FolderColumns
425 /// Gets the column name for the ID of folder.
427 /// <value>The column name for the ID of folder.</value>
429 /// The value type is string.
431 /// <seealso cref="Folder.Id"/>
432 /// <since_tizen> 4 </since_tizen>
433 public static string Id => "FOLDER_ID";
436 /// Gets the column name for the path of folder.
438 /// <value>The column name for the path of folder.</value>
440 /// The value type is string.
442 /// <seealso cref="Folder.Path"/>
443 /// <since_tizen> 4 </since_tizen>
444 public static string Path => "FOLDER_PATH";
447 /// Gets the column name for the name of folder.
449 /// <value>The column name for the name of folder.</value>
451 /// The value type is string.
453 /// <seealso cref="Folder.Name"/>
454 /// <since_tizen> 4 </since_tizen>
455 public static string Name => "FOLDER_NAME";
459 /// Provides the playlist column names that can be used for Select and Count commands.
461 /// <seealso cref="SelectArguments"/>
462 /// <seealso cref="CountArguments"/>
463 /// <seealso cref="QueryArguments.FilterExpression"/>
464 /// <seealso cref="SelectArguments.SortOrder"/>
465 /// <seealso cref="PlaylistCommand.Count(CountArguments)"/>
466 /// <seealso cref="PlaylistCommand.Select(SelectArguments)"/>
467 /// <since_tizen> 4 </since_tizen>
468 public static class PlaylistColumns
471 /// Gets the column name for the name of playlist.
473 /// <value>The column name for the name of playlist.</value>
475 /// The value type is string.
477 /// <seealso cref="Playlist.Name"/>
478 /// <since_tizen> 4 </since_tizen>
479 public static string Name => "PLAYLIST_NAME";
482 /// Gets the column name for the ID of playlist.
484 /// <value>The column name for the ID of playlist.</value>
486 /// The value type is integer.
488 /// <seealso cref="Playlist.Id"/>
489 /// <since_tizen> 4 </since_tizen>
490 public static string Id => "PLAYLIST_ID";
493 /// Gets the column name for the member order of playlist.
495 /// <value>The column name for the member order of playlist.</value>
497 /// The value type is integer.
499 /// <seealso cref="PlaylistCommand.UpdatePlayOrder(int, PlayOrder)"/>
500 /// <since_tizen> 4 </since_tizen>
501 public static string MemberOrder => "PLAYLIST_MEMBER_ORDER";
504 /// Gets the column name for the number of members of playlist.
506 /// <value>The column name for the number of members of playlist.</value>
508 /// The value type is integer.
510 /// <seealso cref="PlaylistCommand.AddMember(int, string)"/>
511 /// <seealso cref="PlaylistCommand.RemoveMember(int, int)"/>
512 /// <since_tizen> 4 </since_tizen>
513 public static string Count => "PLAYLIST_MEDIA_COUNT";
517 /// Provides the tag column names that can be used for the <see cref="SelectArguments"/>.
519 /// <seealso cref="SelectArguments"/>
520 /// <seealso cref="CountArguments"/>
521 /// <seealso cref="QueryArguments.FilterExpression"/>
522 /// <seealso cref="SelectArguments.SortOrder"/>
523 /// <seealso cref="MediaInfoCommand.CountTag(string, CountArguments)"/>
524 /// <seealso cref="MediaInfoCommand.SelectTag(string, SelectArguments)"/>
525 /// <seealso cref="TagCommand.Count(CountArguments)"/>
526 /// <seealso cref="TagCommand.CountMedia(int, CountArguments)"/>
527 /// <seealso cref="TagCommand.Select(SelectArguments)"/>
528 /// <seealso cref="TagCommand.SelectMedia(int, SelectArguments)"/>
529 /// <since_tizen> 4 </since_tizen>
530 public static class TagColumns
533 /// Gets the column name for the name of tag.
535 /// <value>The column name for the name of tag.</value>
537 /// The value type is string.
539 /// <seealso cref="Tag.Name"/>
540 /// <since_tizen> 4 </since_tizen>
541 [Obsolete("Deprecated since API12. Will be removed in API14.")]
542 public static string Name => "TAG_NAME";
545 /// Gets the column name for the number of media of tag.
547 /// <value>The column name for the number of media of tag.</value>
549 /// The value type is integer.
551 /// <seealso cref="TagCommand.AddMedia(int, string)"/>
552 /// <seealso cref="TagCommand.RemoveMedia(int, string)"/>
553 /// <since_tizen> 4 </since_tizen>
554 [Obsolete("Deprecated since API12. Will be removed in API14.")]
555 public static string Count => "TAG_MEDIA_COUNT";
558 /// Gets the column name for the ID of tag.
560 /// <value>The column name for the ID of tag.</value>
562 /// The value type is integer.
564 /// <seealso cref="Tag.Id"/>
565 /// <since_tizen> 4 </since_tizen>
566 [Obsolete("Deprecated since API12. Will be removed in API14.")]
567 public static string Id => "TAG_ID";
571 /// Provides the bookmark column names that can be used for Select and Count commands.
573 /// <seealso cref="SelectArguments"/>
574 /// <seealso cref="CountArguments"/>
575 /// <seealso cref="QueryArguments.FilterExpression"/>
576 /// <seealso cref="SelectArguments.SortOrder"/>
577 /// <seealso cref="BookmarkCommand.Count(CountArguments)"/>
578 /// <seealso cref="BookmarkCommand.Select(SelectArguments)"/>
579 /// <seealso cref="MediaInfoCommand.CountBookmark(string, CountArguments)"/>
580 /// <seealso cref="MediaInfoCommand.SelectBookmark(string, SelectArguments)"/>
581 /// <since_tizen> 4 </since_tizen>
582 public static class BookmarkColumns
585 /// Gets the column name for the offset of the bookmark.
587 /// <value>The column name for the offset of the bookmark.</value>
589 /// The value type is integer.
591 /// <seealso cref="Bookmark.Offset"/>
592 /// <since_tizen> 4 </since_tizen>
593 public static string Offset => "BOOKMARK_MARKED_TIME";
596 /// Gets the column name for the ID of the bookmark.
598 /// <value>The column name for the ID of the bookmark.</value>
600 /// The value type is integer.
602 /// <seealso cref="Bookmark.Id"/>
603 /// <since_tizen> 4 </since_tizen>
604 public static string Id => "BOOKMARK_ID";
607 /// Gets the column name for the name of the bookmark.
609 /// <value>The column name for the name of the bookmark.</value>
611 /// The value type is string.
613 /// <seealso cref="Bookmark.Name"/>
614 /// <since_tizen> 4 </since_tizen>
615 public static string Name => "BOOKMARK_NAME";
619 /// Provides the face info column names that can be used for Select and Count commands.
621 /// <seealso cref="SelectArguments"/>
622 /// <seealso cref="CountArguments"/>
623 /// <seealso cref="QueryArguments.FilterExpression"/>
624 /// <seealso cref="SelectArguments.SortOrder"/>
625 /// <seealso cref="FaceInfoCommand.Select(SelectArguments)"/>
626 /// <seealso cref="MediaInfoCommand.CountFaceInfo(string, CountArguments)"/>
627 /// <seealso cref="MediaInfoCommand.SelectFaceInfo(string, SelectArguments)"/>
628 /// <since_tizen> 4 </since_tizen>
629 [Obsolete("Deprecated since API11. Will be removed in API13.")]
630 public static class FaceInfoColumns
633 /// Gets the column name for the tag of face information.
635 /// <value>The column name for the tag of face information.</value>
637 /// The value type is string.
639 /// <seealso cref="FaceInfo.Tag"/>
640 /// <since_tizen> 4 </since_tizen>
641 [Obsolete("Deprecated since API11. Will be removed in API13.")]
642 public static string Tag => "MEDIA_FACE_TAG";
645 /// Gets the column name for the ID of face information.
647 /// <value>The column name for the ID of face information.</value>
649 /// The value type is string.
651 /// <seealso cref="FaceInfo.Id"/>
652 /// <since_tizen> 4 </since_tizen>
653 [Obsolete("Deprecated since API11. Will be removed in API13.")]
654 public static string Id => "MEDIA_FACE_ID";