Skip to content

Commit

Permalink
changed ToString() overrides so that timestamp comes first
Browse files Browse the repository at this point in the history
  • Loading branch information
vslee committed Jan 14, 2021
1 parent d9d2429 commit 1dd5d35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IEXSharp/Model/CoreData/Crypto/Response/EventCrypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class EventCrypto
public string side { get; set; }

public override string ToString() =>
$"{symbol},{eventType},{timestamp},{price}";
$"{timestamp}:{symbol},{eventType},{price}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class QuoteCryptoResponse
public decimal? previousClose { get; set; }

public override string ToString() =>
$"{symbol},{latestUpdate},{latestPrice},{latestVolume}";
$"{latestUpdate}:{symbol},{latestPrice},{latestVolume}";
}
}
2 changes: 1 addition & 1 deletion IEXSharp/Model/Shared/Response/QuoteSSE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ public class QuoteSSE
public long? lastTradeTime { get; set; }

public override string ToString() =>
$"{symbol},{latestTime},{latestPrice},{latestVolume}";
$"{latestTime}:{symbol},{latestPrice},{latestVolume}";
}
}

0 comments on commit 1dd5d35

Please sign in to comment.