Class ChannelMetaDto
Human-facing summary of a channel (the /meta command). For encrypted channels the
server still knows these figures — count, timestamps, and stored blob sizes — even though it
cannot read the content itself. EstimatedSizeBytes is the sum of stored
attachment blob sizes plus message text length, so it is an estimate, not an exact on-disk total.
public record ChannelMetaDto : IEquatable<ChannelMetaDto>
- Inheritance
-
ChannelMetaDto
- Implements
- Inherited Members
Constructors
ChannelMetaDto(ChannelMetaDto)
protected ChannelMetaDto(ChannelMetaDto original)
Parameters
originalChannelMetaDto
ChannelMetaDto(Guid, string, string?, bool, bool, int, int, long, DateTimeOffset)
Human-facing summary of a channel (the /meta command). For encrypted channels the
server still knows these figures — count, timestamps, and stored blob sizes — even though it
cannot read the content itself. EstimatedSizeBytes is the sum of stored
attachment blob sizes plus message text length, so it is an estimate, not an exact on-disk total.
public ChannelMetaDto(Guid Id, string Name, string? Topic, bool IsEncrypted, bool IsProtected, int MessageCount, int UniqueUserCount, long EstimatedSizeBytes, DateTimeOffset CreatedAt)
Parameters
IdGuidNamestringTopicstringIsEncryptedboolIsProtectedboolMessageCountintUniqueUserCountintEstimatedSizeByteslongCreatedAtDateTimeOffset
Properties
CreatedAt
public DateTimeOffset CreatedAt { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EstimatedSizeBytes
public long EstimatedSizeBytes { get; init; }
Property Value
Id
public Guid Id { get; init; }
Property Value
IsEncrypted
public bool IsEncrypted { get; init; }
Property Value
IsProtected
public bool IsProtected { get; init; }
Property Value
MessageCount
public int MessageCount { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Topic
public string? Topic { get; init; }
Property Value
UniqueUserCount
public int UniqueUserCount { get; init; }
Property Value
Methods
Deconstruct(out Guid, out string, out string?, out bool, out bool, out int, out int, out long, out DateTimeOffset)
public void Deconstruct(out Guid Id, out string Name, out string? Topic, out bool IsEncrypted, out bool IsProtected, out int MessageCount, out int UniqueUserCount, out long EstimatedSizeBytes, out DateTimeOffset CreatedAt)
Parameters
IdGuidNamestringTopicstringIsEncryptedboolIsProtectedboolMessageCountintUniqueUserCountintEstimatedSizeByteslongCreatedAtDateTimeOffset
Equals(ChannelMetaDto?)
public virtual bool Equals(ChannelMetaDto? other)
Parameters
otherChannelMetaDto
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ChannelMetaDto?, ChannelMetaDto?)
public static bool operator ==(ChannelMetaDto? left, ChannelMetaDto? right)
Parameters
leftChannelMetaDtorightChannelMetaDto
Returns
operator !=(ChannelMetaDto?, ChannelMetaDto?)
public static bool operator !=(ChannelMetaDto? left, ChannelMetaDto? right)
Parameters
leftChannelMetaDtorightChannelMetaDto