Class NowPlayingInfo
- Namespace
- AppleTvControlLibrary.Mrp.Protobuf
- Assembly
- AppleTvControlLibrary.Mrp.dll
public sealed class NowPlayingInfo : IMessage<NowPlayingInfo>, IEquatable<NowPlayingInfo>, IDeepCloneable<NowPlayingInfo>, IBufferMessage, IMessage
- Inheritance
-
NowPlayingInfo
- Implements
-
IMessage<NowPlayingInfo>IDeepCloneable<NowPlayingInfo>IBufferMessageIMessage
- Inherited Members
Constructors
NowPlayingInfo()
public NowPlayingInfo()
NowPlayingInfo(NowPlayingInfo)
public NowPlayingInfo(NowPlayingInfo other)
Parameters
otherNowPlayingInfo
Fields
AlbumFieldNumber
Field number for the "album" field.
public const int AlbumFieldNumber = 1
Field Value
ArtistFieldNumber
Field number for the "artist" field.
public const int ArtistFieldNumber = 2
Field Value
ArtworkDataDigestFieldNumber
Field number for the "artworkDataDigest" field.
public const int ArtworkDataDigestFieldNumber = 16
Field Value
DurationFieldNumber
Field number for the "duration" field.
public const int DurationFieldNumber = 3
Field Value
ElapsedTimeFieldNumber
Field number for the "elapsedTime" field.
public const int ElapsedTimeFieldNumber = 4
Field Value
IsAdvertisementFieldNumber
Field number for the "isAdvertisement" field.
public const int IsAdvertisementFieldNumber = 18
Field Value
IsAlwaysLiveFieldNumber
Field number for the "isAlwaysLive" field.
public const int IsAlwaysLiveFieldNumber = 17
Field Value
IsExplicitTrackFieldNumber
Field number for the "isExplicitTrack" field.
public const int IsExplicitTrackFieldNumber = 11
Field Value
IsMusicAppFieldNumber
Field number for the "isMusicApp" field.
public const int IsMusicAppFieldNumber = 12
Field Value
PlaybackRateFieldNumber
Field number for the "playbackRate" field.
public const int PlaybackRateFieldNumber = 5
Field Value
RadioStationHashFieldNumber
Field number for the "radioStationHash" field.
public const int RadioStationHashFieldNumber = 14
Field Value
RadioStationIdentifierFieldNumber
Field number for the "radioStationIdentifier" field.
public const int RadioStationIdentifierFieldNumber = 13
Field Value
RadioStationNameFieldNumber
Field number for the "radioStationName" field.
public const int RadioStationNameFieldNumber = 15
Field Value
RepeatModeFieldNumber
Field number for the "repeatMode" field.
public const int RepeatModeFieldNumber = 6
Field Value
ShuffleModeFieldNumber
Field number for the "shuffleMode" field.
public const int ShuffleModeFieldNumber = 7
Field Value
TimestampFieldNumber
Field number for the "timestamp" field.
public const int TimestampFieldNumber = 8
Field Value
TitleFieldNumber
Field number for the "title" field.
public const int TitleFieldNumber = 9
Field Value
UniqueIdentifierFieldNumber
Field number for the "uniqueIdentifier" field.
public const int UniqueIdentifierFieldNumber = 10
Field Value
Properties
Album
public string Album { get; set; }
Property Value
Artist
public string Artist { get; set; }
Property Value
ArtworkDataDigest
public ByteString ArtworkDataDigest { get; set; }
Property Value
- ByteString
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Duration
public double Duration { get; set; }
Property Value
ElapsedTime
public double ElapsedTime { get; set; }
Property Value
HasAlbum
Gets whether the "album" field is set
public bool HasAlbum { get; }
Property Value
HasArtist
Gets whether the "artist" field is set
public bool HasArtist { get; }
Property Value
HasArtworkDataDigest
Gets whether the "artworkDataDigest" field is set
public bool HasArtworkDataDigest { get; }
Property Value
HasDuration
Gets whether the "duration" field is set
public bool HasDuration { get; }
Property Value
HasElapsedTime
Gets whether the "elapsedTime" field is set
public bool HasElapsedTime { get; }
Property Value
HasIsAdvertisement
Gets whether the "isAdvertisement" field is set
public bool HasIsAdvertisement { get; }
Property Value
HasIsAlwaysLive
Gets whether the "isAlwaysLive" field is set
public bool HasIsAlwaysLive { get; }
Property Value
HasIsExplicitTrack
Gets whether the "isExplicitTrack" field is set
public bool HasIsExplicitTrack { get; }
Property Value
HasIsMusicApp
Gets whether the "isMusicApp" field is set
public bool HasIsMusicApp { get; }
Property Value
HasPlaybackRate
Gets whether the "playbackRate" field is set
public bool HasPlaybackRate { get; }
Property Value
HasRadioStationHash
Gets whether the "radioStationHash" field is set
public bool HasRadioStationHash { get; }
Property Value
HasRadioStationIdentifier
Gets whether the "radioStationIdentifier" field is set
public bool HasRadioStationIdentifier { get; }
Property Value
HasRadioStationName
Gets whether the "radioStationName" field is set
public bool HasRadioStationName { get; }
Property Value
HasRepeatMode
Gets whether the "repeatMode" field is set
public bool HasRepeatMode { get; }
Property Value
HasShuffleMode
Gets whether the "shuffleMode" field is set
public bool HasShuffleMode { get; }
Property Value
HasTimestamp
Gets whether the "timestamp" field is set
public bool HasTimestamp { get; }
Property Value
HasTitle
Gets whether the "title" field is set
public bool HasTitle { get; }
Property Value
HasUniqueIdentifier
Gets whether the "uniqueIdentifier" field is set
public bool HasUniqueIdentifier { get; }
Property Value
IsAdvertisement
public bool IsAdvertisement { get; set; }
Property Value
IsAlwaysLive
public bool IsAlwaysLive { get; set; }
Property Value
IsExplicitTrack
public bool IsExplicitTrack { get; set; }
Property Value
IsMusicApp
public bool IsMusicApp { get; set; }
Property Value
Parser
public static MessageParser<NowPlayingInfo> Parser { get; }
Property Value
- MessageParser<NowPlayingInfo>
PlaybackRate
public float PlaybackRate { get; set; }
Property Value
RadioStationHash
public string RadioStationHash { get; set; }
Property Value
RadioStationIdentifier
public long RadioStationIdentifier { get; set; }
Property Value
RadioStationName
public string RadioStationName { get; set; }
Property Value
RepeatMode
public RepeatMode.Types.Enum RepeatMode { get; set; }
Property Value
ShuffleMode
public ShuffleMode.Types.Enum ShuffleMode { get; set; }
Property Value
Timestamp
public double Timestamp { get; set; }
Property Value
Title
public string Title { get; set; }
Property Value
UniqueIdentifier
public ulong UniqueIdentifier { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearAlbum()
Clears the value of the "album" field
public void ClearAlbum()
ClearArtist()
Clears the value of the "artist" field
public void ClearArtist()
ClearArtworkDataDigest()
Clears the value of the "artworkDataDigest" field
public void ClearArtworkDataDigest()
ClearDuration()
Clears the value of the "duration" field
public void ClearDuration()
ClearElapsedTime()
Clears the value of the "elapsedTime" field
public void ClearElapsedTime()
ClearIsAdvertisement()
Clears the value of the "isAdvertisement" field
public void ClearIsAdvertisement()
ClearIsAlwaysLive()
Clears the value of the "isAlwaysLive" field
public void ClearIsAlwaysLive()
ClearIsExplicitTrack()
Clears the value of the "isExplicitTrack" field
public void ClearIsExplicitTrack()
ClearIsMusicApp()
Clears the value of the "isMusicApp" field
public void ClearIsMusicApp()
ClearPlaybackRate()
Clears the value of the "playbackRate" field
public void ClearPlaybackRate()
ClearRadioStationHash()
Clears the value of the "radioStationHash" field
public void ClearRadioStationHash()
ClearRadioStationIdentifier()
Clears the value of the "radioStationIdentifier" field
public void ClearRadioStationIdentifier()
ClearRadioStationName()
Clears the value of the "radioStationName" field
public void ClearRadioStationName()
ClearRepeatMode()
Clears the value of the "repeatMode" field
public void ClearRepeatMode()
ClearShuffleMode()
Clears the value of the "shuffleMode" field
public void ClearShuffleMode()
ClearTimestamp()
Clears the value of the "timestamp" field
public void ClearTimestamp()
ClearTitle()
Clears the value of the "title" field
public void ClearTitle()
ClearUniqueIdentifier()
Clears the value of the "uniqueIdentifier" field
public void ClearUniqueIdentifier()
Clone()
Creates a deep clone of this object.
public NowPlayingInfo Clone()
Returns
- NowPlayingInfo
A deep clone of this object.
Equals(NowPlayingInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NowPlayingInfo other)
Parameters
otherNowPlayingInfoAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(NowPlayingInfo)
Merges the given message into this one.
public void MergeFrom(NowPlayingInfo other)
Parameters
otherNowPlayingInfo
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.