Exemplo n.º 1
0
 internal static extern ulong FriendGetLastOnline(ToxHandle tox, uint friendNumber, ref ToxErrorFriendGetLastOnline error);
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
 internal static extern ulong FriendGetLastOnline(ToxHandle tox, uint friendNumber, ref ToxErrorFriendGetLastOnline error);
Exemplo n.º 4
0
 public static extern UInt64 GetLastOnline(ToxHandle tox, UInt32 friendNumber, ref ToxErrorFriendGetLastOnline error);