mirror of
https://github.com/ppy/osu.git
synced 2024-11-19 03:52:55 +08:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
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 System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
public class APINotification
|
|
{
|
|
[JsonProperty(@"id")]
|
|
public long Id { get; set; }
|
|
|
|
[JsonProperty(@"name")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
[JsonProperty(@"created_at")]
|
|
public DateTimeOffset? CreatedAt { get; set; }
|
|
|
|
[JsonProperty(@"object_type")]
|
|
public string ObjectType { get; set; } = null!;
|
|
|
|
[JsonProperty(@"object_id")]
|
|
public string ObjectId { get; set; } = null!;
|
|
|
|
[JsonProperty(@"source_user_id")]
|
|
public long? SourceUserId { get; set; }
|
|
|
|
[JsonProperty(@"is_read")]
|
|
public bool IsRead { get; set; }
|
|
|
|
[JsonProperty(@"details")]
|
|
public Dictionary<string, string>? Details { get; set; }
|
|
}
|
|
}
|