Table of Contents

Class NowPlayingPlayer

Namespace
AppleTvControlLibrary.Mrp.Protobuf
Assembly
AppleTvControlLibrary.Mrp.dll
public sealed class NowPlayingPlayer : IMessage<NowPlayingPlayer>, IEquatable<NowPlayingPlayer>, IDeepCloneable<NowPlayingPlayer>, IBufferMessage, IMessage
Inheritance
NowPlayingPlayer
Implements
IDeepCloneable<NowPlayingPlayer>
IBufferMessage
IMessage
Inherited Members

Constructors

NowPlayingPlayer()

public NowPlayingPlayer()

NowPlayingPlayer(NowPlayingPlayer)

public NowPlayingPlayer(NowPlayingPlayer other)

Parameters

other NowPlayingPlayer

Fields

AudioSessionIDFieldNumber

Field number for the "audioSessionID" field.

public const int AudioSessionIDFieldNumber = 6

Field Value

int

AudioSessionTypeFieldNumber

Field number for the "audioSessionType" field.

public const int AudioSessionTypeFieldNumber = 4

Field Value

int

DisplayNameFieldNumber

Field number for the "displayName" field.

public const int DisplayNameFieldNumber = 2

Field Value

int

IconURLFieldNumber

Field number for the "iconURL" field.

public const int IconURLFieldNumber = 7

Field Value

int

IdentifierFieldNumber

Field number for the "identifier" field.

public const int IdentifierFieldNumber = 1

Field Value

int

IsDefaultPlayerFieldNumber

Field number for the "isDefaultPlayer" field.

public const int IsDefaultPlayerFieldNumber = 3

Field Value

int

MxSessionIDsFieldNumber

Field number for the "mxSessionIDs" field.

public const int MxSessionIDsFieldNumber = 5

Field Value

int

Properties

AudioSessionID

public uint AudioSessionID { get; set; }

Property Value

uint

AudioSessionType

public int AudioSessionType { get; set; }

Property Value

int

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

DisplayName

public string DisplayName { get; set; }

Property Value

string

HasAudioSessionID

Gets whether the "audioSessionID" field is set

public bool HasAudioSessionID { get; }

Property Value

bool

HasAudioSessionType

Gets whether the "audioSessionType" field is set

public bool HasAudioSessionType { get; }

Property Value

bool

HasDisplayName

Gets whether the "displayName" field is set

public bool HasDisplayName { get; }

Property Value

bool

HasIconURL

Gets whether the "iconURL" field is set

public bool HasIconURL { get; }

Property Value

bool

HasIdentifier

Gets whether the "identifier" field is set

public bool HasIdentifier { get; }

Property Value

bool

HasIsDefaultPlayer

Gets whether the "isDefaultPlayer" field is set

public bool HasIsDefaultPlayer { get; }

Property Value

bool

HasMxSessionIDs

Gets whether the "mxSessionIDs" field is set

public bool HasMxSessionIDs { get; }

Property Value

bool

IconURL

public string IconURL { get; set; }

Property Value

string

Identifier

public string Identifier { get; set; }

Property Value

string

IsDefaultPlayer

public bool IsDefaultPlayer { get; set; }

Property Value

bool

MxSessionIDs

public long MxSessionIDs { get; set; }

Property Value

long

Parser

public static MessageParser<NowPlayingPlayer> Parser { get; }

Property Value

MessageParser<NowPlayingPlayer>

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.

ClearAudioSessionID()

Clears the value of the "audioSessionID" field

public void ClearAudioSessionID()

ClearAudioSessionType()

Clears the value of the "audioSessionType" field

public void ClearAudioSessionType()

ClearDisplayName()

Clears the value of the "displayName" field

public void ClearDisplayName()

ClearIconURL()

Clears the value of the "iconURL" field

public void ClearIconURL()

ClearIdentifier()

Clears the value of the "identifier" field

public void ClearIdentifier()

ClearIsDefaultPlayer()

Clears the value of the "isDefaultPlayer" field

public void ClearIsDefaultPlayer()

ClearMxSessionIDs()

Clears the value of the "mxSessionIDs" field

public void ClearMxSessionIDs()

Clone()

Creates a deep clone of this object.

public NowPlayingPlayer Clone()

Returns

NowPlayingPlayer

A deep clone of this object.

Equals(NowPlayingPlayer)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(NowPlayingPlayer other)

Parameters

other NowPlayingPlayer

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(NowPlayingPlayer)

Merges the given message into this one.

public void MergeFrom(NowPlayingPlayer other)

Parameters

other NowPlayingPlayer

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.