diff --git a/steam/core/msg/structs.py b/steam/core/msg/structs.py index e37890d..bd466e5 100644 --- a/steam/core/msg/structs.py +++ b/steam/core/msg/structs.py @@ -215,3 +215,52 @@ class ClientChatMemberInfo(StructMessage): "chatAction: %d" % self.chatAction, "steamIdUserActedBy: %d" % self.steamIdUserActedBy ]) + +class ClientMarketingMessageUpdate2(StructMessage): + class MarketingMessage(object): + id = 0 + url = '' + flags = 0 + + def __str__(self): + return '\n'.join(["{", + "id: %s" % self.id, + "url: %s" % self.url, + "flags: %d" % self.flags, + "}", + ]) + + time = 0 + + @property + def count(self): + return len(self.messages) + + messages = list() + + def load(self, data): + (self.time, count), self.messages = struct.unpack_from("