from consts.notification_type import NotificationType
from helpers.model_to_dict import ModelToDict
from notifications.base_notification import BaseNotification


class AllianceSelectionNotification(BaseNotification):

    def __init__(self, event):
        self.event = event

    def _build_dict(self):
        data = {}
        data['message_type'] = NotificationType.type_names[NotificationType.ALLIANCE_SELECTION]
        data['message_data'] = {}
        data['message_data']['event'] = ModelToDict.eventConverter(self.event)
        return data

Add notification for alliance selections