1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 01:10:06 +08:00
osu-lazer/osu.Game/Online/API/Requests/Responses/APINotification.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
C#
Raw Normal View History

2022-10-27 13:55:24 +08:00
// 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;
2022-11-02 16:53:19 +08:00
using Newtonsoft.Json.Linq;
2022-10-27 13:55:24 +08:00
namespace osu.Game.Online.API.Requests.Responses
{
[JsonObject(MemberSerialization.OptIn)]
public class APINotification
{
2022-10-28 15:32:17 +08:00
[JsonProperty(@"id")]
2022-10-27 13:55:24 +08:00
public long Id { get; set; }
2022-10-28 15:32:17 +08:00
[JsonProperty(@"name")]
2022-10-27 13:55:24 +08:00
public string Name { get; set; } = null!;
2022-10-28 15:32:17 +08:00
[JsonProperty(@"created_at")]
2022-10-27 13:55:24 +08:00
public DateTimeOffset? CreatedAt { get; set; }
2022-10-28 15:32:17 +08:00
[JsonProperty(@"object_type")]
2022-10-27 13:55:24 +08:00
public string ObjectType { get; set; } = null!;
2022-10-28 15:32:17 +08:00
[JsonProperty(@"object_id")]
2022-10-27 13:55:24 +08:00
public string ObjectId { get; set; } = null!;
2022-10-28 15:32:17 +08:00
[JsonProperty(@"source_user_id")]
2022-10-27 13:55:24 +08:00
public long? SourceUserId { get; set; }
2022-10-28 15:32:17 +08:00
[JsonProperty(@"is_read")]
2022-10-27 13:55:24 +08:00
public bool IsRead { get; set; }
2022-10-28 15:32:17 +08:00
[JsonProperty(@"details")]
2022-11-02 16:53:19 +08:00
public JObject? Details { get; set; }
2022-10-27 13:55:24 +08:00
}
}