class PrivateParlorXT::CachedHistory::MessageGroup

Overview

Represents single message sent and all of its receivers

Defined in:

private-parlor-xt/history/cached_history.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(sender : UserID, origin : MessageID) #

Creates an instance of MessageGroup


[View source]

Instance Method Detail

def origin : MessageID #

The original message ID of this message


[View source]
def ratings : Set(UserID) #

Set of users who upvoted or downvoted this message


[View source]
def ratings=(ratings : Set(UserID)) #

Set of users who upvoted or downvoted this message


[View source]
def receivers : Hash(UserID, MessageID) #

Users who received this message and their corresponding MessageID


[View source]
def receivers=(receivers : Hash(UserID, MessageID)) #

Users who received this message and their corresponding MessageID


[View source]
def sender : UserID #

User who sent this message


[View source]
def sent : Time #

The time at which this message was sent


[View source]
def warned : Bool | Nil #

Whether or not this message has been warned

If true, a warning has been given to the user who sent this message, false otherwise


[View source]
def warned=(warned : Bool | Nil) #

Whether or not this message has been warned

If true, a warning has been given to the user who sent this message, false otherwise


[View source]