Skip to content

Commit

Permalink
Merge branch 'v2-dev' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hevin committed Sep 18, 2017
2 parents abcbf19 + 7166568 commit bf596a1
Show file tree
Hide file tree
Showing 7 changed files with 836 additions and 565 deletions.
8 changes: 4 additions & 4 deletions Example/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static void ExecutePushExample()
}
}
};
var response = client.SendPushAsync(pushPayload).Result;
var response = client.SendPush(pushPayload);
Console.WriteLine(response.Content);
}

Expand All @@ -66,13 +66,13 @@ private static void ExecuteDeviceEample()
{ "remove", new List<string>() { "tag3", "tag4" } }
}
};
var response = client.Device.UpdateDeviceInfoAsync(registrationId, devicePayload).Result;
var response = client.Device.UpdateDeviceInfo(registrationId, devicePayload);
Console.WriteLine(response.Content);
}

private static void ExecuteReportExample()
{
var response = client.Report.GetMessageReportAsync(new List<string> { "1251231231" }).Result;
var response = client.Report.GetMessageReport(new List<string> { "1251231231" });
Console.WriteLine(response.Content);
}

Expand All @@ -98,7 +98,7 @@ private static void ExecuteScheduleExample()
"wed", "fri"
}
};
var response = client.Schedule.CreatePeriodicalScheduleTaskAsync("task1", pushPayload, trigger).Result;
var response = client.Schedule.CreatePeriodicalScheduleTask("task1", pushPayload, trigger);
Console.WriteLine(response.Content);
}
}
Expand Down
Binary file modified Jiguang.JPush.dll
Binary file not shown.
Loading

0 comments on commit bf596a1

Please sign in to comment.