story

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI = "/api/1.0/tasks/%s/stories"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Request Request `json:"data"`
}

type Request

type Request struct {
	HtmlText    string `json:"html_text,omitempty"`
	Text        string `json:"text,omitempty"`
	StickerName string `json:"sticker_name,omitempty"`
	IsPinned    bool   `json:"is_pinned,omitempty"`
	// contains filtered or unexported fields
}

func (Request) Create

func (r Request) Create() (resp *Response, err error)

Create comments on task

func (Request) Get

func (r Request) Get() ([]Response, error)

func (*Request) GetPAToken

func (r *Request) GetPAToken() string

func (*Request) GetTaskID

func (r *Request) GetTaskID() string

func (*Request) GetTicketID

func (r *Request) GetTicketID() string

func (*Request) SetPAToken

func (r *Request) SetPAToken(token string)

func (*Request) SetTaskID

func (r *Request) SetTaskID(id string)

func (*Request) SetTicketID

func (r *Request) SetTicketID(id string)

type Response

type Response struct {
	ID              string `json:"gid"`
	ResourceType    string `json:"resource_type"`
	ResourceSubtype string `json:"resource_subtype"`
	Type            string `json:"type"`
	Text            string `json:"text"`
	// IsPinned Conditional
	// Whether the story should be pinned on the resource.
	IsPinned    bool       `json:"is_pinned"`
	StickerName string     `json:"sticker_name,omitempty"`
	CreatedAt   string     `json:"created_at"`
	CreatedBy   users.User `json:"created_by"`
}

func (*Response) IsComplete

func (r *Response) IsComplete() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL