Table of Contents

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

other FrameIdentifier

An object to compare with this object.

Returns

bool

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

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

frameType FrameType

Returns

FrameIdentifier

FromXid(int)

Creates a FrameIdentifier keyed by XID.

public static FrameIdentifier FromXid(int xid)

Parameters

xid int

Returns

FrameIdentifier

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

left FrameIdentifier
right FrameIdentifier

Returns

bool

operator !=(FrameIdentifier, FrameIdentifier)

Determines whether two FrameIdentifier instances are not equal.

public static bool operator !=(FrameIdentifier left, FrameIdentifier right)

Parameters

left FrameIdentifier
right FrameIdentifier

Returns

bool