Skip to content

Commit

Permalink
Added DockingCancelled event.
Browse files Browse the repository at this point in the history
(how'd I miss it)
  • Loading branch information
Somfic committed Dec 17, 2018
1 parent 6bebf73 commit ccd110f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions EliteAPI/EliteAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
<Compile Include="Events\CrimeVictim.cs" />
<Compile Include="Events\Died.cs" />
<Compile Include="Events\DiscoveryScan.cs" />
<Compile Include="Events\DockingCancelled.cs" />
<Compile Include="Events\DockingDenied.cs" />
<Compile Include="Events\DockingGranted.cs" />
<Compile Include="Events\DockingRequested.cs" />
Expand Down
6 changes: 6 additions & 0 deletions EliteAPI/EliteDangerousAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,15 @@ private void Process(string json)
case "CollectCargo":
CollectCargoEvent?.Invoke(this, JsonConvert.DeserializeObject<CollectCargoInfo>(json));
break;

case "DockingCancelled":
DockingCancelledEvent?.Invoke(this, JsonConvert.DeserializeObject<DockingCancelledInfo>(json));
break;
}
}

public event EventHandler<DockingCancelledInfo> DockingCancelledEvent;

public event EventHandler<PowerplayInfo> PowerplayEvent;

public event EventHandler<CommunityGoalInfo> CommunityGoalEvent;
Expand Down
12 changes: 12 additions & 0 deletions EliteAPI/Events/DockingCancelled.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace EliteAPI
{
public class DockingCancelledInfo
{
public DateTime timestamp { get; set; }
public long MarketID { get; set; }
public string StationName { get; set; }
public string StationType { get; set; }
}
}
4 changes: 2 additions & 2 deletions EliteAPI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.6.1")]
[assembly: AssemblyFileVersion("1.1.6.1")]
[assembly: AssemblyVersion("1.1.6.2")]
[assembly: AssemblyFileVersion("1.1.6.2")]
[assembly: NeutralResourcesLanguage("en")]

0 comments on commit ccd110f

Please sign in to comment.