internal static extern ulong FriendGetLastOnline(ToxHandle tox, uint friendNumber, ref ToxErrorFriendGetLastOnline error);
/// <summary> /// Retrieves the time a friend was last seen online. /// </summary> /// <param name="friendNumber">The friend to retrieve the 'last online' of.</param> /// <param name="error"></param> /// <returns>The time this friend was last seen online, on success.</returns> public DateTime GetFriendLastOnline(int friendNumber, out ToxErrorFriendGetLastOnline error) { error = ToxErrorFriendGetLastOnline.Ok; ulong time = ToxFunctions.FriendGetLastOnline(_tox, (uint)friendNumber, ref error); return ToxTools.EpochToDateTime(time); }
public static extern UInt64 GetLastOnline(ToxHandle tox, UInt32 friendNumber, ref ToxErrorFriendGetLastOnline error);