From 9a71baf018950c36c517b00b91e5aca14c7eaae2 Mon Sep 17 00:00:00 2001 From: slinky <49608195+slinkstr@users.noreply.github.com> Date: Sat, 20 Mar 2021 09:12:18 -0700 Subject: [PATCH] Added gameserverip field to PlayerSummaryModel/PlayerSummaryResultContainer (#115) Missing property from https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29 --- src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs | 5 +++++ .../Models/SteamCommunity/PlayerSummaryResultContainer.cs | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs b/src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs index 1a92b44..d49adc9 100644 --- a/src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs +++ b/src/Steam.Models/SteamCommunity/PlayerSummaryModel.cs @@ -100,5 +100,10 @@ public class PlayerSummaryModel /// 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. /// public string PlayingGameId { get; set; } + + /// + /// The IP of the server the user is currently playing on. + /// + public string PlayingGameServerIP { get; set; } } } \ No newline at end of file diff --git a/src/SteamWebAPI2/Models/SteamCommunity/PlayerSummaryResultContainer.cs b/src/SteamWebAPI2/Models/SteamCommunity/PlayerSummaryResultContainer.cs index 1884d1b..e8c1981 100644 --- a/src/SteamWebAPI2/Models/SteamCommunity/PlayerSummaryResultContainer.cs +++ b/src/SteamWebAPI2/Models/SteamCommunity/PlayerSummaryResultContainer.cs @@ -130,6 +130,12 @@ internal class PlayerSummary /// [JsonProperty(PropertyName = "gameid")] public string PlayingGameId { get; set; } + + /// + /// The IP of the server the user is currently playing on. + /// + [JsonProperty(PropertyName = "gameserverip")] + public string PlayingGameServerIP { get; set; } } ///