This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
z_idota2_match_stats.go
112 lines (97 loc) · 2.4 KB
/
z_idota2_match_stats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Code generated by geyser. DO NOT EDIT.
// API interface: IDOTA2MatchStats.
package steam
import (
"github.com/13k/geyser/v2"
"github.com/13k/geyser/v2/schema"
"net/http"
)
// SchemaIDOTA2MatchStats stores the Interfaces for interface IDOTA2MatchStats.
var SchemaIDOTA2MatchStats = schema.MustNewInterfaces(
&schema.Interface{
Methods: schema.MustNewMethods(
&schema.Method{
HTTPMethod: http.MethodGet,
Name: "GetRealtimeStats",
Params: schema.NewMethodParams(
&schema.MethodParam{
Description: "",
Name: "server_steam_id",
Optional: false,
Type: "uint64",
},
),
Undocumented: false,
Version: 1,
},
),
Name: "IDOTA2MatchStats_570",
Undocumented: false,
},
&schema.Interface{
Methods: schema.MustNewMethods(
&schema.Method{
HTTPMethod: http.MethodGet,
Name: "GetRealtimeStats",
Params: schema.NewMethodParams(
&schema.MethodParam{
Description: "",
Name: "server_steam_id",
Optional: false,
Type: "uint64",
},
),
Undocumented: false,
Version: 1,
},
),
Name: "IDOTA2MatchStats_205790",
Undocumented: false,
},
)
// IDOTA2MatchStats represents interface IDOTA2MatchStats.
//
// Supported AppIDs: 570, 205790.
type IDOTA2MatchStats struct {
Client *Client
Interface *schema.Interface
}
// NewIDOTA2MatchStats creates a new IDOTA2MatchStats interface.
//
// Supported AppIDs: 570, 205790.
func NewIDOTA2MatchStats(c *Client, appID uint32) (*IDOTA2MatchStats, error) {
si, err := SchemaIDOTA2MatchStats.Get(schema.InterfaceKey{
AppID: appID,
Name: "IDOTA2MatchStats",
})
if err != nil {
return nil, err
}
s := &IDOTA2MatchStats{
Client: c,
Interface: si,
}
return s, nil
}
// IDOTA2MatchStats creates a new IDOTA2MatchStats interface.
//
// Supported AppIDs: 570, 205790.
func (c *Client) IDOTA2MatchStats(appID uint32) (*IDOTA2MatchStats, error) {
return NewIDOTA2MatchStats(c, appID)
}
/*
GetRealtimeStats creates a Request for interface method GetRealtimeStats.
Parameters
* server_steam_id [uint64] (required)
*/
func (i *IDOTA2MatchStats) GetRealtimeStats() (*geyser.Request, error) {
sm, err := i.Interface.Methods.Get(schema.MethodKey{
Name: "GetRealtimeStats",
Version: 1,
})
if err != nil {
return nil, err
}
req := geyser.NewRequest(i.Interface, sm)
return req, nil
}