Skip to content

1.0.9版本中Options参数还是会自动补上 #20

@chen110xi

Description

@chen110xi

抓包如下:

{
  "name": "task1",
  "enabled": true,
  "push": {
    "platform": "all",
    "audience": "all",
    "notification": {
      "alert": "Hello JPush AtTime"
    },
    "message": {
      "msg_content": "message content AtTime",
      "title": "message title AtTime",
      "content_type": "text",
      "extras": {}
    },
    "options": {
      "sendno": 0,
      "time_to_live": 0,
      "override_msg_id": 0,
      "apns_production": false,
      "big_push_duration": 0
    }
  },
  "trigger": {
    "single": {
      "time": "2017-10-20 14:22:26"
    }
  }
}

我的代码

PushPayload pushPayload = new PushPayload();
pushPayload.Platform = "all";
pushPayload.Notification = new Notification() 
{
    Alert = "Hello JPush AtTime"
};
pushPayload.Message = new Message()
{
   Title = "message title AtTime",
   Content = "message content AtTime",
   ContentType = "text",
   Extras = new Dictionary<string, string>()
};
//pushPayload.Options = new Options() { };

var response = client.Schedule.CreateSingleScheduleTask("task1", pushPayload, DateTime.Now.AddSeconds(5).ToString("yyyy-MM-dd HH:mm:ss"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions