Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { ID int `json:"id"` Token string `json:"token"` ActorType string `json:"actorType"` // guest, user ActorID string `json:"actorId"` ActorDisplayName string `json:"actorDisplayName"` IsReplyable bool `json:"isReplyable"` Message string `json:"message"` MessageParameters string `json:"messageParamertes"` //RichObjectString }
Chat is a chat message.
type ChatResponse ¶
type ChatResponse struct { OCS struct { Data []Chat `json:"data"` } `json:"ocs"` }
ChatResponse is the API response for chats.
type NextcloudTalk ¶
type NextcloudTalk struct {
// contains filtered or unexported fields
}
NextcloudTalk is a Nextcloud Talk client.
func NewNextcloudTalk ¶
func NewNextcloudTalk(url, username, password, dbLocation string, chatChan chan Chat, statusChan chan string) *NextcloudTalk
NewNextcloudTalk creates a new Nextcloud Talk Client.
func (*NextcloudTalk) ReadChats ¶
func (n *NextcloudTalk) ReadChats() error
ReadChats reads the chats.
func (*NextcloudTalk) ReadRooms ¶
func (n *NextcloudTalk) ReadRooms() error
ReadRooms reads the rooms.
type Room ¶
type Room struct { ID int `json:"id"` Token string `json:"token"` Name string `json:"name"` DisplayName string `json:"displayName"` }
Room is a chat room
type RoomResponse ¶
type RoomResponse struct { OCS struct { Data []Room `json:"data"` } `json:"ocs"` }
RoomResponse is the API response for rooms
Click to show internal directories.
Click to hide internal directories.