/// <summary>
/// Get the Client Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ClientName { get; }
/// <summary>
/// Get the Custom Command.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Command { get; }
/// <summary>
/// Get the Bundle Data.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Bundle BundleData { get; }
}
}
/// <summary>
/// Get the Sserver Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ServerName { get; }
/// <summary>
/// Get the Result.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int Result { get; }
/// <summary>
/// Get the Bundle Data.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Bundle BundleData { get; }
}
}
/// <summary>
/// The constructor of MediaControllerClient class.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the access is denied for media controller client</exception>
public MediaControllerClient()
/// <summary>
/// ServerUpdated event is raised when server is changed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<ServerUpdatedEventArgs> ServerUpdated
{
add
/// <summary>
/// PlaybackUpdated event is raised when playback is changed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<PlaybackUpdatedEventArgs> PlaybackUpdated
{
add
/// <summary>
/// MetadataUpdated event is raised when metadata is changed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<MetadataUpdatedEventArgs> MetadataUpdated
{
add
/// <summary>
/// ShuffleModeUpdated event is raised when shuffle mode is changed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<ShuffleModeUpdatedEventArgs> ShuffleModeUpdated
{
add
/// <summary>
/// RepeatModeUpdated event is raised when server is changed
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<RepeatModeUpdatedEventArgs> RepeatModeUpdated
{
add
/// <summary>
/// CommandReply event is raised when reply for command is recieved
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<CustomCommandReplyEventArgs> CustomCommandReply
{
add
/// <summary>
/// gets latest server information </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>The name and state of the latest media controller server application: ServerInformation object</returns>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
public ServerInformation GetLatestServer()
/// <summary>
/// gets playback information for specific server </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="serverName"> Server Name </param>
/// <returns>The playback state and playback position of the specific media controller server application:MediaControllerPlayback object</returns>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// gets metadata information for specific server </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="serverName"> Server Name </param>
/// <returns>The metadata information of the specific media controller server application:MediaControllerMetadata object</returns>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// gets shuffle mode for specific server </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="serverName"> Server Name </param>
/// <returns>The shuffle mode of the specific media controller server application:MediaControllerShuffleMode enum</returns>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
}
/// <summary>
- /// gets repeat mode for specific server </summary>
+ /// gets repeat mode for specific server </summary>\
+ /// <since_tizen> 3 </since_tizen>
/// <param name="serverName"> Server Name </param>
/// <returns>The repeat mode of the specific media controller server application:MediaControllerRepeatMode enum</returns>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// Send customized command to server application </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="serverName"> Server Name </param>
/// <param name="command"> Command </param>
/// <param name="bundle"> Bundle data </param>
/// <summary>
/// Subscribe subscription type from specific server application </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="type"> Subscription Type </param>
/// <param name="serverName"> Server Name </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// Subscribe subscription type from specific server application </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="type"> Subscription Type </param>
/// <param name="serverName"> Server Name </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// gets activated server list </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <returns>The list of activated media controller server applications: IEnumerable of string</returns>
public Task<IEnumerable<string>> GetActivatedServerList()
{
/// <summary>
/// gets subscribed server list </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="subscriptionType"> Subscription Type </param>
/// <returns>The list of subscribed media controller server applications: IEnumerable of string</returns>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <summary>
/// Server state is unknown
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
None,
/// <summary>
/// Server is activated
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Activated,
/// <summary>
/// Server is deactivated
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Deactivated,
}
/// <summary>
/// Playback state is unknown
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
None,
/// <summary>
/// Playback is playing
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Play,
/// <summary>
/// Playback is paused
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Pause,
/// <summary>
/// Playback is next
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Next,
/// <summary>
/// Playback is prev
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Prev,
/// <summary>
/// Playback is fastforward
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
FastForward,
/// <summary>
/// Playback is rewind
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Rewind,
}
/// <summary>
/// Shuffle mode is On
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
On,
/// <summary>
/// Shuffle mode is Off
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Off,
}
/// <summary>
/// Repeat mode is On
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
On,
/// <summary>
/// Repeat mode is Off
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Off,
}
/// <summary>
/// The type of subscription is Server state
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
ServerState,
/// <summary>
/// The type of subscription is Playback
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Playback,
/// <summary>
/// The type of subscription is Metadata
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Metadata,
/// <summary>
/// The type of subscription is Shuffle mode
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
ShuffleMode,
/// <summary>
/// The type of subscription is Repeat mode
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
RepeatMode,
}
/// <summary>
/// Attribute is title
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Title,
/// <summary>
/// Attribute is artist
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Artist,
/// <summary>
/// Attribute is album
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Album,
/// <summary>
/// Attribute is author
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Author,
/// <summary>
/// Attribute is genre
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Genre,
/// <summary>
/// Attribute is duration
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Duration,
/// <summary>
/// Attribute is date
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Date,
/// <summary>
/// Attribute is copyright
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Copyright,
/// <summary>
/// Attribute is description
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Description,
/// <summary>
/// Attribute is track number
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
TrackNumber,
/// <summary>
/// Attribute is picture
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
Picture,
}
}
/// <summary>
/// The constructor of MediaControllerMetadata class.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerMetadata()
{
// Do nothing
/// <summary>
/// Set/Get the Title of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Title { get; set; }
/// <summary>
/// Set/Get the Artist of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Artist { get; set; }
/// <summary>
/// Set/Get the Album of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Album { get; set; }
/// <summary>
/// Set/Get the Author of media
/// </summary>
- public string Author { get; set; }
-
+ /// <since_tizen> 3 </since_tizen>
+ public string Author { get; set; }\r
+\r
/// <summary>
/// Set/Get the Genre of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Genre { get; set; }
/// <summary>
/// Set/Get the Duration of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Duration { get; set; }
/// <summary>
/// Set/Get the Date of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Date { get; set; }
/// <summary>
/// Set/Get the Copyright of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Copyright { get; set; }
/// <summary>
/// Set/Get the Description of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Description { get; set; }
/// <summary>
/// Set/Get the Track Number of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string TrackNumber { get; set; }
/// <summary>
/// Set/Get the Picture of media
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Picture { get; set; }
}
}
/// <summary>
/// The constructor of MediaControllerPlayback class.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="state">
/// The state of the playback which is playing in MediaConttoller server application
/// </param>
State = state;
Position = position;
- }
-
- /// <summary>
- /// Set/Get the State of playback information
- /// </summary>
+ }\r
+\r
+ /// <summary>
+ /// Set/Get the State of playback information
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerPlaybackState State { get; }
/// <summary>
/// Set/Get the Position of playback information
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ulong Position { get; }
}
}
/// <summary>
/// The constructor of MediaControllerServer class.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when the access is denied for media controller client</exception>
public MediaControllerServer()
/// <summary>
/// PlaybackStateCommandRecieved event is raised when client send command for playback
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<PlaybackStateCommandEventArgs> PlaybackStateCommand
{
add
/// <summary>
/// CustomCommandRecieved event is raised when client send customized command
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<CustomCommandEventArgs> CustomCommand
{
add
/// <summary>
/// Update playback state and playback position</summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="playback"> playback state and playback position </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <summary>
/// Update metadata information </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="metadata"> metadata information </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <summary>
/// Update shuffle mode </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="mode"> shuffle mode </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <summary>
/// Update repeat mode </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="mode"> repeat mode </param>
/// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
/// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
/// <summary>
/// Send reply for command from server to client </summary>
+ /// <since_tizen> 3 </since_tizen>
/// <param name="clientName"> client name to recieve reply </param>
/// <param name="result"> result to run command </param>
/// <param name="bundle"> Bundle to send various data </param>
/// <summary>
/// Get the Server Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ServerName { get; }
/// <summary>
/// Get the Metadata information.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerMetadata Metadata { get; }
}
}
/// <summary>
/// Get the Client Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ClientName { get; }
/// <summary>
/// Get the State of playback.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerPlaybackState State { get; }
}
}
/// <summary>
/// Get the Server Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ServerName { get; }
/// <summary>
/// Get the Playback Information.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerPlayback PlaybackInfo { get; }
}
}
/// <summary>
/// Get the Server Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ServerName { get; }
/// <summary>
/// Get the Repeat Mode.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerRepeatMode RepeatMode { get; }
}
}
/// <summary>
/// Get the Name of server
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string Name { get; }
/// <summary>
/// Get the State of server
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerServerState State { get; }
}
}
/// <summary>
/// Get the Server Information.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ServerInformation ServerInfo { get; }
}
}
/// <summary>
/// Get the Server Name.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public string ServerName { get; }
/// <summary>
/// Get the Shuffle Mode.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public MediaControllerShuffleMode ShuffleMode { get; }
}
}