2021-07-09 11:03:30 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2021-08-25 16:36:57 +02:00
|
|
|
|
using EDJournal;
|
2021-07-09 11:03:30 +02:00
|
|
|
|
|
2021-11-10 21:24:39 +01:00
|
|
|
|
namespace EliteBGS.BGS {
|
2021-08-04 17:50:46 +02:00
|
|
|
|
public class LogEntry : IComparable<LogEntry> {
|
2021-07-09 11:03:30 +02:00
|
|
|
|
private List<Entry> entries = new List<Entry>();
|
|
|
|
|
|
2022-01-12 17:29:58 +01:00
|
|
|
|
public bool IsExpanded { get; set; }
|
|
|
|
|
|
2021-10-07 09:02:34 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Controlling faction of the station this entry was made/turned into.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ControllingFaction { get; set; } = "";
|
|
|
|
|
|
2021-07-09 11:03:30 +02:00
|
|
|
|
public List<Entry> Entries => entries;
|
|
|
|
|
public string Station { get; set; }
|
|
|
|
|
public string System { get; set; }
|
2022-01-27 23:21:34 +01:00
|
|
|
|
public ulong SystemAddress { get; set; }
|
2021-07-09 11:03:30 +02:00
|
|
|
|
public string Faction { get; set; }
|
2021-09-30 13:28:52 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this entry was manually added. Manually added entries are not deleted
|
|
|
|
|
/// when a new scan is made. Instead they are preserved.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool ManuallyAdded { get; set; }
|
2021-07-09 11:03:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this entry only benefits the controlling faction or not, default: no
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual bool OnlyControllingFaction {
|
|
|
|
|
get { return false; }
|
|
|
|
|
}
|
2021-08-04 17:50:46 +02:00
|
|
|
|
|
|
|
|
|
public virtual int CompareTo(LogEntry other) {
|
|
|
|
|
throw new NotImplementedException("not implemented");
|
|
|
|
|
}
|
2022-01-09 11:13:01 +01:00
|
|
|
|
|
2022-01-21 20:03:17 +01:00
|
|
|
|
public string Name => ToString();
|
2021-07-09 11:03:30 +02:00
|
|
|
|
}
|
|
|
|
|
}
|