Struct FrameIdentifier
- Namespace
- AppleTvControlLibrary.Protocol
- Assembly
- AppleTvControlLibrary.dll
Identifies a pending exchange either by XID (regular OPACK messages) or by the FrameType that is expected in response (auth messages, which never have an XID since parallel authentication attempts are impossible).
public readonly struct FrameIdentifier : IEquatable<FrameIdentifier>
- Implements
- Inherited Members
Methods
Equals(FrameIdentifier)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(FrameIdentifier other)
Parameters
otherFrameIdentifierAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
FromFrameType(FrameType)
Creates a FrameIdentifier keyed by frame type.
public static FrameIdentifier FromFrameType(FrameType frameType)
Parameters
frameTypeFrameType
Returns
FromXid(int)
Creates a FrameIdentifier keyed by XID.
public static FrameIdentifier FromXid(int xid)
Parameters
xidint
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(FrameIdentifier, FrameIdentifier)
Determines whether two FrameIdentifier instances are equal.
public static bool operator ==(FrameIdentifier left, FrameIdentifier right)
Parameters
leftFrameIdentifierrightFrameIdentifier
Returns
operator !=(FrameIdentifier, FrameIdentifier)
Determines whether two FrameIdentifier instances are not equal.
public static bool operator !=(FrameIdentifier left, FrameIdentifier right)
Parameters
leftFrameIdentifierrightFrameIdentifier