mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Add NewsPost api response
This commit is contained in:
parent
7a4f7a6e9b
commit
c18ca19c9d
38
osu.Game/Online/API/Requests/Responses/NewsPost.cs
Normal file
38
osu.Game/Online/API/Requests/Responses/NewsPost.cs
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// 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;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace osu.Game.Online.API.Requests.Responses
|
||||||
|
{
|
||||||
|
public class NewsPost
|
||||||
|
{
|
||||||
|
[JsonProperty(@"id")]
|
||||||
|
public long Id { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"author")]
|
||||||
|
public string Author { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"edit_url")]
|
||||||
|
public string EditUrl { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"first_image")]
|
||||||
|
public string FirstImage { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"published_at")]
|
||||||
|
public DateTimeOffset PublishedAt { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"updated_at")]
|
||||||
|
public DateTimeOffset UpdatedAt { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"slug")]
|
||||||
|
public string Slug { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"title")]
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty(@"preview")]
|
||||||
|
public string Preview { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user