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.

MessageApplication.cs 1.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Discord.API
  8. {
  9. internal class MessageApplication : IPartialApplicationModel
  10. {
  11. /// <summary>
  12. /// Gets the snowflake ID of the application.
  13. /// </summary>
  14. [JsonProperty("id")]
  15. public ulong Id { get; set; }
  16. /// <summary>
  17. /// Gets the ID of the embed's image asset.
  18. /// </summary>
  19. [JsonProperty("cover_image")]
  20. public string CoverImage { get; set; }
  21. /// <summary>
  22. /// Gets the application's description.
  23. /// </summary>
  24. [JsonProperty("description")]
  25. public string Description { get; set; }
  26. /// <summary>
  27. /// Gets the ID of the application's icon.
  28. /// </summary>
  29. [JsonProperty("icon")]
  30. public string Icon { get; set; }
  31. /// <summary>
  32. /// Gets the name of the application.
  33. /// </summary>
  34. [JsonProperty("name")]
  35. public string Name { get; set; }
  36. string IPartialApplicationModel.CoverImage { get => CoverImage; set => throw new NotSupportedException(); }
  37. string IPartialApplicationModel.Icon { get => Icon; set => throw new NotSupportedException(); }
  38. string IPartialApplicationModel.Name { get => Name; set => throw new NotSupportedException(); }
  39. ulong IEntityModel<ulong>.Id { get => Id; set => throw new NotSupportedException(); }
  40. }
  41. }