owncast/message.go

18 lines
356 B
Go
Raw Normal View History

2020-05-24 03:57:49 +03:00
package main
type ChatMessage struct {
Author string `json:"author"`
Body string `json:"body"`
Image string `json:"image"`
ID string `json:"id"`
MessageType string `json:"type"`
2020-05-24 03:57:49 +03:00
}
func (s *ChatMessage) String() string {
return s.Author + " says " + s.Body
}
type PingMessage struct {
MessageType string `json:"type"`
}