# Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/messenger/formatters/collections_by_type.py
from chat_shared import SYS_MESSAGE_TYPE as _SM_TYPE
from messenger.formatters import service_channel as _sc
from messenger.m_constants import SCH_CLIENT_MSG_TYPE
SERVER_FORMATTERS = {_SM_TYPE.serverReboot.index(): _sc.ServerRebootFormatter(),
 _SM_TYPE.serverRebootCancelled.index(): _sc.ServerRebootCancelledFormatter(),
 _SM_TYPE.battleResults.index(): _sc.BattleResultsFormatter(),
 _SM_TYPE.goldReceived.index(): _sc.GoldReceivedFormatter(),
 _SM_TYPE.invoiceReceived.index(): _sc.InvoiceReceivedFormatter(),
 _SM_TYPE.adminTextMessage.index(): _sc.AdminMessageFormatter(),
 _SM_TYPE.accountTypeChanged.index(): _sc.AccountTypeChangedFormatter(),
 _SM_TYPE.giftReceived.index(): _sc.GiftReceivedFormatter(),
 _SM_TYPE.autoMaintenance.index(): _sc.AutoMaintenanceFormatter(),
 _SM_TYPE.premiumBought.index(): _sc.PremiumBoughtFormatter(),
 _SM_TYPE.premiumExtended.index(): _sc.PremiumExtendedFormatter(),
 _SM_TYPE.premiumExpired.index(): _sc.PremiumExpiredFormatter(),
 _SM_TYPE.prbArenaFinish.index(): _sc.PrebattleArenaFinishFormatter(),
 _SM_TYPE.prbKick.index(): _sc.PrebattleKickFormatter(),
 _SM_TYPE.prbDestruction.index(): _sc.PrebattleDestructionFormatter(),
 _SM_TYPE.vehicleCamouflageTimedOut.index(): _sc.VehCamouflageTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerEmblemTimedOut.index(): _sc.VehEmblemTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerInscriptionTimedOut.index(): _sc.VehInscriptionTimedOutFormatter(),
 _SM_TYPE.vehTypeLockExpired.index(): _sc.VehicleTypeLockExpired(),
 _SM_TYPE.serverDowntimeCompensation.index(): _sc.ServerDowntimeCompensation(),
 _SM_TYPE.achievementReceived.index(): _sc.AchievementFormatter(),
 _SM_TYPE.converter.index(): _sc.ConverterFormatter(),
 _SM_TYPE.tokenQuests.index(): _sc.TokenQuestsFormatter(),
 _SM_TYPE.notificationsCenter.index(): _sc.NCMessageFormatter(),
 _SM_TYPE.clanEvent.index(): _sc.ClanMessageFormatter(),
 _SM_TYPE.fortEvent.index(): _sc.StrongholdMessageFormatter(),
Esempio n. 2
0
from chat_shared import SYS_MESSAGE_TYPE as _SM_TYPE
from messenger.formatters import service_channel as _sc
from messenger.m_constants import SCH_CLIENT_MSG_TYPE
SERVER_FORMATTERS = {
    _SM_TYPE.serverReboot.index():
    _sc.ServerRebootFormatter(),
    _SM_TYPE.serverRebootCancelled.index():
    _sc.ServerRebootCancelledFormatter(),
    _SM_TYPE.battleResults.index():
    _sc.BattleResultsFormatter(),
    _SM_TYPE.goldReceived.index():
    _sc.GoldReceivedFormatter(),
    _SM_TYPE.invoiceReceived.index():
    _sc.InvoiceReceivedFormatter(),
    _SM_TYPE.adminTextMessage.index():
    _sc.AdminMessageFormatter(),
    _SM_TYPE.accountTypeChanged.index():
    _sc.AccountTypeChangedFormatter(),
    _SM_TYPE.giftReceived.index():
    _sc.GiftReceivedFormatter(),
    _SM_TYPE.autoMaintenance.index():
    _sc.AutoMaintenanceFormatter(),
    _SM_TYPE.waresSold.index():
    _sc.WaresSoldFormatter(),
    _SM_TYPE.waresBought.index():
    _sc.WaresBoughtFormatter(),
    _SM_TYPE.premiumBought.index():
    _sc.PremiumBoughtFormatter(),
    _SM_TYPE.premiumExtended.index():
    _sc.PremiumExtendedFormatter(),
    _SM_TYPE.premiumExpired.index():
Esempio n. 3
0
from chat_shared import SYS_MESSAGE_TYPE
from messenger.formatters import service_channel as sch_formatters
SCH_SERVER_FORMATTERS_DICT = {
    SYS_MESSAGE_TYPE.serverReboot.index():
    sch_formatters.ServerRebootFormatter(),
    SYS_MESSAGE_TYPE.serverRebootCancelled.index():
    sch_formatters.ServerRebootCancelledFormatter(),
    SYS_MESSAGE_TYPE.battleResults.index():
    sch_formatters.BattleResultsFormatter(),
    SYS_MESSAGE_TYPE.goldReceived.index():
    sch_formatters.GoldReceivedFormatter(),
    SYS_MESSAGE_TYPE.invoiceReceived.index():
    sch_formatters.InvoiceReceivedFormatter(),
    SYS_MESSAGE_TYPE.adminTextMessage.index():
    sch_formatters.AdminMessageFormatter(),
    SYS_MESSAGE_TYPE.accountTypeChanged.index():
    sch_formatters.AccountTypeChangedFormatter(),
    SYS_MESSAGE_TYPE.giftReceived.index():
    sch_formatters.GiftReceivedFormatter(),
    SYS_MESSAGE_TYPE.autoMaintenance.index():
    sch_formatters.AutoMaintenanceFormatter(),
    SYS_MESSAGE_TYPE.waresSold.index():
    sch_formatters.WaresSoldFormatter(),
    SYS_MESSAGE_TYPE.waresBought.index():
    sch_formatters.WaresBoughtFormatter(),
    SYS_MESSAGE_TYPE.premiumBought.index():
    sch_formatters.PremiumBoughtFormatter(),
    SYS_MESSAGE_TYPE.premiumExtended.index():
    sch_formatters.PremiumExtendedFormatter(),
    SYS_MESSAGE_TYPE.premiumExpired.index():