sum7
/
yaja
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
yaja/xmpp/x/muc/base.go

22 lines
572 B
Go

package xmuc
import (
"encoding/xml"
"time"
)
// Base implements XEP-0045: Multi-User Chat - 19.1
type Base struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/muc x"`
History *History `xml:"history,omitempty"`
Password string `xml:"password,omitempty"`
}
// History implements XEP-0045: Multi-User Chat - 19.1
type History struct {
MaxChars *int `xml:"maxchars,attr,omitempty"`
MaxStanzas *int `xml:"maxstanzas,attr,omitempty"`
Seconds *int `xml:"seconds,attr,omitempty"`
Since *time.Time `xml:"since,attr,omitempty"`
}