/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using System.Diagnostics; using Native = Interop.MediaControllerPlaylist; namespace Tizen.Multimedia.Remoting { /// /// Represents metadata for media control. /// /// 4 public class MediaControlMetadata { /// /// Initializes a new instance of the class. /// /// 4 public MediaControlMetadata() { } internal MediaControlMetadata(IntPtr handle) { Debug.Assert(handle != IntPtr.Zero); Title = Native.GetMetadata(handle, MediaControllerNativeAttribute.Title); Artist = Native.GetMetadata(handle, MediaControllerNativeAttribute.Artist); Album = Native.GetMetadata(handle, MediaControllerNativeAttribute.Album); Author = Native.GetMetadata(handle, MediaControllerNativeAttribute.Author); Genre = Native.GetMetadata(handle, MediaControllerNativeAttribute.Genre); Duration = Native.GetMetadata(handle, MediaControllerNativeAttribute.Duration); Date = Native.GetMetadata(handle, MediaControllerNativeAttribute.Date); Copyright = Native.GetMetadata(handle, MediaControllerNativeAttribute.Copyright); Description = Native.GetMetadata(handle, MediaControllerNativeAttribute.Description); TrackNumber = Native.GetMetadata(handle, MediaControllerNativeAttribute.TrackNumber); AlbumArtPath = Native.GetMetadata(handle, MediaControllerNativeAttribute.Picture); } /// /// Gets or sets the title. /// /// 4 public string Title { get; set; } /// /// Gets or sets the artist. /// /// 4 public string Artist { get; set; } /// /// Gets or sets the album. /// /// 4 public string Album { get; set; } /// /// Gets or sets the author. /// /// 4 public string Author { get; set; } /// /// Gets or sets the genre. /// /// 4 public string Genre { get; set; } /// /// Gets or sets the duration. /// /// 4 public string Duration { get; set; } /// /// Gets or sets the date. /// /// 4 public string Date { get; set; } /// /// Gets or sets the copyright. /// /// 4 public string Copyright { get; set; } /// /// Gets or sets the description. /// /// 4 public string Description { get; set; } /// /// Gets or sets the track number. /// /// 4 public string TrackNumber { get; set; } /// /// Gets or sets the path of the album art. /// /// 4 public string AlbumArtPath { get; set; } } }