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
-
IMessage<NowPlayingPlayer>IDeepCloneable<NowPlayingPlayer>IBufferMessageIMessage
- Inherited Members
Constructors
NowPlayingPlayer()
public NowPlayingPlayer()
NowPlayingPlayer(NowPlayingPlayer)
public NowPlayingPlayer(NowPlayingPlayer other)
Parameters
otherNowPlayingPlayer
Fields
AudioSessionIDFieldNumber
Field number for the "audioSessionID" field.
public const int AudioSessionIDFieldNumber = 6
Field Value
AudioSessionTypeFieldNumber
Field number for the "audioSessionType" field.
public const int AudioSessionTypeFieldNumber = 4
Field Value
DisplayNameFieldNumber
Field number for the "displayName" field.
public const int DisplayNameFieldNumber = 2
Field Value
IconURLFieldNumber
Field number for the "iconURL" field.
public const int IconURLFieldNumber = 7
Field Value
IdentifierFieldNumber
Field number for the "identifier" field.
public const int IdentifierFieldNumber = 1
Field Value
IsDefaultPlayerFieldNumber
Field number for the "isDefaultPlayer" field.
public const int IsDefaultPlayerFieldNumber = 3
Field Value
MxSessionIDsFieldNumber
Field number for the "mxSessionIDs" field.
public const int MxSessionIDsFieldNumber = 5
Field Value
Properties
AudioSessionID
public uint AudioSessionID { get; set; }
Property Value
AudioSessionType
public int AudioSessionType { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DisplayName
public string DisplayName { get; set; }
Property Value
HasAudioSessionID
Gets whether the "audioSessionID" field is set
public bool HasAudioSessionID { get; }
Property Value
HasAudioSessionType
Gets whether the "audioSessionType" field is set
public bool HasAudioSessionType { get; }
Property Value
HasDisplayName
Gets whether the "displayName" field is set
public bool HasDisplayName { get; }
Property Value
HasIconURL
Gets whether the "iconURL" field is set
public bool HasIconURL { get; }
Property Value
HasIdentifier
Gets whether the "identifier" field is set
public bool HasIdentifier { get; }
Property Value
HasIsDefaultPlayer
Gets whether the "isDefaultPlayer" field is set
public bool HasIsDefaultPlayer { get; }
Property Value
HasMxSessionIDs
Gets whether the "mxSessionIDs" field is set
public bool HasMxSessionIDs { get; }
Property Value
IconURL
public string IconURL { get; set; }
Property Value
Identifier
public string Identifier { get; set; }
Property Value
IsDefaultPlayer
public bool IsDefaultPlayer { get; set; }
Property Value
MxSessionIDs
public long MxSessionIDs { get; set; }
Property Value
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
otherNowPlayingPlayerAn 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(NowPlayingPlayer)
Merges the given message into this one.
public void MergeFrom(NowPlayingPlayer other)
Parameters
otherNowPlayingPlayer
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.