Updated reference channel entities

This commit is contained in:
RogueException
2016-02-26 05:22:01 -04:00
parent d1cae981da
commit 0759f957d8
23 changed files with 298 additions and 162 deletions

23
ref/Entities/IEntity.cs Normal file
View File

@@ -0,0 +1,23 @@
using System;
using System.Threading.Tasks;
namespace Discord
{
public interface IEntity<TId> : IEntity
{
/// <summary> Gets the unique identifier for this object. </summary>
TId Id { get; }
}
public interface IEntity
{
/// <summary> Gets the DiscordClient that manages this object. </summary>
DiscordClient Client { get; }
/// <summary> Gets the state of this object. </summary>
ModelState State { get; }
/// <summary> Deletes this object. </summary>
Task Delete();
/// <summary> Downloads the latest values and updates this object. </summary>
Task Update();
}
}