Update API responses for chat.

This commit is contained in:
Dean Herbert
2017-04-19 17:39:57 +09:00
parent 3eca32a380
commit 325af333b9
2 changed files with 17 additions and 5 deletions

View File

@ -2,6 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.ComponentModel;
using Newtonsoft.Json;
using osu.Game.Users;
@ -16,8 +17,11 @@ namespace osu.Game.Online.Chat
[JsonProperty(@"user_id")]
public int UserId;
[JsonProperty(@"channel_id")]
public int ChannelId;
[JsonProperty(@"target_type")]
public TargetType TargetType;
[JsonProperty(@"target_id")]
public int TargetId;
[JsonProperty(@"timestamp")]
public DateTimeOffset Timestamp;
@ -33,4 +37,12 @@ namespace osu.Game.Online.Chat
{
}
}
public enum TargetType
{
[Description(@"channel")]
Channel,
[Description(@"user")]
User
}
}