go-tsviewer/features/client/client.go

16 lines
349 B
Go
Raw Normal View History

2019-01-15 00:46:39 +00:00
package client
type Service interface {
Client(id int) (*Client, error)
Clients() ([]*Client, error)
}
type Client struct {
ID int `json:"id"`
DatabaseID int `json:"databaseId"`
Nickname string `json:"nickname"`
Type int `json:"type"`
Away bool `json:"away"`
AwayMessage string `json:"awayMessage"`
}