2016-08-31 18:49:34 +08:00
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace osu.Game.Online.Chat
|
|
|
|
{
|
|
|
|
public class Channel
|
|
|
|
{
|
|
|
|
[JsonProperty(@"name")]
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
[JsonProperty(@"description")]
|
|
|
|
public string Topic;
|
|
|
|
|
|
|
|
[JsonProperty(@"type")]
|
|
|
|
public string Type;
|
|
|
|
|
|
|
|
[JsonProperty(@"channel_id")]
|
|
|
|
public int Id;
|
|
|
|
|
|
|
|
public List<Message> Messages = new List<Message>();
|
|
|
|
|
2016-09-28 14:33:02 +08:00
|
|
|
//internal bool Joined;
|
2016-08-31 18:49:34 +08:00
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
public Channel()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|