Table of Contents

Class ChannelDto

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

Constructors

ChannelDto(ChannelDto)

protected ChannelDto(ChannelDto original)

Parameters

original ChannelDto

ChannelDto(Guid, string, string?, bool, int, DateTimeOffset)

public ChannelDto(Guid Id, string Name, string? Topic, bool IsPublic, int MessageCount, DateTimeOffset CreatedAt)

Parameters

Id Guid
Name string
Topic string
IsPublic bool
MessageCount int
CreatedAt DateTimeOffset

Properties

CreatedAt

public DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Id

public Guid Id { get; init; }

Property Value

Guid

IsPublic

public bool IsPublic { get; init; }

Property Value

bool

MessageCount

public int MessageCount { get; init; }

Property Value

int

Name

public string Name { get; init; }

Property Value

string

Topic

public string? Topic { get; init; }

Property Value

string

Methods

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

public void Deconstruct(out Guid Id, out string Name, out string? Topic, out bool IsPublic, out int MessageCount, out DateTimeOffset CreatedAt)

Parameters

Id Guid
Name string
Topic string
IsPublic bool
MessageCount int
CreatedAt DateTimeOffset

Equals(ChannelDto?)

public virtual bool Equals(ChannelDto? other)

Parameters

other ChannelDto

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 ==(ChannelDto?, ChannelDto?)

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

Parameters

left ChannelDto
right ChannelDto

Returns

bool

operator !=(ChannelDto?, ChannelDto?)

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

Parameters

left ChannelDto
right ChannelDto

Returns

bool