model

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Currencies = []Currency{
	{CurrencyCode: CurrencyARS, Description: "Argentine Peso"},
	{CurrencyCode: CurrencyAUD, Description: "Australian Dollars"},
	{CurrencyCode: CurrencyBRL, Description: "Brazilian Reals"},
	{CurrencyCode: CurrencyCAD, Description: "Canadian Dollars"},
	{CurrencyCode: CurrencyCLP, Description: "Chilean Peso"},
	{CurrencyCode: CurrencyCNY, Description: "Chinese Renminbi (yuan)"},
	{CurrencyCode: CurrencyCOP, Description: "Colombian Peso"},
	{CurrencyCode: CurrencyCRC, Description: "Costa Rican Colón"},
	{CurrencyCode: CurrencyEUR, Description: "European Union Euro"},
	{CurrencyCode: CurrencyHKD, Description: "Hong Kong Dollar"},
	{CurrencyCode: CurrencyINR, Description: "Indian Rupee"},
	{CurrencyCode: CurrencyIDR, Description: "Indonesian Rupiah"},
	{CurrencyCode: CurrencyILS, Description: "Israeli New Shekel"},
	{CurrencyCode: CurrencyJPY, Description: "Japanese Yen"},
	{CurrencyCode: CurrencyKZT, Description: "Kazakhstani Tenge"},
	{CurrencyCode: CurrencyKWD, Description: "Kuwaiti Dinar"},
	{CurrencyCode: CurrencyMYR, Description: "Malaysian Ringgit"},
	{CurrencyCode: CurrencyMXN, Description: "Mexican Peso"},
	{CurrencyCode: CurrencyTWD, Description: "New Taiwan Dollar"},
	{CurrencyCode: CurrencyNZD, Description: "New Zealand Dollar"},
	{CurrencyCode: CurrencyNOK, Description: "Norwegian Krone"},
	{CurrencyCode: CurrencyPEN, Description: "Peruvian Nuevo Sol"},
	{CurrencyCode: CurrencyPHP, Description: "Philippine Peso"},
	{CurrencyCode: CurrencyPLN, Description: "Polish Złoty"},
	{CurrencyCode: CurrencyQAR, Description: "Qatari Riyal"},
	{CurrencyCode: CurrencyRUB, Description: "Russian Rouble"},
	{CurrencyCode: CurrencySAR, Description: "Saudi Riyal"},
	{CurrencyCode: CurrencySGD, Description: "Singapore Dollar"},
	{CurrencyCode: CurrencyZAR, Description: "South African Rand"},
	{CurrencyCode: CurrencyKRW, Description: "South Korean Won"},
	{CurrencyCode: CurrencyCHF, Description: "Swiss Francs"},
	{CurrencyCode: CurrencyTHB, Description: "Thai Baht"},
	{CurrencyCode: CurrencyTRY, Description: "Turkish Lira"},
	{CurrencyCode: CurrencyUAH, Description: "Ukrainian Hryvnia"},
	{CurrencyCode: CurrencyAED, Description: "United Arab Emirates Dirham"},
	{CurrencyCode: CurrencyGBP, Description: "United Kingdom Pound"},
	{CurrencyCode: CurrencyUSD, Description: "United States Dollar"},
	{CurrencyCode: CurrencyUYU, Description: "Uruguayan Peso"},
	{CurrencyCode: CurrencyVND, Description: "Vietnamese Dong"},
}
View Source
var Languages = []Language{
	{
		EnglishName:        "Arabic",
		NativeName:         "العربية",
		LanguageCode:       LanguageArabic,
		WebAPILanguageCode: LanguageWebAR,
	},
	{
		EnglishName:        "Bulgarian",
		NativeName:         "български език",
		LanguageCode:       LanguageBulgarian,
		WebAPILanguageCode: LanguageWebBG,
	},
	{
		EnglishName:        "Chinese (Simplified)",
		NativeName:         "简体中文",
		LanguageCode:       LanguageChineseSimplified,
		WebAPILanguageCode: LanguageWebZHCN,
	},
	{
		EnglishName:        "Chinese (Traditional)",
		NativeName:         "繁體中文",
		LanguageCode:       LanguageChineseTraditional,
		WebAPILanguageCode: LanguageWebZHTW,
	},
	{
		EnglishName:        "Czech",
		NativeName:         "čeština",
		LanguageCode:       LanguageCzech,
		WebAPILanguageCode: LanguageWebCS,
	},
	{
		EnglishName:        "Danish",
		NativeName:         "Dansk",
		LanguageCode:       LanguageDanish,
		WebAPILanguageCode: LanguageWebDA,
	},
	{
		EnglishName:        "Dutch",
		NativeName:         "Nederlands",
		LanguageCode:       LanguageDutch,
		WebAPILanguageCode: LanguageWebNL,
	},
	{
		EnglishName:        "English",
		NativeName:         "English",
		LanguageCode:       LanguageEnglish,
		WebAPILanguageCode: LanguageWebEN,
	},
	{
		EnglishName:        "Finnish",
		NativeName:         "Suomi",
		LanguageCode:       LanguageFinnish,
		WebAPILanguageCode: LanguageWebFI,
	},
	{
		EnglishName:        "French",
		NativeName:         "Français",
		LanguageCode:       LanguageFrench,
		WebAPILanguageCode: LanguageWebFR,
	},
	{
		EnglishName:        "German",
		NativeName:         "Deutsch",
		LanguageCode:       LanguageGerman,
		WebAPILanguageCode: LanguageWebDE,
	},
	{
		EnglishName:        "Greek",
		NativeName:         "Ελληνικά",
		LanguageCode:       LanguageGreek,
		WebAPILanguageCode: LanguageWebEL,
	},
	{
		EnglishName:        "Hungarian",
		NativeName:         "Magyar",
		LanguageCode:       LanguageHungarian,
		WebAPILanguageCode: LanguageWebHU,
	},
	{
		EnglishName:        "Italian",
		NativeName:         "Italiano",
		LanguageCode:       LanguageItalian,
		WebAPILanguageCode: LanguageWebIT,
	},
	{
		EnglishName:        "Japanese",
		NativeName:         "日本語",
		LanguageCode:       LanguageJapanese,
		WebAPILanguageCode: LanguageWebJA,
	},
	{
		EnglishName:        "Korean",
		NativeName:         "한국어",
		LanguageCode:       LanguageKorean,
		WebAPILanguageCode: LanguageWebKO,
	},
	{
		EnglishName:        "Norwegian",
		NativeName:         "Norsk",
		LanguageCode:       LanguageNorwegian,
		WebAPILanguageCode: LanguageWebNO,
	},
	{
		EnglishName:        "Polish",
		NativeName:         "Polski",
		LanguageCode:       LanguagePolish,
		WebAPILanguageCode: LanguageWebPL,
	},
	{
		EnglishName:        "Portuguese",
		NativeName:         "Português",
		LanguageCode:       LanguagePortuguese,
		WebAPILanguageCode: LanguageWebPT,
	},
	{
		EnglishName:        "Portuguese-Brazil",
		NativeName:         "Português-Brasil",
		LanguageCode:       LanguagePortugueseBrazil,
		WebAPILanguageCode: LanguageWebPTBR,
	},
	{
		EnglishName:        "Romanian",
		NativeName:         "Română",
		LanguageCode:       LanguageRomanian,
		WebAPILanguageCode: LanguageWebRO,
	},
	{
		EnglishName:        "Russian",
		NativeName:         "Русский",
		LanguageCode:       LanguageRussian,
		WebAPILanguageCode: LanguageWebRU,
	},
	{
		EnglishName:        "Spanish-Spain",
		NativeName:         "Español-España",
		LanguageCode:       LanguageSpanishSpain,
		WebAPILanguageCode: LanguageWebES,
	},
	{
		EnglishName:        "Spanish-Latin America",
		NativeName:         "Español-Latinoamérica",
		LanguageCode:       LanguageSpanishLatinAmerica,
		WebAPILanguageCode: LanguageWebES419,
	},
	{
		EnglishName:        "Swedish",
		NativeName:         "Svenska",
		LanguageCode:       LanguageSwedish,
		WebAPILanguageCode: LanguageWebSV,
	},
	{
		EnglishName:        "Thai",
		NativeName:         "ไทย",
		LanguageCode:       LanguageThai,
		WebAPILanguageCode: LanguageWebTH,
	},
	{
		EnglishName:        "Turkish",
		NativeName:         "Türkçe",
		LanguageCode:       LanguageTurkish,
		WebAPILanguageCode: LanguageWebTR,
	},
	{
		EnglishName:        "Ukrainian",
		NativeName:         "Українська",
		LanguageCode:       LanguageUkrainian,
		WebAPILanguageCode: LanguageWebUK,
	},
	{
		EnglishName:        "Vietnamese",
		NativeName:         "Tiếng Việt",
		LanguageCode:       LanguageVietnamese,
		WebAPILanguageCode: LanguageWebVN,
	},
}

Functions

func IsProductCC

func IsProductCC(i string) bool

Types

type AppDetails

type AppDetails struct {
	Success bool `json:"success"`
	Data    *struct {
		AppDetailsBase
		RequiredAge int   `json:"required_age"` // may be string in some time
		DLC         []int `json:"dlc"`
		Fullgame    struct {
			AppID int    `json:"appid,string"`
			Name  string `json:"name"`
		} `json:"fullgame"`
		PcRequirements struct {
			Minimum     string `json:"minimum"`
			Recommended string `json:"recommended"`
		} `json:"pc_requirements"`
		MacRequirements struct {
			Minimum     string `json:"minimum"`
			Recommended string `json:"recommended"`
		} `json:"mac_requirements"`
		LinuxRequirements struct {
			Minimum     string `json:"minimum"`
			Recommended string `json:"recommended"`
		} `json:"linux_requirements"`
		LegalNotice          string `json:"legal_notice"`
		ExtUserAccountNotice string `json:"ext_user_account_notice"`
		DRMNotice            string `json:"drm_notice"`
		Demos                []struct {
			AppID       int    `json:"appid,string"`
			Description string `json:"description"`
		} `json:"demos"`
		PriceOverview *struct {
			Currency         CurrencyCode `json:"currency"`
			Initial          int          `json:"initial"`
			Final            int          `json:"final"`
			DiscountPercent  int          `json:"discount_percent"`
			InitialFormatted string       `json:"initial_formatted"`
			FinalFormatted   string       `json:"final_formatted"`
			RecurringSub     interface{}  `json:"recurring_sub"` // Either "false" or a sub id int
			RecurringSubDesc string       `json:"recurring_sub_desc"`
		} `json:"price_overview"`
		Packages      []int `json:"packages"`
		PackageGroups []struct {
			Name                    string `json:"name"`
			Title                   string `json:"title"`
			Description             string `json:"description"`
			SelectionText           string `json:"selection_text"`
			SaveText                string `json:"save_text"`
			DisplayType             int    `json:"display_type"`
			IsRecurringSubscription string `json:"is_recurring_subscription"`
			Subs                    []struct {
				PackageID                int    `json:"packageid"`
				PercentSavingsText       string `json:"percent_savings_text"`
				PercentSavings           int    `json:"percent_savings"`
				OptionText               string `json:"option_text"`
				OptionDescription        string `json:"option_description"`
				CanGetFreeLicense        string `json:"can_get_free_license"`
				IsFreeLicense            bool   `json:"is_free_license"`
				PriceInCentsWithDiscount int    `json:"price_in_cents_with_discount"`
			} `json:"subs"`
		} `json:"package_groups"`
		Platforms struct {
			Windows bool `json:"windows"`
			Mac     bool `json:"mac"`
			Linux   bool `json:"linux"`
		} `json:"platforms"`
		Metacritic struct {
			Score int8   `json:"score"`
			URL   string `json:"url"`
		} `json:"metacritic"`
		Categories  AppDetailsCategory `json:"categories"`
		Genres      AppDetailsGenre    `json:"genres"`
		Screenshots []struct {
			ID            int    `json:"id"`
			PathThumbnail string `json:"path_thumbnail"`
			PathFull      string `json:"path_full"`
		} `json:"screenshots"`
		Movies []struct {
			ID        int    `json:"id"`
			Name      string `json:"name"`
			Thumbnail string `json:"thumbnail"`
			Webm      struct {
				Num480 string `json:"480"`
				Max    string `json:"max"`
			} `json:"webm"`
			Highlight bool `json:"highlight"`
		} `json:"movies"`
		Recommendations struct {
			Total int `json:"total"`
		} `json:"recommendations"`
		Achievements struct {
			Total       int `json:"total"`
			Highlighted []struct {
				Name string `json:"name"`
				Path string `json:"path"`
			} `json:"highlighted"`
		} `json:"achievements"`
		SupportInfo struct {
			URL   string `json:"url"`
			Email string `json:"email"`
		} `json:"support_info"`
		Background         string `json:"background"`
		ContentDescriptors struct {
			IDs   interface{}
			Notes interface{}
		} `json:"content_descriptors"`
	} `json:"data"`
}

type AppDetailsBase

type AppDetailsBase struct {
	Type                string   `json:"type"`
	Name                string   `json:"name"`
	AppID               int      `json:"steam_appid"`
	IsFree              bool     `json:"is_free"`
	ControllerSupport   string   `json:"controller_support"`
	DetailedDescription string   `json:"detailed_description"`
	AboutTheGame        string   `json:"about_the_game"`
	ShortDescription    string   `json:"short_description"`
	SupportedLanguages  string   `json:"supported_languages"`
	Reviews             string   `json:"reviews"`
	HeaderImage         string   `json:"header_image"`
	Website             string   `json:"website"`
	Developers          []string `json:"developers"`
	Publishers          []string `json:"publishers"`
	ReleaseDate         struct {
		ComingSoon bool   `json:"coming_soon"`
		Date       string `json:"date"`
	} `json:"release_date"`
}

type AppDetailsBasic

type AppDetailsBasic struct {
	Success bool            `json:"success"`
	Data    *AppDetailsBase `json:"data"`
}

type AppDetailsCategory

type AppDetailsCategory []struct {
	ID          int    `json:"id"`
	Description string `json:"description"`
}

func (AppDetailsCategory) IDs

func (c AppDetailsCategory) IDs() []int

func (AppDetailsCategory) Names

func (c AppDetailsCategory) Names() []string

type AppDetailsGenre

type AppDetailsGenre []struct {
	ID          int    `json:"id,string"`
	Description string `json:"description"`
}

func (AppDetailsGenre) IDs

func (g AppDetailsGenre) IDs() []int

func (AppDetailsGenre) Names

func (g AppDetailsGenre) Names() []string

type CommentPermission

type CommentPermission int

CommentPermission Indicates the selected privacy/visibility level of the player's comments section on their Steam Community profile.

type Currency

type Currency struct {
	CurrencyCode CurrencyCode
	Description  string
}

type CurrencyCode

type CurrencyCode string

https://partner.steamgames.com/doc/store/pricing/currencies

const (
	CurrencyAED CurrencyCode = "AED"
	CurrencyARS CurrencyCode = "ARS"
	CurrencyAUD CurrencyCode = "AUD"
	CurrencyBRL CurrencyCode = "BRL"
	CurrencyCAD CurrencyCode = "CAD"
	CurrencyCHF CurrencyCode = "CHF"
	CurrencyCLP CurrencyCode = "CLP"
	CurrencyCNY CurrencyCode = "CNY"
	CurrencyCOP CurrencyCode = "COP"
	CurrencyCRC CurrencyCode = "CRC"
	CurrencyEUR CurrencyCode = "EUR"
	CurrencyGBP CurrencyCode = "GBP"
	CurrencyHKD CurrencyCode = "HKD"
	CurrencyILS CurrencyCode = "ILS"
	CurrencyIDR CurrencyCode = "IDR"
	CurrencyINR CurrencyCode = "INR"
	CurrencyJPY CurrencyCode = "JPY"
	CurrencyKRW CurrencyCode = "KRW"
	CurrencyKWD CurrencyCode = "KWD"
	CurrencyKZT CurrencyCode = "KZT"
	CurrencyMXN CurrencyCode = "MXN"
	CurrencyMYR CurrencyCode = "MYR"
	CurrencyNOK CurrencyCode = "NOK"
	CurrencyNZD CurrencyCode = "NZD"
	CurrencyPEN CurrencyCode = "PEN"
	CurrencyPHP CurrencyCode = "PHP"
	CurrencyPLN CurrencyCode = "PLN"
	CurrencyQAR CurrencyCode = "QAR"
	CurrencyRUB CurrencyCode = "RUB"
	CurrencySAR CurrencyCode = "SAR"
	CurrencySGD CurrencyCode = "SGD"
	CurrencyTHB CurrencyCode = "THB"
	CurrencyTRY CurrencyCode = "TRY"
	CurrencyTWD CurrencyCode = "TWD"
	CurrencyUAH CurrencyCode = "UAH"
	CurrencyUSD CurrencyCode = "USD"
	CurrencyUYU CurrencyCode = "UYU"
	CurrencyVND CurrencyCode = "VND"
	CurrencyZAR CurrencyCode = "ZAR"
)

type GetAppDetailsRequest

type GetAppDetailsRequest struct {
	AppIDs      []int           `url:"appids"`
	CountryCode ProductCC       `url:"cc,omitempty"`
	Language    LanguageCodeWeb `url:"language,omitempty"`
}

type GetOwnedGamesRequest

type GetOwnedGamesRequest struct {
	SteamID uint64 `url:"steamid,string"`
	// true if we want additional details (name, icon) about each game
	IncludeAppInfo bool `url:"include_appinfo,omitempty"`
	// free games are excluded by default. If this is set, free games the user has played will be returned.
	IncludePlayedFreeGames bool `url:"include_played_free_games,omitempty"`
	// some games are in the free sub, which are excluded by default.
	IncludeFreeSub bool `url:"include_free_sub,omitempty"`
	// if set, skip unvetted store apps
	SkipUnvettedApps bool `url:"skip_unvetted_apps,omitempty"`
	// will return appinfo in this language
	Language string `url:"language,omitempty"`
	// true if we want even more details (capsule, sortas, and capabilities) about each game.
	// include_appinfo must also be true.
	IncludeExtendedAppInfo bool `url:"include_extended_appinfo,omitempty"`
}

type GetOwnedGamesResponse

type GetOwnedGamesResponse struct {
	Response OwnedGames `json:"response"`
}

type GetPlayerSummariesRequest

type GetPlayerSummariesRequest struct {
	SteamID uint64 `url:"steamids,string"`
}

type GetPlayerSummariesResponse

type GetPlayerSummariesResponse struct {
	Response struct {
		Players []PlayerSummary `json:"players"`
	} `json:"response"`
}

type Language

type Language struct {
	EnglishName        string
	NativeName         string
	LanguageCode       LanguageCode
	WebAPILanguageCode LanguageCodeWeb
}

type LanguageCode

type LanguageCode string

https://partner.steamgames.com/doc/store/localization

const (
	LanguageArabic              LanguageCode = "arabic"
	LanguageBulgarian           LanguageCode = "bulgarian"
	LanguageChineseSimplified   LanguageCode = "schinese"
	LanguageChineseTraditional  LanguageCode = "tchinese"
	LanguageCzech               LanguageCode = "czech"
	LanguageDanish              LanguageCode = "danish"
	LanguageDutch               LanguageCode = "dutch"
	LanguageEnglish             LanguageCode = "english"
	LanguageFinnish             LanguageCode = "finnish"
	LanguageFrench              LanguageCode = "french"
	LanguageGerman              LanguageCode = "german"
	LanguageGreek               LanguageCode = "greek"
	LanguageHungarian           LanguageCode = "hungarian"
	LanguageItalian             LanguageCode = "italian"
	LanguageJapanese            LanguageCode = "japanese"
	LanguageKorean              LanguageCode = "koreana"
	LanguageNorwegian           LanguageCode = "norwegian"
	LanguagePolish              LanguageCode = "polish"
	LanguagePortuguese          LanguageCode = "portuguese"
	LanguagePortugueseBrazil    LanguageCode = "brazilian"
	LanguageRomanian            LanguageCode = "romanian"
	LanguageRussian             LanguageCode = "russian"
	LanguageSpanishSpain        LanguageCode = "spanish"
	LanguageSpanishLatinAmerica LanguageCode = "latam"
	LanguageSwedish             LanguageCode = "swedish"
	LanguageThai                LanguageCode = "thai"
	LanguageTurkish             LanguageCode = "turkish"
	LanguageUkrainian           LanguageCode = "ukrainian"
	LanguageVietnamese          LanguageCode = "vietnamese"
)

type LanguageCodeWeb

type LanguageCodeWeb string
const (
	LanguageWebAR    LanguageCodeWeb = "ar"
	LanguageWebBG    LanguageCodeWeb = "bg"
	LanguageWebZHCN  LanguageCodeWeb = "zh-CN"
	LanguageWebZHTW  LanguageCodeWeb = "zh-TW"
	LanguageWebCS    LanguageCodeWeb = "cs"
	LanguageWebDA    LanguageCodeWeb = "da"
	LanguageWebNL    LanguageCodeWeb = "nl"
	LanguageWebEN    LanguageCodeWeb = "en"
	LanguageWebFI    LanguageCodeWeb = "fi"
	LanguageWebFR    LanguageCodeWeb = "fr"
	LanguageWebDE    LanguageCodeWeb = "de"
	LanguageWebEL    LanguageCodeWeb = "el"
	LanguageWebHU    LanguageCodeWeb = "hu"
	LanguageWebIT    LanguageCodeWeb = "it"
	LanguageWebJA    LanguageCodeWeb = "ja"
	LanguageWebKO    LanguageCodeWeb = "ko"
	LanguageWebNO    LanguageCodeWeb = "no"
	LanguageWebPL    LanguageCodeWeb = "pl"
	LanguageWebPT    LanguageCodeWeb = "pt"
	LanguageWebPTBR  LanguageCodeWeb = "pt-BR"
	LanguageWebRO    LanguageCodeWeb = "ro"
	LanguageWebRU    LanguageCodeWeb = "ru"
	LanguageWebES    LanguageCodeWeb = "es"
	LanguageWebES419 LanguageCodeWeb = "es-419"
	LanguageWebSV    LanguageCodeWeb = "sv"
	LanguageWebTH    LanguageCodeWeb = "th"
	LanguageWebTR    LanguageCodeWeb = "tr"
	LanguageWebUK    LanguageCodeWeb = "uk"
	LanguageWebVN    LanguageCodeWeb = "vn"
)

type OwnedGames

type OwnedGames struct {
	GameCount int `json:"game_count"`
	Games     []struct {
		AppID                    uint   `json:"appid"`
		Name                     string `json:"name"`
		PlaytimeForever          uint   `json:"playtime_forever"`
		PlaytimeWindows          uint   `json:"playtime_windows_forever"`
		PlaytimeMac              uint   `json:"playtime_mac_forever"`
		PlaytimeLinux            uint   `json:"playtime_linux_forever"`
		ImgIconURL               string `json:"img_icon_url"`
		ImgLogoURL               string `json:"img_logo_url"`
		HasCommunityVisibleStats bool   `json:"has_community_visible_stats"`
	} `json:"games"`
}

type PlayerSummary

type PlayerSummary struct {
	// Unique Steam ID of the player.
	SteamID int64 `json:"steamid,string"`
	// Determines the visibility of the user's profile (public, private, friends)
	ProfileVisibility ProfileVisibility `json:"communityvisibilitystate"`
	// If set to 1, the user has configured his profile.
	ProfileState uint `json:"profilestate"`
	// User's current nick name (displayed in profile and friends list)
	Nickname string `json:"personaname"`
	// The URL for the player's Steam Community profile
	ProfileURL string `json:"profileurl"`
	// The normal sized uploaded avatar image for the user's Steam profile
	Avatar string `json:"avatar"`
	// The medium sized uploaded avatar image for the user's Steam profile
	AvatarMedium string `json:"avatarmedium"`
	// The full sized uploaded avatar image for the user's Steam profile
	AvatarFull string `json:"avatarfull"`
	//
	AvatarHash string `json:"avatarhash"`
	// The date at which the user last logged off Steam
	LastLogOffDate int64 `json:"lastlogoff"`
	// The selected privacy/visibility level of the player's comments section on their Steam Community profile
	CommentPermission CommentPermission `json:"commentpermission"`
	// The current status of the user on the Steam network
	UserStatus UserStatus `json:"personastate"`
	// The player's real name as entered on their Steam profile
	RealName string `json:"realname"`
	// The player's selected primary group to display on their Steam profile
	PrimaryGroupID string `json:"primaryclanid"`
	// The date at which the user created their Steam account
	AccountCreatedDate int64 `json:"timecreated"`
	//
	PersonaStateFlags int `json:"personastateflags"`
	// The player's selected country
	CountryCode string `json:"loccountrycode"`
	// The player's selected state
	StateCode string
	// The player's selected city.
	// This seems to refer to a database city id, so I'm not sure how to make use of this field.
	CityCode uint `json:"loccityid"`
	// The name of the game that a player is currently playing
	PlayingGameName string `json:"gameextrainfo"`
	// The id of the game that the player is currently playing.
	// This doesn't seem to be an appid, so I'm not sure how to make use of this field.
	PlayingGameID string `json:"gameid"`
	// The IP of the server the user is currently playing on.
	PlayingGameServerIP string `json:"gameserverip"`
}

type ProductCC

type ProductCC string

Country codes to get info on apps/packages.

const (
	ProductCCAE ProductCC = "ae"
	ProductCCAR ProductCC = "ar"
	ProductCCAU ProductCC = "au"
	ProductCCAZ ProductCC = "az"
	ProductCCBR ProductCC = "br"
	ProductCCCA ProductCC = "ca"
	ProductCCCH ProductCC = "ch"
	ProductCCCL ProductCC = "cl"
	ProductCCCN ProductCC = "cn"
	ProductCCCO ProductCC = "co"
	ProductCCCR ProductCC = "cr"
	ProductCCEU ProductCC = "eu"
	ProductCCHK ProductCC = "hk"
	ProductCCID ProductCC = "id"
	ProductCCIL ProductCC = "il"
	ProductCCIN ProductCC = "in"
	ProductCCJP ProductCC = "jp"
	ProductCCKR ProductCC = "kr"
	ProductCCKW ProductCC = "kw"
	ProductCCKZ ProductCC = "kz"
	ProductCCMX ProductCC = "mx"
	ProductCCMY ProductCC = "my"
	ProductCCNO ProductCC = "no"
	ProductCCNZ ProductCC = "nz"
	ProductCCPE ProductCC = "pe"
	ProductCCPH ProductCC = "ph"
	ProductCCPK ProductCC = "pk"
	ProductCCPL ProductCC = "pl"
	ProductCCQA ProductCC = "qa"
	ProductCCRU ProductCC = "ru"
	ProductCCSA ProductCC = "sa"
	ProductCCSG ProductCC = "sg"
	ProductCCTH ProductCC = "th"
	ProductCCTR ProductCC = "tr"
	ProductCCTW ProductCC = "tw"
	ProductCCUA ProductCC = "ua"
	ProductCCUK ProductCC = "uk"
	ProductCCUS ProductCC = "us"
	ProductCCUY ProductCC = "uy"
	ProductCCVN ProductCC = "vn"
	ProductCCZA ProductCC = "za"
)

type ProfileVisibility

type ProfileVisibility int

ProfileVisibility Indicates the selected privacy/visibility level of the player's Steam Community profile.

const (
	ProfileVisibilityUnknown     ProfileVisibility = 0
	ProfileVisibilityPrivate     ProfileVisibility = 1
	ProfileVisibilityFriendsOnly ProfileVisibility = 2
	ProfileVisibilityPublic      ProfileVisibility = 3
)
const (
	CommentPermissionUnknown     ProfileVisibility = 0
	CommentPermissionFriendsOnly ProfileVisibility = 1
	CommentPermissionPrivate     ProfileVisibility = 2
	CommentPermissionPublic      ProfileVisibility = 3
)

type UserStatus

type UserStatus int

UserStatus Indicates the current status of the user on the Steam network.

const (
	UserStatusOffline UserStatus = 0
	UserStatusOnline  UserStatus = 1
	UserStatusBusy    UserStatus = 2
	UserStatusAway    UserStatus = 3
	UserStatusSnooze  UserStatus = 4
	UserStatusUnknown UserStatus = 5
	UserStatusInGame  UserStatus = 6
)

Jump to

Keyboard shortcuts

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