types.go
author Ollivier Robert <roberto@keltia.net>
Wed, 05 Apr 2017 16:35:04 +0200
changeset 16 9d64e00d3ea6
parent 10 bb83de52ba5f
child 17 9f17ef336aad
permissions -rw-r--r--
Begin to fill in types.

package gondole

import "time"

type Gondole struct {
	Name string
    RedirectURI string
}

type Account struct {
	ID         int
	Acct       string
	Avatar     string
	Followers  int
	Followings int
	Header     string
	Note       string
	Statuses   int
	URL        string
	Username   string
}

type Client struct {
	BaseURL     string
	BearerToken string
}

type Status struct {
	ID         int
	Account    *Account
	Content    string
	CreatedAT  time.Time
	Favourited bool
	Favourites int
	InReplyTo  int
	Reblog     *Status
	Reblogged  bool
	Reblogs    int
	URI        string
	URL        string
}