slot0 = class("VoteFameHallMediator", import("..base.ContextMediator")) slot0.ON_SUBMIT_TASK = "VoteFameHallMediator:ON_SUBMIT_TASK" function slot0.register(slot0) slot0:bind(uv0.ON_SUBMIT_TASK, function (slot0, slot1) uv0:sendNotification(GAME.SUBMIT_TASK, slot1) end) slot0.viewComponent:SetPastVoteData(getProxy(VoteProxy):GetPastVoteData()) end function slot0.listNotificationInterests(slot0) return { GAME.SUBMIT_TASK_DONE } end function slot0.handleNotification(slot0, slot1) slot3 = slot1:getBody() if slot1:getName() == GAME.SUBMIT_TASK_DONE then slot0.viewComponent:UpdateTips(slot0.viewComponent.year) slot0.viewComponent:UpdateBtnsTip() end end return slot0