Skip to main content
Version: Dev (main)

PanelContentBundleId struct

Names one content bundle: the session that published it and serves its files, and its name, unique per publisher.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public readonly struct PanelContentBundleId : IEquatable<PanelContentBundleId>

Implements: IEquatable<PanelContentBundleId>

Constructors​

PanelContentBundleId(PeerId, string)​

public PanelContentBundleId(PeerId publisher, string name)

Parameters

NameTypeDescription
publisherPeerId
namestring

Fields​

MaxNameLength​

Longest bundle name, in bytes.

public const int MaxNameLength = 64

Value: int

Properties​

Publisher​

The peer that published the bundle: the panel content's owner.

public PeerId Publisher { get; }

Value: PeerId

Name​

ASCII: A-Z, a-z, 0-9, '.', '_' and '-', not starting with '.', at most 64 characters.

public string Name { get; }

Value: string

Methods​

MemberDescription
Equals(PanelContentBundleId)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Indicates whether this instance and a specified object are equal.
GetHashCode()Returns the hash code for this instance.
ToString()Returns the fully qualified type name of this instance.

Equals(PanelContentBundleId)​

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

public bool Equals(PanelContentBundleId other)

Parameters

NameTypeDescription
otherPanelContentBundleIdAn 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

NameTypeDescription
objobjectThe 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.

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 ==​

public static bool operator ==(PanelContentBundleId left, PanelContentBundleId right)

Parameters

NameTypeDescription
leftPanelContentBundleId
rightPanelContentBundleId

Returns: bool

operator !=​

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

Parameters

NameTypeDescription
leftPanelContentBundleId
rightPanelContentBundleId

Returns: bool