Example #1
0
        string GetLastOnlineInfo(FriendInfo inFriend)
        {
            switch (inFriend.OnlineStatus)
            {
            case FriendList.E_OnlineStatus.InLobby:
                return(TextDatabase.instance[LOI_NOW]);

            case FriendList.E_OnlineStatus.InGame:
                return(TextDatabase.instance[LOI_PLAYING]);

            default:
                break;
            }

            double lastOnlineDate = inFriend.PPIData.Stats.GetLastPlayedDate();

            if (inFriend.LastOnlineDate > lastOnlineDate)
            {
                lastOnlineDate = inFriend.LastOnlineDate;
            }

            return(lastOnlineDate <= 0 ? TextDatabase.instance[LOI_UNKNOWN] : GuiBaseUtils.EpochToString(lastOnlineDate));
        }
Example #2
0
        string GetLastOnlineInfo(PendingFriendInfo inFriend)
        {
            double addedDate = inFriend.AddedDate;

            return(addedDate <= 0 ? TextDatabase.instance[LOI_UNKNOWN] : GuiBaseUtils.EpochToString(addedDate));
        }