forked from paralin/go-steam
/
auth_events.go
47 lines (39 loc) · 959 Bytes
/
auth_events.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
package steam
import (
"github.com/paralin/go-steam/protocol/protobuf"
. "github.com/paralin/go-steam/protocol/steamlang"
"github.com/paralin/go-steam/steamid"
)
type LoggedOnEvent struct {
Result EResult
ExtendedResult EResult
AccountFlags EAccountFlags
ClientSteamId steamid.SteamId `json:",string"`
Body *protobuf.CMsgClientLogonResponse
}
type LogOnFailedEvent struct {
Result EResult
}
type LoginKeyEvent struct {
UniqueId uint32
LoginKey string
}
type LoggedOffEvent struct {
Result EResult
}
type MachineAuthUpdateEvent struct {
Hash []byte
}
type AccountInfoEvent struct {
PersonaName string
Country string
CountAuthedComputers int32
AccountFlags EAccountFlags
FacebookId uint64 `json:",string"`
FacebookName string
}
// Returned when Steam is down for some reason.
// A disconnect will follow, probably.
type SteamFailureEvent struct {
Result EResult
}