Ignore:
Timestamp:
Apr 28, 2016, 1:51:17 PM (9 years ago)
Author:
alloc
Message:

Fixes #127: Added totalplaytime and lastonline to WebAPIs GetPlayersOnline and GetPlayersLocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs

    r256 r268  
    4545                    pJson.Add("position", pos);
    4646
    47                     playersJsResult.Add (pJson);
     47                                        pJson.Add ("totalplaytime", new JSONNumber (p.TotalPlayTime));
     48                                        pJson.Add ("lastonline", new JSONString (p.LastOnline.ToString ("s")));
     49
     50                                        playersJsResult.Add (pJson);
    4851                }
    4952            }
Note: See TracChangeset for help on using the changeset viewer.