mirror of
https://github.com/osukey/osukey.git
synced 2025-04-30 19:27:25 +09:00
35 lines
952 B
C#
35 lines
952 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
public class APIUpdateStream : IEquatable<APIUpdateStream>
|
|
{
|
|
[JsonProperty("id")]
|
|
public long Id { get; set; }
|
|
|
|
[JsonProperty("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonProperty("is_featured")]
|
|
public bool IsFeatured { get; set; }
|
|
|
|
[JsonProperty("display_name")]
|
|
public string DisplayName { get; set; }
|
|
|
|
[JsonProperty("latest_build")]
|
|
public APIChangelogBuild LatestBuild { get; set; }
|
|
|
|
public bool Equals(APIUpdateStream other)
|
|
{
|
|
if (ReferenceEquals(null, other)) return false;
|
|
if (ReferenceEquals(this, other)) return true;
|
|
|
|
return Id == other.Id;
|
|
}
|
|
}
|
|
}
|