Обнновлено до .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,40 +1,35 @@
namespace YandexMusic.API.Models.Track
namespace YandexMusic.API.Models.Track;
public class YTrackAlbumPair : IEquatable<YTrackAlbumPair>
{
public class YTrackAlbumPair : IEquatable<YTrackAlbumPair>
public string AlbumId { get; set; }
public string Id { get; set; }
public override string ToString()
{
public string AlbumId { get; set; }
public string Id { get; set; }
return string.Join(":", new[] { Id, AlbumId }.Where(s => !string.IsNullOrEmpty(s)));
}
public override string ToString()
public bool Equals(YTrackAlbumPair other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return string.Equals(Id, other.Id) && string.Equals(AlbumId, other.AlbumId);
}
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((YTrackAlbumPair)obj);
}
public override int GetHashCode()
{
unchecked
{
return string.Join(":", new[] { Id, AlbumId }.Where(s => !string.IsNullOrEmpty(s)));
return ((Id != null ? Id.GetHashCode() : 0) * 397) ^ (AlbumId != null ? AlbumId.GetHashCode() : 0);
}
#region IEquatable
public bool Equals(YTrackAlbumPair other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return string.Equals(Id, other.Id) && string.Equals(AlbumId, other.AlbumId);
}
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((YTrackAlbumPair)obj);
}
public override int GetHashCode()
{
unchecked
{
return ((Id != null ? Id.GetHashCode() : 0) * 397) ^ (AlbumId != null ? AlbumId.GetHashCode() : 0);
}
}
#endregion IEquatable
}
}