简体   繁体   English

SteamKit2获得新交易报价的回调名称是什么?

[英]SteamKit2 what is the name of callback to get new trade offer?

I found in code "TradeProposedCallback" and "TradeResultCallbac" but they are not called when I get a new offer. 我在代码“ TradeProposedCallback”和“ TradeResultCallbac”中找到了,但是在我收到新报价时没有调用它们。

"SteamNotifications.NotificationCallback" called when I get a new offer but also when a new comment, message, etc. In the end, it comes out too often and I get from steam "Access Denied You don't have permission to access " http://store.steampowered.com/ " on this server. Reference" How can I fix this problem? 当我获得新报价时也调用了“ SteamNotifications.NotificationCallback”,但是当我收到新评论,消息等时,该消息最终发出。我从蒸汽中获得消息“访问被拒绝,您无权访问” http ://store.steampowered.com/ “在此服务器上。参考”如何解决此问题? Without making a crutch in the form of a delay. 不会以拖延的形式制造拐杖。

My solution 我的解决方案

   if (callback.Notifications.Count > 0 && callback.Notifications[0].UserNotificationType == SteamBot.SteamNotifications.NotificationCallback.UserNotificationType.TradeOffer)
                    {
                        Console.WriteLine("TradeOffer");
                     }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM