mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement basic chat functionality
This commit is contained in:
8
rc_chat_room/src/persist/chat_user/traits.rs
Normal file
8
rc_chat_room/src/persist/chat_user/traits.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use polariton::operation::Typed;
|
||||
|
||||
pub trait ChatUser {
|
||||
fn subscribed_channels(&self) -> Typed<()>;
|
||||
fn subscribed_channels_strings(&self) -> Vec<String>;
|
||||
fn add_subscribed_channel(&self, channel: String, channel_ty: crate::data::channel::ChatChannelType) -> Typed<()>;
|
||||
fn remove_subscribed_channel(&self, channel: String, channel_ty: crate::data::channel::ChatChannelType) -> bool;
|
||||
}
|
||||
Reference in New Issue
Block a user