models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Data []interface{} `json:"data"`
}

type CheerEventSubEvent

type CheerEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	IsAnonymous          bool   `json:"is_anonymous"`
	Message              string `json:"message"`
	Bits                 int64  `json:"bits"`
}

type CheerEventSubResponse

type CheerEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        CheerEventSubEvent   `json:"event"`
}

type DropsEntitlementsData added in v0.3.0

type DropsEntitlementsData struct {
	ID        string `json:"id"`
	BenefitID string `json:"benefit_id"`
	Timestamp string `json:"timestamp"`
	UserID    string `json:"user_id"`
	GameID    string `json:"game_id"`
}

type DropsEntitlementsResponse added in v0.3.0

type DropsEntitlementsResponse struct {
	Pagination struct {
		Cursor string `json:"cursor"`
	} `json:"pagination"`
	Data []DropsEntitlementsData `json:"data"`
}

type EventsubCondition

type EventsubCondition struct {
	BroadcasterUserID string `json:"broadcaster_user_id"`
}

type EventsubResponse

type EventsubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        interface{}          `json:"event"`
}

type EventsubSubscription

type EventsubSubscription struct {
	ID        string            `json:"id"`
	Status    string            `json:"status"`
	Type      string            `json:"type"`
	Version   string            `json:"version"`
	Condition EventsubCondition `json:"condition"`
	Transport EventsubTransport `json:"transport"`
	CreatedAt string            `json:"created_at"`
}

type EventsubSubscriptionVerification added in v0.3.0

type EventsubSubscriptionVerification struct {
	Challenge    string               `json:"challenge"`
	Subscription EventsubSubscription `json:"subscription"`
}

type EventsubTransport

type EventsubTransport struct {
	Method   string `json:"method"`
	Callback string `json:"callback"`
}

type FollowEventSubEvent

type FollowEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
}

type FollowEventSubResponse

type FollowEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        FollowEventSubEvent  `json:"event"`
}

type FollowWebSubResponse

type FollowWebSubResponse struct {
	Data []FollowWebSubResponseData `json:"data"`
}

type FollowWebSubResponseData

type FollowWebSubResponseData struct {
	FromID     string `json:"from_id"`
	FromName   string `json:"from_name"`
	ToID       string `json:"to_id"`
	ToName     string `json:"to_name"`
	FollowedAt string `json:"followed_at"`
}

type RedemptionEventSubEvent

type RedemptionEventSubEvent struct {
	ID                   string           `json:"id"`
	BroadcasterUserID    string           `json:"broadcaster_user_id"`
	BroadcasterUserLogin string           `json:"broadcaster_user_login"`
	BroadcasterUserName  string           `json:"broadcaster_user_name"`
	UserID               string           `json:"user_id"`
	UserLogin            string           `json:"user_login"`
	UserName             string           `json:"user_name"`
	UserInput            string           `json:"user_input"`
	Status               string           `json:"status"`
	Reward               RedemptionReward `json:"reward"`
	RedeemedAt           string           `json:"redeemed_at"`
}

type RedemptionEventSubResponse

type RedemptionEventSubResponse struct {
	Subscription EventsubSubscription    `json:"subscription"`
	Event        RedemptionEventSubEvent `json:"event"`
}

type RedemptionReward

type RedemptionReward struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Cost   int64  `json:"cost"`
	Prompt string `json:"prompt"`
}

type RewardEventSubEvent

type RewardEventSubEvent struct {
	ID                                string               `json:"id"`
	BroadcasterUserID                 string               `json:"broadcaster_user_id"`
	BroadcasterUserLogin              string               `json:"broadcaster_user_login"`
	BroadcasterUserName               string               `json:"broadcaster_user_name"`
	IsEnabled                         bool                 `json:"is_enabled"`
	IsPaused                          bool                 `json:"is_paused"`
	IsInStock                         bool                 `json:"is_in_stock"`
	Title                             string               `json:"title"`
	Cost                              int64                `json:"cost"`
	Prompt                            string               `json:"prompt"`
	IsUserInputRequired               bool                 `json:"is_user_input_required"`
	ShouldRedemptionsSkipRequestQueue bool                 `json:"should_redemptions_skip_request_queue"`
	CooldownExpiresAt                 string               `json:"cooldown_expires_at"`
	RedemptionsRedeemedCurrentStream  int64                `json:"redemptions_redeemed_current_stream"`
	MaxPerStream                      RewardMax            `json:"max_per_stream"`
	MaxPerUserPerStream               RewardMax            `json:"max_per_user_per_stream"`
	GlobalCooldown                    RewardGlobalCooldown `json:"global_cooldown"`
	BackgroundColor                   string               `json:"background_color"`
	Image                             RewardImage          `json:"image"`
	DefaultImage                      RewardImage          `json:"default_image"`
}

type RewardEventSubResponse

type RewardEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        RewardEventSubEvent  `json:"event"`
}

type RewardGlobalCooldown

type RewardGlobalCooldown struct {
	IsEnabled bool  `json:"is_enabled"`
	Value     int64 `json:"value"`
}

type RewardImage

type RewardImage struct {
	URL1x string `json:"url_1x"`
	URL2x string `json:"url_2x"`
	URL4x string `json:"url_4x"`
}

type RewardMax

type RewardMax struct {
	IsEnabled bool  `json:"is_enabled"`
	Value     int64 `json:"value"`
}

type SubEventSubEvent

type SubEventSubEvent struct {
	UserID               string `json:"user_id"`
	UserLogin            string `json:"user_login"`
	UserName             string `json:"user_name"`
	BroadcasterUserID    string `json:"broadcaster_user_id"`
	BroadcasterUserLogin string `json:"broadcaster_user_login"`
	BroadcasterUserName  string `json:"broadcaster_user_name"`
	Tier                 string `json:"tier"`
	IsGift               bool   `json:"is_gift"`
}

type SubEventSubResponse

type SubEventSubResponse struct {
	Subscription EventsubSubscription `json:"subscription"`
	Event        SubEventSubEvent     `json:"event"`
}

type SubWebSubEventData

type SubWebSubEventData struct {
	BroadcasterID   string `json:"broadcaster_id"`
	BroadcasterName string `json:"broadcaster_name"`
	IsGift          bool   `json:"is_gift"`
	Tier            string `json:"tier"`
	PlanName        string `json:"plan_name"`
	UserID          string `json:"user_id"`
	UserName        string `json:"user_name"`
	GifterID        string `json:"gifter_id"`
	GifterName      string `json:"gifter_name"`
}

type SubWebSubResponse

type SubWebSubResponse struct {
	Data []SubWebSubResponseData `json:"data"`
}

type SubWebSubResponseData

type SubWebSubResponseData struct {
	ID             string             `json:"id"`
	EventType      string             `json:"event_type"`
	EventTimestamp string             `json:"event_timestamp"`
	Version        string             `json:"version"`
	EventData      SubWebSubEventData `json:"event_data"`
}

type TransactionCost

type TransactionCost struct {
	Amount int64  `json:"amount"`
	Type   string `json:"type"`
}

type TransactionProduct

type TransactionProduct struct {
	Sku           string          `json:"sku"`
	Cost          TransactionCost `json:"cost"`
	DisplayName   string          `json:"displayName"`
	InDevelopment bool            `json:"inDevelopment"`
	Broadcast     bool            `json:"broadcast"`
	Domain        string          `json:"domain"`
	Expiration    string          `json:"expiration"`
}

type TransactionWebSubResponse

type TransactionWebSubResponse struct {
	Data []TransactionWebsubEvent `json:"data"`
}

type TransactionWebsubEvent

type TransactionWebsubEvent struct {
	ID              string             `json:"id"`
	Timestamp       string             `json:"timestamp"`
	BroadcasterID   string             `json:"broadcaster_id"`
	BroadcasterName string             `json:"broadcaster_name"`
	UserID          string             `json:"user_id"`
	UserName        string             `json:"user_name"`
	ProductType     string             `json:"product_type"`
	Product         TransactionProduct `json:"product_data"`
}

Jump to

Keyboard shortcuts

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