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 592 B

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