slot0 = class("RedPacketMediator", import("...base.ContextMediator")) function slot0.register(slot0) end function slot0.listNotificationInterests(slot0) return { ActivityProxy.ACTIVITY_SHOW_AWARDS } end function slot0.handleNotification(slot0, slot1) slot3 = slot1:getBody() if slot1:getName() == ActivityProxy.ACTIVITY_SHOW_AWARDS then slot0.viewComponent:emit(BaseUI.ON_ACHIEVE, slot3.awards, slot3.callback) end end return slot0