confirmation

package
v0.0.0-...-4ed1e17 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotFindOffer = errors.New("unable to find offer")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	sessionID string,
	deviceID string,
	identitySecret string,
	steamID string,
) *Client

func (*Client) AcceptConfirmation

func (c *Client) AcceptConfirmation(conf *Confirmation) error

func (*Client) AnswerConfirmation

func (c *Client) AnswerConfirmation(conf *Confirmation, tag string) error

func (*Client) CancelConfirmation

func (c *Client) CancelConfirmation(conf *Confirmation) error

func (*Client) GetConfirmations

func (c *Client) GetConfirmations() ([]*Confirmation, error)

func (*Client) GetOfferID

func (c *Client) GetOfferID(conf *Confirmation) (uint64, error)

func (*Client) SetCookies

func (c *Client) SetCookies(cookies []*http.Cookie) error

func (*Client) UpdateTimeOffset

func (c *Client) UpdateTimeOffset() error

type Confirmation

type Confirmation struct {
	Type         uint64      `json:"type"`
	TypeName     string      `json:"type_name"`
	ID           string      `json:"id"`
	CreatorID    string      `json:"creator_id"`
	Nonce        string      `json:"nonce"`
	CreationTime uint64      `json:"creation_time"`
	Cancel       string      `json:"cancel"`
	Accept       string      `json:"accept"`
	Icon         string      `json:"icon"`
	Multi        bool        `json:"multi"`
	Headline     string      `json:"headline"`
	Summary      []string    `json:"summary"`
	Warn         interface{} `json:"warn"`
}

Jump to

Keyboard shortcuts

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