Ejemplo n.º 1
0
 public static SteamStatusPlayerDataResponse ToSteamStatusPlayerDataResponse(
     this PlayerSummariesResponse playerSummaries)
 {
     return(playerSummaries.Response.Players.Select(x => new SteamStatusPlayerDataResponse
     {
         Status = x.PersonaState,
         LastOnline = x.LastLogOff.FromUnixTime()
     }).FirstOrDefault());
 }
Ejemplo n.º 2
0
 public static SteamPlayerDataResponse ToSteamPlayerDataResponse(
     this PlayerSummariesResponse playerSummaries)
 {
     return(playerSummaries.Response.Players.Select(x => new SteamPlayerDataResponse
     {
         SteamName = x.PersonaName,
         PersonState = x.PersonaState,
         Avatar = x.AvatarFull,
         ProfileUrl = x.ProfileUrl,
         LocCountryCode = x.LocCountryCode
     }).FirstOrDefault());
 }