mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-06 07:46:23 +02:00
Upgrade project to .NET 8
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
namespace HyperbolicDownloaderApi.Networking;
|
||||
|
||||
public class NetworkSocket
|
||||
public class NetworkSocket(string ipAddress, int port, DateTime lastActive)
|
||||
{
|
||||
public string IPAddress { get; set; }
|
||||
public int Port { get; set; }
|
||||
public DateTime LastActive { get; set; }
|
||||
public string IPAddress { get; set; } = ipAddress;
|
||||
public int Port { get; set; } = port;
|
||||
public DateTime LastActive { get; set; } = lastActive;
|
||||
|
||||
public long DownloadSpeed { get; set; }
|
||||
|
||||
public NetworkSocket(string ipAddress, int port, DateTime lastActive)
|
||||
{
|
||||
IPAddress = ipAddress;
|
||||
Port = port;
|
||||
LastActive = lastActive;
|
||||
}
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
if (obj is not NetworkSocket networkSocket)
|
||||
|
||||
Reference in New Issue
Block a user