Skip to content

Commit 5dc283d

Browse files
committed
Reworked again ServerTime
1 parent d318240 commit 5dc283d

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

CAPI/EndPointBaseClass.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ namespace CAPI
2323

2424
public class CAPIEndPointBaseClass
2525
{
26-
public CAPIEndPointBaseClass(string profile, DateTime servertime)
26+
public CAPIEndPointBaseClass(string profile)
2727
{
2828
json = JToken.Parse(profile, JToken.ParseOptions.AllowTrailingCommas | JToken.ParseOptions.CheckEOL);
29-
ServerTimeUTC = servertime;
3029
}
3130

3231
public JToken Json { get { return json; } }
3332

34-
public DateTime ServerTimeUTC { get; set; }
35-
3633
public class Commodity
3734
{
3835
public string Name{get;set;}

CAPI/Fleetcarrier.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace CAPI
2323

2424
public class FleetCarrier : CAPIEndPointBaseClass
2525
{
26-
public FleetCarrier(string profile, DateTime servertime) : base(profile,servertime)
26+
public FleetCarrier(string profile) : base(profile)
2727
{
2828
}
2929

CAPI/Market.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace CAPI
2626

2727
public class Market : CAPIEndPointBaseClass
2828
{
29-
public Market(string profile, DateTime servertime) : base(profile,servertime)
29+
public Market(string profile) : base(profile)
3030
{
3131
}
3232

CAPI/Shipyard.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace CAPI
2525

2626
public class Shipyard : CAPIEndPointBaseClass
2727
{
28-
public Shipyard(string profile, DateTime servertime) : base(profile,servertime)
28+
public Shipyard(string profile) : base(profile)
2929
{
3030
}
3131

capidemo/CapiDemoForm.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private void buttonMarket_Click(object sender, EventArgs e)
203203

204204
richTextBox.AppendText("------------------------- MARKET" + Environment.NewLine);
205205

206-
Market ep = p != null ? new Market(p,servertime) : null;
206+
Market ep = p != null ? new Market(p) : null;
207207
//Market mk = new Market(File.ReadAllText(@"c:\code\logs\capi\market-default(1).json")); // debug
208208

209209
if (ep != null && ep.IsValid)
@@ -374,12 +374,12 @@ private void buttonFleetCarrier_Click(object sender, EventArgs e)
374374
string json = JToken.Parse(p, JToken.ParseOptions.AllowTrailingCommas | JToken.ParseOptions.CheckEOL).ToString(true);
375375
File.WriteAllText(rootpath + "\\fleetcarrierdata.json", json);
376376
System.Diagnostics.Debug.WriteLine("Fleet JSON" + json);
377-
ep = new FleetCarrier(p,servertime);
377+
ep = new FleetCarrier(p);
378378
}
379379
}
380380
else
381381
{
382-
ep = new FleetCarrier(File.ReadAllText(@"c:\code\fleetcarrier.json"),DateTime.UtcNow); // debug
382+
ep = new FleetCarrier(File.ReadAllText(@"c:\code\fleetcarrier.json")); // debug
383383
}
384384

385385
richTextBox.AppendText("------------------------- FLEET CARRIER" + Environment.NewLine);
@@ -684,7 +684,7 @@ private void buttonShipyard_Click(object sender, EventArgs e)
684684

685685
richTextBox.AppendText("------------------------- SHIPYARD" + Environment.NewLine);
686686

687-
Shipyard ep = p!=null ? new Shipyard(p,servertime) : null;
687+
Shipyard ep = p!=null ? new Shipyard(p) : null;
688688
if (ep!=null && ep.IsValid)
689689
{
690690
ReflectProperties(ep, " ");

0 commit comments

Comments
 (0)