api

package
v0.0.0-...-5888283 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PositionFromNBAPosition

func PositionFromNBAPosition(pos string) []string

Types

type Arena

type Arena struct {
	ID         string     `json:"id"`
	Name       string     `json:"name"`
	City       *string    `json:"city"`
	State      *string    `json:"state"`
	Country    string     `json:"country"`
	NBAArenaID int        `json:"nba_arena_id"`
	CreatedAt  time.Time  `json:"created_at"`
	UpdatedAt  *time.Time `json:"updated_at"`
}

type Boxscore

type Boxscore struct {
}

type Franchise

type Franchise struct {
	ID                 string
	CreatedAt          time.Time
	UpdatedAt          *time.Time
	LeagueID           string
	NBATeamID          int
	City               string
	State              string
	Country            string
	Name               string
	Nickname           string
	StartYear          int
	EndYear            int
	Years              int
	Games              int
	Wins               int
	Losses             int
	PlayoffAppearances int
	DivisionTitles     int
	ConferenceTitles   int
	LeagueTitles       int
	Active             bool
}

type Game

type Game struct {
	ID                  string     `json:"id"`
	HomeTeamID          *string    `json:"home_team_id"`
	AwayTeamID          *string    `json:"away_team_id"`
	HomeTeamPoints      *int       `json:"home_team_points"`
	AwayTeamPoints      *int       `json:"away_team_points"`
	Status              string     `json:"status"`
	ArenaID             *string    `json:"arena_id"`
	Attendance          *int       `json:"attendance"`
	Season              string     `json:"season"`
	SeasonStage         string     `json:"season_stage"`
	Period              *int       `json:"period"`
	PeriodTimeRemaining *int       `json:"period_time_remaining"`
	Duration            *int       `json:"duration"`
	StartTime           time.Time  `json:"start_time"`
	EndTime             *time.Time `json:"end_time"`
	NBAGameID           string     `json:"nba_game_id"`
	CreatedAt           time.Time  `json:"created_at"`
	UpdatedAt           *time.Time `json:"updated_at"`
}

type PlayByPlay

type PlayByPlay struct {
}

type Player

type Player struct {
	ID              string     `json:"id"`
	FirstName       string     `json:"first_name"`
	LastName        string     `json:"last_name"`
	Birthdate       *time.Time `json:"birthdate"`
	HeightFeet      *int       `json:"height_feet"`
	HeightInches    *int       `json:"height_inches"`
	HeightMeters    *float64   `json:"height_meters"`
	WeightPounds    *int       `json:"weight_pounds"`
	WeightKilograms *float64   `json:"weight_kilograms"`
	JerseyNumber    *int       `json:"jersey_number"`
	Positions       []string   `json:"positions"`
	Active          bool       `json:"active"`
	YearsPro        *int       `json:"years_pro"`
	NBADebutYear    *int       `json:"nba_debut_year"`
	NBAPlayerID     int        `json:"nba_player_id"`
	Country         *string    `json:"country"`
	CreatedAt       time.Time  `json:"created_at"`
	UpdatedAt       *time.Time `json:"updated_at"`
}

type Position

type Position string
const (
	Unknown Position = ""
	Guard   Position = "guard"
	Forward Position = "forward"
	Center  Position = "center"
)

type Referee

type Referee struct {
	ID           string     `json:"id"`
	FirstName    string     `json:"first_name"`
	LastName     string     `json:"last_name"`
	JerseyNumber int        `json:"jersey_number"`
	NBARefereeID int        `json:"nba_referee_id"`
	CreatedAt    time.Time  `json:"created_at"`
	UpdatedAt    *time.Time `json:"updated_at"`
}

type Team

type Team struct {
	ID            string     `json:"id"`
	Name          string     `json:"name"`
	Nickname      string     `json:"nickname"`
	City          string     `json:"city"`
	AlternateCity *string    `json:"alternate_city"`
	State         *string    `json:"state"`
	Country       *string    `json:"country"`
	FranchiseID   *string    `json:"franchise_id"`
	NBAURLName    *string    `json:"nba_url_name"`
	NBAShortName  *string    `json:"nba_short_name"`
	NBATeamID     int        `json:"nba_team_id"`
	CreatedAt     time.Time  `json:"created_at"`
	UpdatedAt     *time.Time `json:"updated_at"`
}

type TeamSeason

type TeamSeason struct {
	ID           string     `json:"id"`
	CreatedAt    time.Time  `json:"created_at"`
	UpdatedAt    *time.Time `json:"updated_at"`
	TeamID       string     `json:"team_id"`
	LeagueID     string     `json:"league_id"`
	SeasonID     string     `json:"season_id"`
	ConferenceID *string    `json:"conference_id"`
	DivisionID   *string    `json:"division_id"`
	City         string
	Name         string
}

Jump to

Keyboard shortcuts

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