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.

Activity.cs 607 B

1234567891011121314151617181920212223
  1. #pragma warning disable CS1591
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Serialization;
  4. using System.Runtime.Serialization;
  5. namespace Discord.API
  6. {
  7. internal class Activity
  8. {
  9. [JsonProperty("name")]
  10. public string Name { get; set; }
  11. [JsonProperty("url")]
  12. public Optional<string> StreamUrl { get; set; }
  13. [JsonProperty("type")]
  14. public Optional<ActivityType?> Type { get; set; }
  15. [OnError]
  16. internal void OnError(StreamingContext context, ErrorContext errorContext)
  17. {
  18. errorContext.Handled = true;
  19. }
  20. }
  21. }