Sign in

    This version of the module is deprecated: 保守してないので

    f4ah6o/moonchat/core does not have a README file

    ChatStore

    ChatStore::add_message

    fn ChatStore::add_message(self : ChatStore, message : Message) -> Unit

    ChatStore::connection_signal

    fn ChatStore::connection_signal(self : ChatStore) ->
    Signal
    [Bool]

    ChatStore::messages_signal

    ChatStore::new

    fn ChatStore::new() -> ChatStore

    ChatStore::set_connected

    fn ChatStore::set_connected(self : ChatStore, connected : Bool) -> Unit

    ChatStore::set_messages

    fn ChatStore::set_messages(self : ChatStore, messages : Array[Message]) -> Unit

    ChatStore::set_typing_users

    fn ChatStore::set_typing_users(self : ChatStore, users : Array[User]) -> Unit

    ChatStore::set_user_typing

    fn ChatStore::set_user_typing(self : ChatStore, user : User, typing : Bool) -> Unit

    ChatStore::typing_users_signal

    ChatStore::update_message_status

    fn ChatStore::update_message_status(self : ChatStore, message_id : String, status : MessageStatus) -> Bool

    Message

    pub struct Message {
    id : String
    sender : User
    content : MessageContent
    timestamp_ms : Int64
    status :
    Signal
    [MessageStatus]
    }

    Message::new

    fn Message::new(id : String, sender : User, content : MessageContent, timestamp_ms : Int64, status? : MessageStatus) -> Message

    Message::set_status

    fn Message::set_status(self : Message, status : MessageStatus) -> Unit

    Message::snapshot

    fn Message::snapshot(self : Message) -> MessageSnapshot

    Message::status_value

    fn Message::status_value(self : Message) -> MessageStatus

    MessageContent

    pub(all) enum MessageContent {
    Text(String)
    Markdown(String)
    Image(String, String?)
    System(String)
    }

    MessageSnapshot

    pub(all) struct MessageSnapshot {
    id : String
    sender : User
    content : MessageContent
    timestamp_ms : Int64
    status : MessageStatus
    }

    MessageStatus

    pub(all) enum MessageStatus {
    Sending
    Sent
    Delivered
    Read
    Failed
    }

    impl Eq for MessageStatus

    User

    pub(all) struct User {
    id : String
    name : String
    avatar_url : String?
    }

    impl Eq for User
    impl Show for User

    Source Files