2024-07-02 04:16:44 +00:00
|
|
|
package statsapi
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2024-07-04 03:27:36 +00:00
|
|
|
"errors"
|
2024-07-12 00:42:59 +00:00
|
|
|
"log"
|
2024-07-04 03:27:36 +00:00
|
|
|
"strconv"
|
|
|
|
"strings"
|
2024-07-02 04:16:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type FeedParams struct {
|
|
|
|
GamePk string
|
|
|
|
}
|
|
|
|
|
2024-07-04 03:27:36 +00:00
|
|
|
type FeedResponse map[string]any
|
2024-07-02 04:16:44 +00:00
|
|
|
|
|
|
|
type Play struct {
|
|
|
|
Result result
|
|
|
|
About about
|
|
|
|
AtBatIndex int
|
|
|
|
}
|
|
|
|
|
|
|
|
type result struct {
|
|
|
|
Event string
|
|
|
|
Description string
|
|
|
|
RBI int
|
|
|
|
AwayScore int
|
|
|
|
HomeScore int
|
|
|
|
}
|
|
|
|
|
|
|
|
type about struct {
|
|
|
|
AtBatIndex json.Number
|
|
|
|
IsTopInning bool
|
|
|
|
Inning json.Number
|
|
|
|
IsScoringPlay bool
|
|
|
|
CaptivatingIndex json.Number
|
|
|
|
}
|