slot0 = class("ActivityBeUpdatedCommand", pm.SimpleCommand) function slot0.execute(slot0, slot1) slot2 = slot1:getBody() if slot2.activity:getConfig("type") == ActivityConst.ACTIVITY_TYPE_VOTE and slot3:getConfig("config_id") ~= 6 then getProxy(VoteProxy):SetOrderBook(VoteOrderBook.New(slot3, not slot2.isInit, getProxy(ActivityProxy):GetVoteBookActivty().data1 < pg.gameset.order_pt_max.description[2])) slot0:sendNotification(GAME.VOTE_BOOK_BE_UPDATED_DONE) elseif slot3:getConfig("type") == ActivityConst.ACTIVITY_TYPE_INSTAGRAM then if slot3:CanBeActivated() then getProxy(ActivityProxy):AddInstagramTimer(slot3.id) end elseif slot4 and slot3:getConfig("type") == ActivityConst.ACTIVITY_TYPE_COLLECTION_EVENT then getProxy(EventProxy):AddActivityEvents(slot3:GetCollectionList(), slot3.id) end end return slot0