flakas/reconbot

ESI Notifications

tonytonyistony opened this issue · 1 comments

I found the below info on this website.

https://esi.evetech.net/ui/?version=latest#/Character/get_characters_character_id_notifications

AcceptedAlly,
AcceptedSurrender,
AllAnchoringMsg,
AllMaintenanceBillMsg,
AllStrucInvulnerableMsg,
AllStructVulnerableMsg,
AllWarCorpJoinedAllianceMsg,
AllWarDeclaredMsg,
AllWarInvalidatedMsg,
AllWarRetractedMsg,
AllWarSurrenderMsg,
AllianceCapitalChanged,
AllianceWarDeclaredV2,
AllyContractCancelled,
AllyJoinedWarAggressorMsg,
AllyJoinedWarAllyMsg,
AllyJoinedWarDefenderMsg,
BattlePunishFriendlyFire,
BillOutOfMoneyMsg,
BillPaidCorpAllMsg,
BountyClaimMsg,
BountyESSShared,
BountyESSTaken,
BountyPlacedAlliance,
BountyPlacedChar,
BountyPlacedCorp,
BountyYourBountyClaimed,
BuddyConnectContactAdd,
CharAppAcceptMsg,
CharAppRejectMsg,
CharAppWithdrawMsg,
CharLeftCorpMsg,
CharMedalMsg,
CharTerminationMsg,
CloneActivationMsg,
CloneActivationMsg2,
CloneMovedMsg,
CloneRevokedMsg1,
CloneRevokedMsg2,
CombatOperationFinished,
ContactAdd,
ContactEdit,
ContainerPasswordMsg,
CorpAllBillMsg,
CorpAppAcceptMsg,
CorpAppInvitedMsg,
CorpAppNewMsg,
CorpAppRejectCustomMsg,
CorpAppRejectMsg,
CorpBecameWarEligible,
CorpDividendMsg,
CorpFriendlyFireDisableTimerCompleted,
CorpFriendlyFireDisableTimerStarted,
CorpFriendlyFireEnableTimerCompleted,
CorpFriendlyFireEnableTimerStarted,
CorpKicked,
CorpLiquidationMsg,
CorpNewCEOMsg,
CorpNewsMsg,
CorpNoLongerWarEligible,
CorpOfficeExpirationMsg,
CorpStructLostMsg,
CorpTaxChangeMsg,
CorpVoteCEORevokedMsg,
CorpVoteMsg,
CorpWarDeclaredMsg,
CorpWarDeclaredV2,
CorpWarFightingLegalMsg,
CorpWarInvalidatedMsg,
CorpWarRetractedMsg,
CorpWarSurrenderMsg,
CustomsMsg,
DeclareWar,
DistrictAttacked,
DustAppAcceptedMsg,
EntosisCaptureStarted,
FWAllianceKickMsg,
FWAllianceWarningMsg,
FWCharKickMsg,
FWCharRankGainMsg,
FWCharRankLossMsg,
FWCharWarningMsg,
FWCorpJoinMsg,
FWCorpKickMsg,
FWCorpLeaveMsg,
FWCorpWarningMsg,
FacWarCorpJoinRequestMsg,
FacWarCorpJoinWithdrawMsg,
FacWarCorpLeaveRequestMsg,
FacWarCorpLeaveWithdrawMsg,
FacWarLPDisqualifiedEvent,
FacWarLPDisqualifiedKill,
FacWarLPPayoutEvent,
FacWarLPPayoutKill,
GameTimeAdded,
GameTimeReceived,
GameTimeSent,
GiftReceived,
IHubDestroyedByBillFailure,
IncursionCompletedMsg,
IndustryOperationFinished,
IndustryTeamAuctionLost,
IndustryTeamAuctionWon,
InfrastructureHubBillAboutToExpire,
InsuranceExpirationMsg,
InsuranceFirstShipMsg,
InsuranceInvalidatedMsg,
InsuranceIssuedMsg,
InsurancePayoutMsg,
InvasionSystemLogin,
JumpCloneDeletedMsg1,
JumpCloneDeletedMsg2,
KillReportFinalBlow,
KillReportVictim,
KillRightAvailable,
KillRightAvailableOpen,
KillRightEarned,
KillRightUnavailable,
KillRightUnavailableOpen,
KillRightUsed,
LocateCharMsg,
MadeWarMutual,
MercOfferRetractedMsg,
MercOfferedNegotiationMsg,
MissionOfferExpirationMsg,
MissionTimeoutMsg,
MoonminingAutomaticFracture,
MoonminingExtractionCancelled,
MoonminingExtractionFinished,
MoonminingExtractionStarted,
MoonminingLaserFired,
MutualWarExpired,
MutualWarInviteAccepted,
MutualWarInviteRejected,
MutualWarInviteSent,
NPCStandingsGained,
NPCStandingsLost,
OfferToAllyRetracted,
OfferedSurrender,
OfferedToAlly,
OldLscMessages,
OperationFinished,
OrbitalAttacked,
OrbitalReinforced,
OwnershipTransferred,
RaffleCreated,
RaffleExpired,
RaffleFinished,
ReimbursementMsg,
ResearchMissionAvailableMsg,
RetractsWar,
SeasonalChallengeCompleted,
SovAllClaimAquiredMsg,
SovAllClaimLostMsg,
SovCommandNodeEventStarted,
SovCorpBillLateMsg,
SovCorpClaimFailMsg,
SovDisruptorMsg,
SovStationEnteredFreeport,
SovStructureDestroyed,
SovStructureReinforced,
SovStructureSelfDestructCancel,
SovStructureSelfDestructFinished,
SovStructureSelfDestructRequested,
SovereigntyIHDamageMsg,
SovereigntySBUDamageMsg,
SovereigntyTCUDamageMsg,
StationAggressionMsg1,
StationAggressionMsg2,
StationConquerMsg,
StationServiceDisabled,
StationServiceEnabled,
StationStateChangeMsg,
StoryLineMissionAvailableMsg,
StructureAnchoring,
StructureCourierContractChanged,
StructureDestroyed,
StructureFuelAlert,
StructureImpendingAbandonmentAssetsAtRisk,
StructureItemsDelivered,
StructureItemsMovedToSafety,
StructureLostArmor,
StructureLostShields,
StructureOnline,
StructureServicesOffline,
StructureUnanchoring,
StructureUnderAttack,
StructureWentHighPower,
StructureWentLowPower,
StructuresJobsCancelled,
StructuresJobsPaused,
StructuresReinforcementChanged,
TowerAlertMsg,
TowerResourceAlertMsg,
TransactionReversalMsg,
TutorialMsg,
WarAdopted,
WarAllyInherited,
WarAllyOfferDeclinedMsg,
WarConcordInvalidates,
WarDeclared,
WarEndedHqSecurityDrop,
WarHQRemovedFromSpace,
WarInherited,
WarInvalid,
WarRetracted,
WarRetractedByConcord,
WarSurrenderDeclinedMsg,
WarSurrenderOfferMsg,

WarDeclared

This one is responding with "Unknown notification type for printing". Ive added the following line to my printer.py file to see if it fixes it.
'WarDeclared': self.corporation_war_declared,

and I adjusted corporation_war_declared as follows.
return '{0:get_corporation_or_alliance(declaredByID)} has been declared war on {0:get_corporation_or_alliance(againstID)}'

I looked at the ESI response and it is now passing WarHQ information, but I dont think you will be able to pull that info outside of EVE, which is why I had WarDeclared reference corporation_war_declared for printing.

Below is the GET response for you viewing pleasure.

"text": 
"againstID: Defender Corp/Alliance ID\n
cost: 100000000\n
declaredByID: Agressor Corp/Alliance ID\n
delayHours: 24\n
hostileState: false\n
timeStarted: 132419236800000000\n
warHQ: <b>In game link to structure</b>\n
warHQ_IdType:\n- 1034061688693\n- 35825\n",  ##I dont know what these ID's relate to for the WarHQ