sovStationEnteredFreeport.py (1097B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\notifications\common\formatters\sovStationEnteredFreeport.py 2 from notifications.common.formatters.sovBase import SovCaptureBaseNotification 3 4 class SovStationEnteredFreeport(SovCaptureBaseNotification): 5 6 def __init__(self): 7 SovCaptureBaseNotification.__init__(self, subjectLabel='Notifications/subjSovereigntyStationEnteredFreeport', bodyLabel='Notifications/bodySovereigntyStationEnteredFreeport') 8 9 @staticmethod 10 def MakeData(structureTypeID, solarSystemID, freeportExitTime): 11 extraData = {'freeportexittime': freeportExitTime} 12 extraData.update(SovCaptureBaseNotification.MakeData(structureTypeID=structureTypeID, solarSystemID=solarSystemID)) 13 return extraData 14 15 @staticmethod 16 def MakeSampleData(variant = 0): 17 return SovStationEnteredFreeport.MakeData(1926, 30004797, 130801371921935747L) 18 19 def _FormatBody(self, data, notification): 20 notification.body = self.localization.GetByLabel(self.bodyLabel, freeportexittime=data['freeportexittime'])