mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Add new structures for receiving new medal data
This commit is contained in:
parent
4a314a8e31
commit
48bf9680e1
@ -0,0 +1,39 @@
|
|||||||
|
// 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;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.Notifications.WebSocket.Events
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Reference: https://github.com/ppy/osu-web/blob/master/app/Events/NewPrivateNotificationEvent.php
|
||||||
|
/// </summary>
|
||||||
|
public class NewPrivateNotificationEvent
|
||||||
|
{
|
||||||
|
[JsonProperty("id")]
|
||||||
|
public ulong ID { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("name")]
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("created_at")]
|
||||||
|
public DateTimeOffset CreatedAt { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("object_type")]
|
||||||
|
public string ObjectType { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("object_id")]
|
||||||
|
public ulong ObjectId { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("source_user_id")]
|
||||||
|
public uint SourceUserID { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("is_read")]
|
||||||
|
public bool IsRead { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("details")]
|
||||||
|
public JObject? Details { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
// 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 Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.Notifications.WebSocket.Events
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Reference: https://github.com/ppy/osu-web/blob/master/app/Jobs/Notifications/UserAchievementUnlock.php
|
||||||
|
/// </summary>
|
||||||
|
public class UserAchievementUnlock
|
||||||
|
{
|
||||||
|
[JsonProperty("achievement_id")]
|
||||||
|
public uint AchievementId { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("achievement_mode")]
|
||||||
|
public ushort? AchievementMode { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("cover_url")]
|
||||||
|
public string CoverUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("slug")]
|
||||||
|
public string Slug { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("title")]
|
||||||
|
public string Title { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("description")]
|
||||||
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonProperty("user_id")]
|
||||||
|
public uint UserId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user