Skip to content

Commit 9a71baf

Browse files
authored
Added gameserverip field to PlayerSummaryModel/PlayerSummaryResultContainer (#115)
Missing property from https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29
1 parent 0fbc5b8 commit 9a71baf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,10 @@ public class PlayerSummaryModel
100100
/// The id of the game that the player is currently playing. This doesn't seem to be an appid, so I'm not sure how to make use of this field.
101101
/// </summary>
102102
public string PlayingGameId { get; set; }
103+
104+
/// <summary>
105+
/// The IP of the server the user is currently playing on.
106+
/// </summary>
107+
public string PlayingGameServerIP { get; set; }
103108
}
104109
}

src/SteamWebAPI2/Models/SteamCommunity/PlayerSummaryResultContainer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ internal class PlayerSummary
130130
/// </summary>
131131
[JsonProperty(PropertyName = "gameid")]
132132
public string PlayingGameId { get; set; }
133+
134+
/// <summary>
135+
/// The IP of the server the user is currently playing on.
136+
/// </summary>
137+
[JsonProperty(PropertyName = "gameserverip")]
138+
public string PlayingGameServerIP { get; set; }
133139
}
134140

135141
/// <summary>

0 commit comments

Comments
 (0)