Skip to content

Commit

Permalink
Added new events
Browse files Browse the repository at this point in the history
Special thanks to u/Cookie001 for sharing their Player Jourals :)

CodexEntry
CollectCargo
CommunityGoal
CrewLaunchFighter
CrewMemberJoin
CrewMemberRoleChange
CrimeVictim
Died
DockSRV
EndCrewSession
EngineerCraft
FSDTarget
FSSAllBodiesFound
HeatDamage
HullDamage
LaunchSRV
MaterialCollected
MaterialDiscovered
MiningRefined
MissionRedirected
ModuleInfo
ModuleRetrieve
ModuleSwap
MultiSellExplorationData
Powerplay
PowerplaySalary
RedeemVoucher
RestockVehicle
Resurrect
SAAScanComplete
SelfDestruct
SellDrones
SendText
SetUserShip
SetUserShipName
USSDrop
  • Loading branch information
Somfic committed Dec 17, 2018
1 parent 74b0a6a commit 5e67c39
Show file tree
Hide file tree
Showing 36 changed files with 533 additions and 10 deletions.
22 changes: 22 additions & 0 deletions EliteAPI/Events/CodexEntry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CodexEntryInfo
{
public DateTime timestamp { get; set; }
public int EntryID { get; set; }
public string Name { get; set; }
public string Name_Localised { get; set; }
public string SubCategory { get; set; }
public string SubCategory_Localised { get; set; }
public string Category { get; set; }
public string Category_Localised { get; set; }
public string Region { get; set; }
public string Region_Localised { get; set; }
public string System { get; set; }
public int SystemAddress { get; set; }
public Boolean IsNewEntry { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/CollectCargo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CollectCargoInfo
{
public DateTime timestamp { get; set; }
public string Type { get; set; }
public string Type_Localised { get; set; }
public Boolean Stolen { get; set; }
}
}
37 changes: 37 additions & 0 deletions EliteAPI/Events/CommunityGoal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{

public class CommunityGoalInfo
{
public DateTime timestamp { get; set; }
public string _event { get; set; }
public List<CurrentgoalInfo> CurrentGoals { get; set; }
}

public class CurrentgoalInfo
{
public int CGID { get; set; }
public string Title { get; set; }
public string SystemName { get; set; }
public string MarketName { get; set; }
public DateTime Expiry { get; set; }
public bool IsComplete { get; set; }
public long CurrentTotal { get; set; }
public int PlayerContribution { get; set; }
public int NumContributors { get; set; }
public ToptierInfo TopTier { get; set; }
public string TierReached { get; set; }
public int PlayerPercentileBand { get; set; }
public int Bonus { get; set; }
}

public class ToptierInfo
{
public string Name { get; set; }
public string Bonus { get; set; }
}

}
11 changes: 11 additions & 0 deletions EliteAPI/Events/CrewLaunchFighter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CrewLaunchFighterInfo
{
public DateTime timestamp { get; set; }
public string Crew { get; set; }
}
}
11 changes: 11 additions & 0 deletions EliteAPI/Events/CrewMemberJoins.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CrewMemberJoinsInfo
{
public DateTime timestamp { get; set; }
public string Crew { get; set; }
}
}
12 changes: 12 additions & 0 deletions EliteAPI/Events/CrewMemberRoleChange.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CrewMemberRoleChangeInfo
{
public DateTime timestamp { get; set; }
public string Crew { get; set; }
public string Role { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/CrimeVictim.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class CrimeVictimInfo
{
public DateTime timestamp { get; set; }
public string Offender { get; set; }
public string CrimeType { get; set; }
public int Bounty { get; set; }
}
}
10 changes: 10 additions & 0 deletions EliteAPI/Events/Died.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class DiedInfo
{
public DateTime timestamp { get; set; }
}
}
10 changes: 10 additions & 0 deletions EliteAPI/Events/DockSRV.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class DockSRVInfo
{
public DateTime timestamp { get; set; }
}
}
11 changes: 11 additions & 0 deletions EliteAPI/Events/EndCrewSession.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class EndCrewSessionInfo
{
public DateTime timestamp { get; set; }
public Boolean OnCrime { get; set; }
}
}
38 changes: 38 additions & 0 deletions EliteAPI/Events/EngineerCraft.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{

public class EngineerCraftInfo
{
public DateTime timestamp { get; set; }
public string _event { get; set; }
public string Slot { get; set; }
public string Module { get; set; }
public IngredientInfo[] Ingredients { get; set; }
public string Engineer { get; set; }
public int EngineerID { get; set; }
public int BlueprintID { get; set; }
public string BlueprintName { get; set; }
public int Level { get; set; }
public float Quality { get; set; }
public ModifierInfo[] Modifiers { get; set; }
}

public class IngredientInfo
{
public string Name { get; set; }
public string Name_Localised { get; set; }
public int Count { get; set; }
}

public class ModifierInfo
{
public string Label { get; set; }
public float Value { get; set; }
public float OriginalValue { get; set; }
public int LessIsGood { get; set; }
}

}
12 changes: 12 additions & 0 deletions EliteAPI/Events/FSDTarget.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class FSDTargetInfo
{
public DateTime timestamp { get; set; }
public string Name { get; set; }
public int SystemAddress { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/FSSAllBodiesFound.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class FSSAllBodiesFoundInfo
{
public DateTime timestamp { get; set; }
public string SystemName { get; set; }
public int SystemAddress { get; set; }
public int Count { get; set; }
}
}
10 changes: 10 additions & 0 deletions EliteAPI/Events/HeatDamage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class HeatDamageInfo
{
public DateTime timestamp { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/HullDamage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class HullDamageInfo
{
public DateTime timestamp { get; set; }
public Double Health { get; set; }
public Boolean PlayerPilot { get; set; }
public Boolean Fighter { get; set; }
}
}
12 changes: 12 additions & 0 deletions EliteAPI/Events/LaunchSRV.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class LaunchSRVInfo
{
public DateTime timestamp { get; set; }
public string Loadout { get; set; }
public Boolean PlayerControlled { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/MaterialCollected.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class MaterialCollectedInfo
{
public DateTime timestamp { get; set; }
public string Category { get; set; }
public string Name { get; set; }
public int Count { get; set; }
}
}
13 changes: 13 additions & 0 deletions EliteAPI/Events/MaterialDiscovered.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class MaterialDiscoveredInfo
{
public DateTime timestamp { get; set; }
public string Category { get; set; }
public string Name { get; set; }
public int DiscoveryNumber { get; set; }
}
}
12 changes: 12 additions & 0 deletions EliteAPI/Events/MiningRefined.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class MiningRefinedInfo
{
public DateTime timestamp { get; set; }
public string Type { get; set; }
public string Type_Localised { get; set; }
}
}
16 changes: 16 additions & 0 deletions EliteAPI/Events/MissionRedirected.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class MissionRedirectedInfo
{
public DateTime timestamp { get; set; }
public int MissionID { get; set; }
public string Name { get; set; }
public string NewDestinationStation { get; set; }
public string NewDestinationSystem { get; set; }
public string OldDestinationStation { get; set; }
public string OldDestinationSystem { get; set; }
}
}
10 changes: 10 additions & 0 deletions EliteAPI/Events/ModuleInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class ModuleInfoInfo
{
public DateTime timestamp { get; set; }
}
}
20 changes: 20 additions & 0 deletions EliteAPI/Events/ModuleRetrieve.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class ModuleRetrieveInfo
{
public DateTime timestamp { get; set; }
public int MarketID { get; set; }
public string Slot { get; set; }
public string RetrievedItem { get; set; }
public string RetrievedItem_Localised { get; set; }
public string Ship { get; set; }
public int ShipID { get; set; }
public Boolean Hot { get; set; }
public string EngineerModifications { get; set; }
public int Level { get; set; }
public Double Quality { get; set; }
}
}
19 changes: 19 additions & 0 deletions EliteAPI/Events/ModuleSwap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{
public class ModuleSwapInfo
{
public DateTime timestamp { get; set; }
public int MarketID { get; set; }
public string FromSlot { get; set; }
public string ToSlot { get; set; }
public string FromItem { get; set; }
public string FromItem_Localised { get; set; }
public string ToItem { get; set; }
public string ToItem_Localised { get; set; }
public string Ship { get; set; }
public int ShipID { get; set; }
}
}
23 changes: 23 additions & 0 deletions EliteAPI/Events/MultiSellExplorationData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;

namespace EliteAPI
{

public class MultiSellExplorationDataInfo
{
public DateTime timestamp { get; set; }
public string _event { get; set; }
public List<DiscoveredInfo> Discovered { get; set; }
public int BaseValue { get; set; }
public int Bonus { get; set; }
public int TotalEarnings { get; set; }
}

public class DiscoveredInfo
{
public string SystemName { get; set; }
public int NumBodies { get; set; }
}

}
Loading

0 comments on commit 5e67c39

Please sign in to comment.