Обнновлено до .net10

This commit is contained in:
FrigaT
2026-04-10 15:05:32 +03:00
parent 11d0b0d72f
commit 8444fc5f8e
386 changed files with 6361 additions and 7164 deletions

View File

@@ -1,38 +1,33 @@
namespace YandexMusic.API.Models.Track
namespace YandexMusic.API.Models.Track;
public class YTrackContainer : IEquatable<YTrackContainer>
{
public class YTrackContainer : IEquatable<YTrackContainer>
public string Id { get; set; }
public string AlbumId { get; set; }
public decimal OriginalIndex { get; set; }
public decimal OriginalShuffleIndex { get; set; }
public bool Recent { get; set; }
public DateTime Timestamp { get; set; }
public YTrack Track { get; set; }
public bool Equals(YTrackContainer other)
{
public string Id { get; set; }
public string AlbumId { get; set; }
public decimal OriginalIndex { get; set; }
public decimal OriginalShuffleIndex { get; set; }
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Track.GetKey() == other.Track.GetKey();
}
public bool Recent { get; set; }
public DateTime Timestamp { get; set; }
public YTrack Track { get; set; }
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != GetType()) return false;
return Equals((YTrackContainer)obj);
}
#region IEquatable
public bool Equals(YTrackContainer other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return Track.GetKey() == other.Track.GetKey();
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != GetType()) return false;
return Equals((YTrackContainer)obj);
}
public override int GetHashCode()
{
return Track != null ? Track.GetHashCode() : 0;
}
#endregion IEquatable
public override int GetHashCode()
{
return Track != null ? Track.GetHashCode() : 0;
}
}