class Place::Chat::RoomSettings

Overview

Room metadata => settings key

Included Modules

Extended Modules

Defined in:

place/chat/health_notification_models.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def available : Bool #

[View source]
def is_open?(timezone : Time::Location) #

[View source]
def members : Array(RoomMember) #

[View source]
def members=(members : Array(RoomMember)) #

[View source]
def notifications : NotificationSettings #

[View source]
def open_24_7 : Bool #

[View source]
def opening : Hash(Time::DayOfWeek, OpeningHours) #

[View source]
def opening_hours : Array(Tuple(String, String, Bool)) #

0 index == Monday open time, close time, enabled


[View source]
def timezone : Time::Location #

def timezone=(timezone : Time::Location) #

[View source]
def timezone? : Time::Location | Nil #