PushTicketRequest.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Expo.Server.Models
  6. {
  7. [JsonObject(MemberSerialization.OptIn)]
  8. public class PushTicketRequest
  9. {
  10. [JsonProperty(PropertyName = "to")]
  11. public List<string> PushTo { get; set; }
  12. [JsonProperty(PropertyName = "data")]
  13. public object PushData { get; set; }
  14. [JsonProperty(PropertyName = "title")]
  15. public string PushTitle { get; set; }
  16. [JsonProperty(PropertyName = "body")]
  17. public string PushBody { get; set; }
  18. [JsonProperty(PropertyName = "ttl")]
  19. public int? PushTTL { get; set; }
  20. [JsonProperty(PropertyName = "expiration")]
  21. public int? PushExpiration { get; set; }
  22. [JsonProperty(PropertyName = "priority")] //'default' | 'normal' | 'high'
  23. public string PushPriority { get; set; }
  24. [JsonProperty(PropertyName = "subtitle")]
  25. public string PushSubTitle { get; set; }
  26. [JsonProperty(PropertyName = "sound")] //'default' | null
  27. public string PushSound { get; set; }
  28. [JsonProperty(PropertyName = "badge")]
  29. public int? PushBadgeCount { get; set; }
  30. [JsonProperty(PropertyName = "channelId")]
  31. public string PushChannelId { get; set; }
  32. }
  33. }