void OnProfileInfo(SteamFriends.ProfileInfoCallback callback) { var req = GetRequest(r => r.JobID == callback.JobID); if (req == null) { return; } if (callback.Result != EResult.OK) { IRC.Instance.Send(req.Channel, "{0}: Unable to request profile info for {1}: {2}", req.Requester.Nickname, req.SteamID, callback.Result); return; } var displayDict = new DisplayDictionary(); displayDict.Add("Real Name", callback.RealName); displayDict.Add("Headline", callback.Headline); displayDict.Add("City", callback.CityName); displayDict.Add("State", callback.StateName); displayDict.Add("Country", callback.CountryName); displayDict.Add("Time Created", callback.TimeCreated); displayDict.Add("Summary", callback.Summary); IRC.Instance.Send(req.Channel, "{0}: {1}: {2}", req.Requester.Nickname, req.SteamID, displayDict); IRC.Instance.Send(req.Channel, "{0}: http://steamcommunity.com/profiles/{1}/", req.Requester.Nickname, req.SteamID.ConvertToUInt64()); }
static void OnRequestingCustomerInfo(SteamFriends.ProfileInfoCallback callback) { }
public void OnProfileInfo(SteamFriends.ProfileInfoCallback callback) { Console.WriteLine(callback); }
static void OnProfileInfo(SteamFriends.ProfileInfoCallback callback) { return; }