Table of Contents

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>
IBufferMessage
IMessage
Inherited Members

Constructors

NowPlayingInfo()

public NowPlayingInfo()

NowPlayingInfo(NowPlayingInfo)

public NowPlayingInfo(NowPlayingInfo other)

Parameters

other NowPlayingInfo

Fields

AlbumFieldNumber

Field number for the "album" field.

public const int AlbumFieldNumber = 1

Field Value

int

ArtistFieldNumber

Field number for the "artist" field.

public const int ArtistFieldNumber = 2

Field Value

int

ArtworkDataDigestFieldNumber

Field number for the "artworkDataDigest" field.

public const int ArtworkDataDigestFieldNumber = 16

Field Value

int

DurationFieldNumber

Field number for the "duration" field.

public const int DurationFieldNumber = 3

Field Value

int

ElapsedTimeFieldNumber

Field number for the "elapsedTime" field.

public const int ElapsedTimeFieldNumber = 4

Field Value

int

IsAdvertisementFieldNumber

Field number for the "isAdvertisement" field.

public const int IsAdvertisementFieldNumber = 18

Field Value

int

IsAlwaysLiveFieldNumber

Field number for the "isAlwaysLive" field.

public const int IsAlwaysLiveFieldNumber = 17

Field Value

int

IsExplicitTrackFieldNumber

Field number for the "isExplicitTrack" field.

public const int IsExplicitTrackFieldNumber = 11

Field Value

int

IsMusicAppFieldNumber

Field number for the "isMusicApp" field.

public const int IsMusicAppFieldNumber = 12

Field Value

int

PlaybackRateFieldNumber

Field number for the "playbackRate" field.

public const int PlaybackRateFieldNumber = 5

Field Value

int

RadioStationHashFieldNumber

Field number for the "radioStationHash" field.

public const int RadioStationHashFieldNumber = 14

Field Value

int

RadioStationIdentifierFieldNumber

Field number for the "radioStationIdentifier" field.

public const int RadioStationIdentifierFieldNumber = 13

Field Value

int

RadioStationNameFieldNumber

Field number for the "radioStationName" field.

public const int RadioStationNameFieldNumber = 15

Field Value

int

RepeatModeFieldNumber

Field number for the "repeatMode" field.

public const int RepeatModeFieldNumber = 6

Field Value

int

ShuffleModeFieldNumber

Field number for the "shuffleMode" field.

public const int ShuffleModeFieldNumber = 7

Field Value

int

TimestampFieldNumber

Field number for the "timestamp" field.

public const int TimestampFieldNumber = 8

Field Value

int

TitleFieldNumber

Field number for the "title" field.

public const int TitleFieldNumber = 9

Field Value

int

UniqueIdentifierFieldNumber

Field number for the "uniqueIdentifier" field.

public const int UniqueIdentifierFieldNumber = 10

Field Value

int

Properties

Album

public string Album { get; set; }

Property Value

string

Artist

public string Artist { get; set; }

Property Value

string

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

double

ElapsedTime

public double ElapsedTime { get; set; }

Property Value

double

HasAlbum

Gets whether the "album" field is set

public bool HasAlbum { get; }

Property Value

bool

HasArtist

Gets whether the "artist" field is set

public bool HasArtist { get; }

Property Value

bool

HasArtworkDataDigest

Gets whether the "artworkDataDigest" field is set

public bool HasArtworkDataDigest { get; }

Property Value

bool

HasDuration

Gets whether the "duration" field is set

public bool HasDuration { get; }

Property Value

bool

HasElapsedTime

Gets whether the "elapsedTime" field is set

public bool HasElapsedTime { get; }

Property Value

bool

HasIsAdvertisement

Gets whether the "isAdvertisement" field is set

public bool HasIsAdvertisement { get; }

Property Value

bool

HasIsAlwaysLive

Gets whether the "isAlwaysLive" field is set

public bool HasIsAlwaysLive { get; }

Property Value

bool

HasIsExplicitTrack

Gets whether the "isExplicitTrack" field is set

public bool HasIsExplicitTrack { get; }

Property Value

bool

HasIsMusicApp

Gets whether the "isMusicApp" field is set

public bool HasIsMusicApp { get; }

Property Value

bool

HasPlaybackRate

Gets whether the "playbackRate" field is set

public bool HasPlaybackRate { get; }

Property Value

bool

HasRadioStationHash

Gets whether the "radioStationHash" field is set

public bool HasRadioStationHash { get; }

Property Value

bool

HasRadioStationIdentifier

Gets whether the "radioStationIdentifier" field is set

public bool HasRadioStationIdentifier { get; }

Property Value

bool

HasRadioStationName

Gets whether the "radioStationName" field is set

public bool HasRadioStationName { get; }

Property Value

bool

HasRepeatMode

Gets whether the "repeatMode" field is set

public bool HasRepeatMode { get; }

Property Value

bool

HasShuffleMode

Gets whether the "shuffleMode" field is set

public bool HasShuffleMode { get; }

Property Value

bool

HasTimestamp

Gets whether the "timestamp" field is set

public bool HasTimestamp { get; }

Property Value

bool

HasTitle

Gets whether the "title" field is set

public bool HasTitle { get; }

Property Value

bool

HasUniqueIdentifier

Gets whether the "uniqueIdentifier" field is set

public bool HasUniqueIdentifier { get; }

Property Value

bool

IsAdvertisement

public bool IsAdvertisement { get; set; }

Property Value

bool

IsAlwaysLive

public bool IsAlwaysLive { get; set; }

Property Value

bool

IsExplicitTrack

public bool IsExplicitTrack { get; set; }

Property Value

bool

IsMusicApp

public bool IsMusicApp { get; set; }

Property Value

bool

Parser

public static MessageParser<NowPlayingInfo> Parser { get; }

Property Value

MessageParser<NowPlayingInfo>

PlaybackRate

public float PlaybackRate { get; set; }

Property Value

float

RadioStationHash

public string RadioStationHash { get; set; }

Property Value

string

RadioStationIdentifier

public long RadioStationIdentifier { get; set; }

Property Value

long

RadioStationName

public string RadioStationName { get; set; }

Property Value

string

RepeatMode

public RepeatMode.Types.Enum RepeatMode { get; set; }

Property Value

RepeatMode.Types.Enum

ShuffleMode

public ShuffleMode.Types.Enum ShuffleMode { get; set; }

Property Value

ShuffleMode.Types.Enum

Timestamp

public double Timestamp { get; set; }

Property Value

double

Title

public string Title { get; set; }

Property Value

string

UniqueIdentifier

public ulong UniqueIdentifier { get; set; }

Property Value

ulong

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

other NowPlayingInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

other NowPlayingInfo

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

input CodedInputStream

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

output CodedOutputStream

Coded output stream to write the data to. Must not be null.