You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IEntity.cs 606 B

123456789101112131415161718192021
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace Discord
  4. {
  5. public interface IEntity<TId> : IEntity
  6. {
  7. /// <summary> Gets the unique identifier for this object. </summary>
  8. TId Id { get; }
  9. }
  10. public interface IEntity
  11. {
  12. /// <summary> Gets the DiscordClient that manages this object. </summary>
  13. DiscordClient Discord { get; }
  14. /// <summary> Gets the state of this object. </summary>
  15. EntityState State { get; }
  16. /// <summary> Downloads the latest values and updates this object. </summary>
  17. Task Update();
  18. }
  19. }