2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 08:23:42 -04:00

Initial Commit

This commit is contained in:
2024-04-13 15:54:59 +10:00
parent 8e178cbb7b
commit 63ed43f4af
459 changed files with 8039 additions and 20504 deletions

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class BuyAmmo : JournalBase
{
public class BuyAmmo : JournalBase
{
public int Cost { get; init; }
}
}
public int Cost { get; init; }
}

View File

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class BuyDrones : JournalBase
{
public class BuyDrones : JournalBase
{
public string Type { get; init; }
public int Count { get; init; }
public uint BuyPrice { get; init; }
public uint SellPrice { get; init; }
public int TotalCost { get; init; }
}
}
public string Type { get; init; }
public int Count { get; init; }
public uint BuyPrice { get; init; }
public uint SellPrice { get; init; }
public int TotalCost { get; init; }
}

View File

@ -1,21 +1,20 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CargoDepot : JournalBase
{
public class CargoDepot : JournalBase
{
public ulong MissionID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UpdateType UpdateType { get; init; }
public string CargoType { get; init; }
public string CargoType_Localised { get; init; }
public int Count { get; init; }
public ulong StartMarketID { get; init; }
public ulong EndMarketID { get; init; }
public int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }
public float Progress { get; init; }
}
}
public ulong MissionID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public UpdateType UpdateType { get; init; }
public string CargoType { get; init; }
public string CargoType_Localised { get; init; }
public int Count { get; init; }
public ulong StartMarketID { get; init; }
public ulong EndMarketID { get; init; }
public int ItemsCollected { get; init; }
public int ItemsDelivered { get; init; }
public int TotalItemsToDeliver { get; init; }
public float Progress { get; init; }
}

View File

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ClearImpound : JournalBase
{
public class ClearImpound : JournalBase
{
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public ulong ShipMarketID { get; init; }
public ulong MarketID { get; init; }
}
}
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public ulong ShipMarketID { get; init; }
public ulong MarketID { get; init; }
}

View File

@ -1,10 +1,9 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoal : JournalBase
{
public class CommunityGoal : JournalBase
{
public ImmutableList<CurrentGoal> CurrentGoals { get; init; }
}
}
public ImmutableList<CurrentGoal> CurrentGoals { get; init; }
}

View File

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalDiscard : JournalBase
{
public class CommunityGoalDiscard : JournalBase
{
public ulong CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}
}
public ulong CGID { get; init; }
public string Name { get; init; }
public string System { get; init; }
}

View File

@ -1,6 +1,5 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalJoin : CommunityGoalDiscard
{
public class CommunityGoalJoin : CommunityGoalDiscard
{
}
}
}

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CommunityGoalReward : CommunityGoalDiscard
{
public class CommunityGoalReward : CommunityGoalDiscard
{
public long Reward { get; init; }
}
}
public long Reward { get; init; }
}

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewAssign : CrewFire
{
public class CrewAssign : CrewFire
{
public string Role { get; init; }
}
}
public string Role { get; init; }
}

View File

@ -1,8 +1,7 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewFire : JournalBase
{
public class CrewFire : JournalBase
{
public string Name { get; init; }
public ulong CrewID { get; init; }
}
}
public string Name { get; init; }
public ulong CrewID { get; init; }
}

View File

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class CrewHire : CrewFire
{
public class CrewHire : CrewFire
{
public string Faction { get; init; }
public long Cost { get; init; }
public int CombatRank { get; init; }
}
}
public string Faction { get; init; }
public long Cost { get; init; }
public int CombatRank { get; init; }
}

View File

@ -1,12 +1,9 @@
using System;
namespace Observatory.Framework.Files.Journal.StationServices;
namespace Observatory.Framework.Files.Journal
[Obsolete("This event was removed in Elite Dangerous 3.0 and will only appear in legacy data.")]
public class EngineerApply : JournalBase
{
[Obsolete("This event was removed in Elite Dangerous 3.0 and will only appear in legacy data.")]
public class EngineerApply : JournalBase
{
public string Engineer { get; init; }
public string Blueprint { get; init; }
public int Level { get; init; }
}
}
public string Engineer { get; init; }
public string Blueprint { get; init; }
public int Level { get; init; }
}

View File

@ -1,20 +1,19 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerContribution : JournalBase
{
public class EngineerContribution : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public string Material { get; init; }
public string Material_Localised { get; init; }
public string Faction { get; init; }
public int Quantity { get; init; }
public int TotalQuantity { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ContributionType Type { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public string Material { get; init; }
public string Material_Localised { get; init; }
public string Faction { get; init; }
public int Quantity { get; init; }
public int TotalQuantity { get; init; }
}

View File

@ -1,26 +1,25 @@
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerCraft : JournalBase
{
public class EngineerCraft : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public ulong BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public ImmutableList<Material> Ingredients { get; init; }
public ImmutableList<Modifier> Modifiers { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public string Blueprint { get; init; }
public string Slot { get; init; }
public string Module { get; init; }
public ulong BlueprintID { get; init; }
public string BlueprintName { get; init; }
public string ExperimentalEffect { get; init; }
public string ExperimentalEffect_Localised { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public string ApplyExperimentalEffect { get; init; }
[JsonConverter(typeof(MaterialConverter))]
public ImmutableList<Material> Ingredients { get; init; }
public ImmutableList<Modifier> Modifiers { get; init; }
}

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerLegacyConvert : EngineerCraft
{
public class EngineerLegacyConvert : EngineerCraft
{
public bool IsPreview { get; init; }
}
}
public bool IsPreview { get; init; }
}

View File

@ -1,17 +1,16 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class EngineerProgress : JournalBase
{
public class EngineerProgress : JournalBase
{
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ParameterTypes.Progress Progress { get; init; }
public ImmutableList<EngineerType> Engineers { get; init; }
}
}
public string Engineer { get; init; }
public ulong EngineerID { get; init; }
public int Rank { get; init; }
public int RankProgress { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public ParameterTypes.Progress Progress { get; init; }
public ImmutableList<EngineerType> Engineers { get; init; }
}

View File

@ -1,14 +1,13 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class FetchRemoteModule : JournalBase
{
public class FetchRemoteModule : JournalBase
{
public ulong ShipID { get; init; }
public int StorageSlot { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public ulong ServerId { get; init; }
public long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }
}
}
public ulong ShipID { get; init; }
public int StorageSlot { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public ulong ServerId { get; init; }
public long TransferCost { get; init; }
public string Ship { get; init; }
public long TransferTime { get; init; }
}

View File

@ -1,19 +1,18 @@
using System.Text.Json.Serialization;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
// TODO: Read market.json file - Will only be valid for most recent market event
public class Market : JournalBase
{
// TODO: Read market.json file - Will only be valid for most recent market event
public class Market : JournalBase
{
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess CarrierDockingAccess { get; init; }
}
}
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StationType { get; init; }
public string StarSystem { get; init; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public CarrierDockingAccess CarrierDockingAccess { get; init; }
}

View File

@ -1,13 +1,12 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MassModuleStore : JournalBase
{
public class MassModuleStore : JournalBase
{
public ulong MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public ImmutableList<Item> Items { get; init; }
}
}
public ulong MarketID { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public ImmutableList<Item> Items { get; init; }
}

View File

@ -1,12 +1,11 @@
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MaterialTrade : JournalBase
{
public class MaterialTrade : JournalBase
{
public ulong MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }
}
}
public ulong MarketID { get; init; }
public string TraderType { get; init; }
public TradeDetail Paid { get; init; }
public TradeDetail Received { get; init; }
}

View File

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionAbandoned : JournalBase
{
public class MissionAbandoned : JournalBase
{
public string Name { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}
}
public string Name { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}

View File

@ -1,56 +1,53 @@
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System;
using System.Globalization;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionAccepted : JournalBase
{
public class MissionAccepted : JournalBase
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public ulong MissionID { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]
public MissionEffect Influence { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]
public MissionEffect Reputation { get; init; }
public long Reward { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }
public string Donation { get; init; }
public int Donated { get; init; }
public string Target { get; init; }
public string Target_Localised { get; init; }
public string TargetType { get; init; }
public string TargetType_Localised { get; init; }
public string TargetFaction { get; init; }
public int KillCount { get; init; }
public string Expiry { get; init; }
public DateTime ExpiryDateTime
{
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public ulong MissionID { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]
public MissionEffect Influence { get; init; }
[JsonConverter(typeof(MissionEffectConverter))]
public MissionEffect Reputation { get; init; }
public long Reward { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }
public string Donation { get; init; }
public int Donated { get; init; }
public string Target { get; init; }
public string Target_Localised { get; init; }
public string TargetType { get; init; }
public string TargetType_Localised { get; init; }
public string TargetFaction { get; init; }
public int KillCount { get; init; }
public string Expiry { get; init; }
public DateTime ExpiryDateTime
get
{
get
if (DateTime.TryParseExact(Expiry, "yyyy-MM-ddTHH:mm:ssZ", null, DateTimeStyles.AssumeUniversal, out var expiryDateTime))
{
if (DateTime.TryParseExact(Expiry, "yyyy-MM-ddTHH:mm:ssZ", null, System.Globalization.DateTimeStyles.AssumeUniversal, out DateTime expiryDateTime))
{
return expiryDateTime;
}
else
{
return new DateTime();
}
return expiryDateTime;
}
return new DateTime();
}
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
public string NewDestinationSystem { get; init; }
public string NewDestinationStation { get; init; }
public int PassengerCount { get; init; }
public bool PassengerVIPs { get; init; }
public bool PassengerWanted { get; init; }
public string PassengerType { get; init; }
public bool Wing { get; init; }
}
}
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
public string NewDestinationSystem { get; init; }
public string NewDestinationStation { get; init; }
public int PassengerCount { get; init; }
public bool PassengerVIPs { get; init; }
public bool PassengerWanted { get; init; }
public string PassengerType { get; init; }
public bool Wing { get; init; }
}

View File

@ -1,37 +1,36 @@
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionCompleted : JournalBase
{
public class MissionCompleted : JournalBase
{
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public ulong MissionID { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }
public string Target { get; init; }
public string Target_Localised { get; init; }
public string TargetType { get; init; }
public string TargetType_Localised { get; init; }
public long Reward { get; init; }
[JsonConverter(typeof(StringIntConverter))]
public int Donation { get; init; }
public long Donated { get; init; }
public ImmutableList<string> PermitsAwarded { get; init; }
public ImmutableList<CommodityReward> CommodityReward { get; init; }
public ImmutableList<MaterialReward> MaterialsReward { get; init; }
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
public string NewDestinationSystem { get; init; }
public string NewDestinationStation { get; init; }
public int KillCount { get; init; }
public string TargetFaction { get; init; }
public ImmutableList<FactionEffect> FactionEffects { get; init; }
}
}
public string Name { get; init; }
public string LocalisedName { get; init; }
public string Faction { get; init; }
public ulong MissionID { get; init; }
public string Commodity { get; init; }
public string Commodity_Localised { get; init; }
public int Count { get; init; }
public string Target { get; init; }
public string Target_Localised { get; init; }
public string TargetType { get; init; }
public string TargetType_Localised { get; init; }
public long Reward { get; init; }
[JsonConverter(typeof(StringIntConverter))]
public int Donation { get; init; }
public long Donated { get; init; }
public ImmutableList<string> PermitsAwarded { get; init; }
public ImmutableList<CommodityReward> CommodityReward { get; init; }
public ImmutableList<MaterialReward> MaterialsReward { get; init; }
public string DestinationSystem { get; init; }
public string DestinationStation { get; init; }
public string DestinationSettlement { get; init; }
public string NewDestinationSystem { get; init; }
public string NewDestinationStation { get; init; }
public int KillCount { get; init; }
public string TargetFaction { get; init; }
public ImmutableList<FactionEffect> FactionEffects { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionFailed : JournalBase
{
public class MissionFailed : JournalBase
{
public string Name { get; init; }
public string Name_Localised { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}
}
public string Name { get; init; }
public string Name_Localised { get; init; }
public ulong MissionID { get; init; }
public long Fine { get; init; }
}

View File

@ -1,13 +1,12 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class MissionRedirected : JournalBase
{
public class MissionRedirected : JournalBase
{
public string Name { get; init; }
public string Name_Localised { get; init; }
public ulong MissionID { get; init; }
public string NewDestinationStation { get; init; }
public string OldDestinationStation { get; init; }
public string NewDestinationSystem { get; init; }
public string OldDestinationSystem { get; init; }
}
}
public string Name { get; init; }
public string Name_Localised { get; init; }
public ulong MissionID { get; init; }
public string NewDestinationStation { get; init; }
public string OldDestinationStation { get; init; }
public string NewDestinationSystem { get; init; }
public string OldDestinationSystem { get; init; }
}

View File

@ -1,18 +1,17 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ModuleBuy : JournalBase
{
public class ModuleBuy : JournalBase
{
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string BuyItem { get; init; }
public string BuyItem_Localised { get; init; }
public uint BuyPrice { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public uint SellPrice { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}
}
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string BuyItem { get; init; }
public string BuyItem_Localised { get; init; }
public uint BuyPrice { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public uint SellPrice { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}

View File

@ -1,19 +1,18 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ModuleRetrieve : JournalBase
{
public class ModuleRetrieve : JournalBase
{
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string RetrievedItem { get; init; }
public string RetrievedItem_Localised { get; init; }
public bool Hot { get; init; }
public string SwapOutItem { get; init; }
public string SwapOutItem_Localised { get; init; }
public string EngineerModifications { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public int Cost { get; init; }
}
}
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string RetrievedItem { get; init; }
public string RetrievedItem_Localised { get; init; }
public bool Hot { get; init; }
public string SwapOutItem { get; init; }
public string SwapOutItem_Localised { get; init; }
public string EngineerModifications { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
public int Cost { get; init; }
}

View File

@ -1,13 +1,12 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ModuleSell : JournalBase
{
public class ModuleSell : JournalBase
{
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public uint SellPrice { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}
}
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public uint SellPrice { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}

View File

@ -1,13 +1,12 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ModuleSellRemote : JournalBase
{
public class ModuleSellRemote : JournalBase
{
public int StorageSlot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public ulong ServerId { get; init; }
public uint SellPrice { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}
}
public int StorageSlot { get; init; }
public string SellItem { get; init; }
public string SellItem_Localised { get; init; }
public ulong ServerId { get; init; }
public uint SellPrice { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}

View File

@ -1,22 +1,19 @@
using System;
namespace Observatory.Framework.Files.Journal.StationServices;
namespace Observatory.Framework.Files.Journal
public class ModuleStore : JournalBase
{
public class ModuleStore : JournalBase
{
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public bool Hot { get; init; }
public string EngineerModifications { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
[Obsolete(JournalUtilities.UnusedMessage)]
public string ReplacementItem { get; init; }
[Obsolete(JournalUtilities.UnusedMessage)]
public int Cost { get; init; }
}
}
public ulong MarketID { get; init; }
public string Slot { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string StoredItem { get; init; }
public string StoredItem_Localised { get; init; }
public bool Hot { get; init; }
public string EngineerModifications { get; init; }
public int Level { get; init; }
public float Quality { get; init; }
[Obsolete(JournalUtilities.UnusedMessage)]
public string ReplacementItem { get; init; }
[Obsolete(JournalUtilities.UnusedMessage)]
public int Cost { get; init; }
}

View File

@ -1,15 +1,14 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ModuleSwap : JournalBase
{
public class ModuleSwap : JournalBase
{
public ulong MarketID { get; init; }
public string FromSlot { get; init; }
public string ToSlot { get; init; }
public string FromItem { get; init; }
public string FromItem_Localised { get; init; }
public string ToItem { get; init; }
public string ToItem_Localised { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}
}
public ulong MarketID { get; init; }
public string FromSlot { get; init; }
public string ToSlot { get; init; }
public string FromItem { get; init; }
public string FromItem_Localised { get; init; }
public string ToItem { get; init; }
public string ToItem_Localised { get; init; }
public string Ship { get; init; }
public ulong ShipID { get; init; }
}

View File

@ -1,12 +1,11 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class Outfitting : JournalBase
{
public class Outfitting : JournalBase
{
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
}
}
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
}

View File

@ -1,12 +1,11 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class PayBounties : JournalBase
{
public class PayBounties : JournalBase
{
public long Amount { get; init; }
public float BrokerPercentage { get; init; }
public bool AllFines { get; init; }
public string Faction { get; init; }
public string Faction_Localised { get; init; }
public ulong ShipID { get; init; }
}
}
public long Amount { get; init; }
public float BrokerPercentage { get; init; }
public bool AllFines { get; init; }
public string Faction { get; init; }
public string Faction_Localised { get; init; }
public ulong ShipID { get; init; }
}

View File

@ -1,6 +1,5 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class PayFines : PayBounties
{
public class PayFines : PayBounties
{
}
}
}

View File

@ -1,11 +1,8 @@
using System;
namespace Observatory.Framework.Files.Journal.StationServices;
namespace Observatory.Framework.Files.Journal
[Obsolete(JournalUtilities.ObsoleteMessage)]
public class PayLegacyFines : JournalBase
{
[Obsolete(JournalUtilities.ObsoleteMessage)]
public class PayLegacyFines : JournalBase
{
public long Amount { get; init; }
public float BrokerPercentage { get; init; }
}
public long Amount { get; init; }
public float BrokerPercentage { get; init; }
}

View File

@ -1,18 +1,17 @@
using System.Text.Json.Serialization;
using System.Collections.Immutable;
using System.Text.Json.Serialization;
using Observatory.Framework.Files.Converters;
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class RedeemVoucher : JournalBase
{
public class RedeemVoucher : JournalBase
{
[JsonConverter(typeof(VoucherTypeConverter))]
public VoucherType Type { get; init; }
public long Amount { get; init; }
public string Faction { get; init; }
public float BrokerPercentage { get; init; }
public ImmutableList<VoucherFaction> Factions { get; init; }
[JsonConverter(typeof(VoucherTypeConverter))]
public VoucherType Type { get; init; }
public long Amount { get; init; }
public string Faction { get; init; }
public float BrokerPercentage { get; init; }
public ImmutableList<VoucherFaction> Factions { get; init; }
}
}
}

View File

@ -1,8 +1,7 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class RefuelAll : JournalBase
{
public class RefuelAll : JournalBase
{
public int Cost { get; init; }
public float Amount { get; init; }
}
}
public int Cost { get; init; }
public float Amount { get; init; }
}

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
{
public class RefuelPartial : RefuelAll
{
namespace Observatory.Framework.Files.Journal.StationServices;
}
}
public class RefuelPartial : RefuelAll
{
}

View File

@ -1,11 +1,10 @@
using System.Collections.Immutable;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class Repair : JournalBase
{
public class Repair : JournalBase
{
public string Item { get; init; }
public int Cost { get; init; }
public ImmutableList<string> Items { get; init; }
}
}
public string Item { get; init; }
public int Cost { get; init; }
public ImmutableList<string> Items { get; init; }
}

View File

@ -1,7 +1,6 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class RepairAll : JournalBase
{
public class RepairAll : JournalBase
{
public int Cost { get; init; }
}
}
public int Cost { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class RestockVehicle : JournalBase
{
public class RestockVehicle : JournalBase
{
public string Type { get; init; }
public string Loadout { get; init; }
public int Cost { get; init; }
public int Count { get; init; }
}
}
public string Type { get; init; }
public string Loadout { get; init; }
public int Cost { get; init; }
public int Count { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ScientificResearch : JournalBase
{
public class ScientificResearch : JournalBase
{
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Category { get; init; }
public int Count { get; init; }
}
}
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Category { get; init; }
public int Count { get; init; }
}

View File

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class SearchAndRescue : JournalBase
{
public class SearchAndRescue : JournalBase
{
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Name_Localised { get; init; }
public int Count { get; init; }
public int Reward { get; init; }
}
}
public ulong MarketID { get; init; }
public string Name { get; init; }
public string Name_Localised { get; init; }
public int Count { get; init; }
public int Reward { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class SellDrones : JournalBase
{
public class SellDrones : JournalBase
{
public string Type { get; init; }
public int Count { get; init; }
public uint SellPrice { get; init; }
public int TotalSale { get; init; }
}
}
public string Type { get; init; }
public int Count { get; init; }
public uint SellPrice { get; init; }
public int TotalSale { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class SellShipOnRebuy : JournalBase
{
public class SellShipOnRebuy : JournalBase
{
public string ShipType { get; init; }
public string System { get; init; }
public ulong SellShipId { get; init; }
public long ShipPrice { get; init; }
}
}
public string ShipType { get; init; }
public string System { get; init; }
public ulong SellShipId { get; init; }
public long ShipPrice { get; init; }
}

View File

@ -1,10 +1,9 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class SetUserShipName : JournalBase
{
public class SetUserShipName : JournalBase
{
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string UserShipName { get; init; }
public string UserShipId { get; init; }
}
}
public string Ship { get; init; }
public ulong ShipID { get; init; }
public string UserShipName { get; init; }
public string UserShipId { get; init; }
}

View File

@ -1,12 +1,11 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class Shipyard : JournalBase
{
public class Shipyard : JournalBase
{
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
}
}
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
}

View File

@ -1,15 +1,14 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ShipyardBuy : JournalBase
{
public class ShipyardBuy : JournalBase
{
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public long ShipPrice { get; init; }
public string StoreOldShip { get; init; }
public ulong StoreShipID { get; init; }
public string SellOldShip { get; init; }
public ulong SellShipID { get; init; }
public long SellPrice { get; init; }
}
}
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public long ShipPrice { get; init; }
public string StoreOldShip { get; init; }
public ulong StoreShipID { get; init; }
public string SellOldShip { get; init; }
public ulong SellShipID { get; init; }
public long SellPrice { get; init; }
}

View File

@ -1,9 +1,8 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ShipyardNew : JournalBase
{
public class ShipyardNew : JournalBase
{
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong NewShipID { get; init; }
}
}
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong NewShipID { get; init; }
}

View File

@ -1,11 +1,10 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ShipyardSell : JournalBase
{
public class ShipyardSell : JournalBase
{
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public ulong SellShipID { get; init; }
public long ShipPrice { get; init; }
public string System { get; init; }
}
}
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public ulong SellShipID { get; init; }
public long ShipPrice { get; init; }
public string System { get; init; }
}

View File

@ -1,14 +1,13 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ShipyardSwap : JournalBase
{
public class ShipyardSwap : JournalBase
{
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public string StoreOldShip { get; init; }
public ulong StoreShipID { get; init; }
public string SellOldShip { get; init; }
public ulong SellShipID { get; init; }
}
}
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public string StoreOldShip { get; init; }
public ulong StoreShipID { get; init; }
public string SellOldShip { get; init; }
public ulong SellShipID { get; init; }
}

View File

@ -1,15 +1,14 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class ShipyardTransfer : JournalBase
{
public class ShipyardTransfer : JournalBase
{
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public string System { get; init; }
public ulong ShipMarketID { get; init; }
public float Distance { get; init; }
public int TransferPrice { get; init; }
public long TransferTime { get; init; }
}
}
public ulong MarketID { get; init; }
public string ShipType { get; init; }
public string ShipType_Localised { get; init; }
public ulong ShipID { get; init; }
public string System { get; init; }
public ulong ShipMarketID { get; init; }
public float Distance { get; init; }
public int TransferPrice { get; init; }
public long TransferTime { get; init; }
}

View File

@ -1,16 +1,15 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class StoredModules : JournalBase
{
public class StoredModules : JournalBase
{
public string StarSystem { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<StoredItem> Items { get; init; }
}
}
public string StarSystem { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<StoredItem> Items { get; init; }
}

View File

@ -1,17 +1,16 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class StoredShips : JournalBase
{
public class StoredShips : JournalBase
{
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
public ImmutableList<StoredShip> ShipsHere { get; init; }
public ImmutableList<StoredShip> ShipsRemote { get; init; }
}
}
public ulong MarketID { get; init; }
/// <summary>
/// Name of the station at which this event occurred.
/// </summary>
public string StationName { get; init; }
public string StarSystem { get; init; }
public ImmutableList<StoredShip> ShipsHere { get; init; }
public ImmutableList<StoredShip> ShipsRemote { get; init; }
}

View File

@ -1,14 +1,13 @@
using Observatory.Framework.Files.ParameterTypes;
using System.Collections.Immutable;
using System.Collections.Immutable;
using Observatory.Framework.Files.ParameterTypes;
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.StationServices;
public class TechnologyBroker : JournalBase
{
public class TechnologyBroker : JournalBase
{
public string BrokerType { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<ItemName> ItemsUnlocked { get; init; }
public ImmutableList<CommodityReward> Commodities { get; init; }
public ImmutableList<MaterialReward> Materials { get; init; }
}
}
public string BrokerType { get; init; }
public ulong MarketID { get; init; }
public ImmutableList<ItemName> ItemsUnlocked { get; init; }
public ImmutableList<CommodityReward> Commodities { get; init; }
public ImmutableList<MaterialReward> Materials { get; init; }
}