Table of Contents

Class ChannelListItem

Namespace
EchoHub.Core.Contracts
Assembly
EchoHub.Core.dll
public record ChannelListItem : IEquatable<ChannelListItem>
Inheritance
ChannelListItem
Implements
Inherited Members

Constructors

ChannelListItem(ChannelListItem)

protected ChannelListItem(ChannelListItem original)

Parameters

original ChannelListItem

ChannelListItem(string, string?, int, bool, bool)

public ChannelListItem(string Name, string? Topic, int OnlineCount, bool IsPublic = true, bool IsProtected = false)

Parameters

Name string
Topic string
OnlineCount int
IsPublic bool
IsProtected bool

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

IsProtected

public bool IsProtected { get; init; }

Property Value

bool

IsPublic

public bool IsPublic { get; init; }

Property Value

bool

Name

public string Name { get; init; }

Property Value

string

OnlineCount

public int OnlineCount { get; init; }

Property Value

int

Topic

public string? Topic { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?, out int, out bool, out bool)

public void Deconstruct(out string Name, out string? Topic, out int OnlineCount, out bool IsPublic, out bool IsProtected)

Parameters

Name string
Topic string
OnlineCount int
IsPublic bool
IsProtected bool

Equals(ChannelListItem?)

public virtual bool Equals(ChannelListItem? other)

Parameters

other ChannelListItem

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChannelListItem?, ChannelListItem?)

public static bool operator ==(ChannelListItem? left, ChannelListItem? right)

Parameters

left ChannelListItem
right ChannelListItem

Returns

bool

operator !=(ChannelListItem?, ChannelListItem?)

public static bool operator !=(ChannelListItem? left, ChannelListItem? right)

Parameters

left ChannelListItem
right ChannelListItem

Returns

bool