Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
ref - Cleaned up some code
Browse files Browse the repository at this point in the history
---

Type: ref
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 29, 2023
1 parent 37e0f52 commit f9628f3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion ShoutStats.Core/ShoutcastServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class ShoutcastServer
private int maxListeners;
private int uniqueListeners;
private int averageTime;
private List<StreamInfo> streams = new List<StreamInfo>();
private readonly List<StreamInfo> streams = new List<StreamInfo>();
internal JToken streamToken;
internal HtmlDocument streamHtmlToken = new HtmlDocument();
internal HttpClient client = new HttpClient();
Expand Down
46 changes: 23 additions & 23 deletions ShoutStats.Core/StreamInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@ namespace ShoutStats.Core
/// </summary>
public class StreamInfo
{
private int currentListeners;
private int peakListeners;
private int maxListeners;
private int uniqueListeners;
private int averageTime;
private int streamId;
private string streamGenre;
private string streamGenre2;
private string streamGenre3;
private string streamGenre4;
private string streamGenre5;
private string streamHomepage;
private string streamTitle;
private string songTitle;
private long streamHits;
private int streamStatus;
private int backupStatus;
private bool streamListed;
private string streamPath;
private long streamUptime;
private int bitRate;
private int sampleRate;
private string mimeInfo;
private readonly int currentListeners;
private readonly int peakListeners;
private readonly int maxListeners;
private readonly int uniqueListeners;
private readonly int averageTime;
private readonly int streamId;
private readonly string streamGenre;
private readonly string streamGenre2;
private readonly string streamGenre3;
private readonly string streamGenre4;
private readonly string streamGenre5;
private readonly string streamHomepage;
private readonly string streamTitle;
private readonly string songTitle;
private readonly long streamHits;
private readonly int streamStatus;
private readonly int backupStatus;
private readonly bool streamListed;
private readonly string streamPath;
private readonly long streamUptime;
private readonly int bitRate;
private readonly int sampleRate;
private readonly string mimeInfo;

/// <summary>
/// Stream ID starting from number one (1)
Expand Down
2 changes: 1 addition & 1 deletion ShoutStats.UI/DialogBoxWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public DialogBoxWindow()

public class DialogInfo
{
private Window view;
private readonly Window view;
public void Close()
{
view.Close();
Expand Down
2 changes: 1 addition & 1 deletion ShoutStats.UI/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public MainWindow()

public class StatsData
{
private Window view;
private readonly Window view;
private List<StreamInfo> streams;
private ShoutcastServer shout;
private string selectedStream;
Expand Down

0 comments on commit f9628f3

Please sign in to comment.