option.go 706 B

1234567891011121314151617181920212223242526272829
  1. package jpushclient
  2. type Option struct {
  3. SendNo int `json:"sendno,omitempty"`
  4. TimeLive int `json:"time_to_live,omitempty"`
  5. ApnsProduction bool `json:"apns_production"`
  6. OverrideMsgId int64 `json:"override_msg_id,omitempty"`
  7. BigPushDuration int `json:"big_push_duration,omitempty"`
  8. }
  9. func (this *Option) SetSendno(no int) {
  10. this.SendNo = no
  11. }
  12. func (this *Option) SetTimelive(timelive int) {
  13. this.TimeLive = timelive
  14. }
  15. func (this *Option) SetOverrideMsgId(id int64) {
  16. this.OverrideMsgId = id
  17. }
  18. func (this *Option) SetApns(apns bool) {
  19. this.ApnsProduction = apns
  20. }
  21. func (this *Option) SetBigPushDuration(bigPushDuration int) {
  22. this.BigPushDuration = bigPushDuration
  23. }