Beispiel #1
0
        internal void AckMessage(ulong steamID, uint timestamp)
        {
            if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount || (timestamp == 0))
            {
                ArchiLogger.LogNullError(nameof(steamID) + " || " + nameof(timestamp));

                return;
            }

            if (Client == null)
            {
                ArchiLogger.LogNullError(nameof(Client));

                return;
            }

            if (!Client.IsConnected)
            {
                return;
            }

            CFriendMessages_AckMessage_Notification request = new CFriendMessages_AckMessage_Notification {
                steamid_partner = steamID,
                timestamp       = timestamp
            };

            UnifiedFriendMessagesService.SendMessage(x => x.AckMessage(request), true);
        }
        internal void AckMessage(ulong steamID, uint timestamp)
        {
            if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount)
            {
                throw new ArgumentOutOfRangeException(nameof(steamID));
            }

            if (timestamp == 0)
            {
                throw new ArgumentOutOfRangeException(nameof(timestamp));
            }

            if (Client == null)
            {
                throw new InvalidOperationException(nameof(Client));
            }

            if (!Client.IsConnected)
            {
                return;
            }

            CFriendMessages_AckMessage_Notification request = new CFriendMessages_AckMessage_Notification {
                steamid_partner = steamID,
                timestamp       = timestamp
            };

            UnifiedFriendMessagesService.SendMessage(x => x.AckMessage(request), true);
        }
Beispiel #3
0
        internal void AckMessage(ulong steamID, uint timestamp)
        {
            if ((steamID == 0) || (timestamp == 0))
            {
                ArchiLogger.LogNullError(nameof(steamID) + " || " + nameof(timestamp));
                return;
            }

            CFriendMessages_AckMessage_Notification request = new CFriendMessages_AckMessage_Notification {
                steamid_partner = steamID,
                timestamp       = timestamp
            };

            UnifiedFriendMessagesService.SendMessage(x => x.AckMessage(request), true);
        }