This repository has been archived by the owner on May 3, 2024. It is now read-only.
forked from Philipp15b/go-steam
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75ea9f0
commit 66be42b
Showing
8 changed files
with
435 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package steam | ||
|
||
import ( | ||
"github.com/Philipp15b/go-steam/netutil" | ||
) | ||
|
||
// When this event is emitted by the Client, the connection is automatically closed. | ||
// This may be caused by a network error, for example. | ||
type FatalErrorEvent error | ||
|
||
type ConnectedEvent struct{} | ||
|
||
type DisconnectedEvent struct{} | ||
|
||
// A list of connection manager addresses to connect to in the future. | ||
// You should always save them and then select one of these | ||
// instead of the builtin ones for the next connection. | ||
type ClientCMListEvent struct { | ||
Addresses []*netutil.PortAddr | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package steam | ||
|
||
// This event is emitted for every CMsgClientUserNotifications message and likewise only used for | ||
// trade offers. Unlike the the above it is also emitted when the count of a type that was tracked | ||
// before by this Notifications instance reaches zero. | ||
type NotificationEvent struct { | ||
Type NotificationType | ||
Count uint | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package steam | ||
|
||
import ( | ||
. "github.com/Philipp15b/go-steam/internal/steamlang" | ||
. "github.com/Philipp15b/go-steam/steamid" | ||
) | ||
|
||
type TradeProposedEvent struct { | ||
RequestId TradeRequestId | ||
Other SteamId `json:",string"` | ||
OtherName string | ||
} | ||
|
||
type TradeResultEvent struct { | ||
RequestId TradeRequestId | ||
Response EEconTradeResponse | ||
Other SteamId `json:",string"` | ||
// Number of days Steam Guard is required to have been active | ||
NumDaysSteamGuardRequired uint32 | ||
// Number of days a new device cannot trade for. | ||
NumDaysNewDeviceCooldown uint32 | ||
// Default number of days one cannot trade after a password reset. | ||
DefaultNumDaysPasswordResetProbation uint32 | ||
// See above. | ||
NumDaysPasswordResetProbation uint32 | ||
} | ||
|
||
type TradeSessionStartEvent struct { | ||
Other SteamId `json:",string"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package steam | ||
|
||
type WebLoggedOnEvent struct{} | ||
|
||
type WebSessionIdEvent struct{} |