Skip to content

Commit bf596a1

Browse files
author
Hevin
committed
Merge branch 'v2-dev' into v2
2 parents abcbf19 + 7166568 commit bf596a1

File tree

7 files changed

+836
-565
lines changed

7 files changed

+836
-565
lines changed

Example/Example.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static void ExecutePushExample()
4949
}
5050
}
5151
};
52-
var response = client.SendPushAsync(pushPayload).Result;
52+
var response = client.SendPush(pushPayload);
5353
Console.WriteLine(response.Content);
5454
}
5555

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

7373
private static void ExecuteReportExample()
7474
{
75-
var response = client.Report.GetMessageReportAsync(new List<string> { "1251231231" }).Result;
75+
var response = client.Report.GetMessageReport(new List<string> { "1251231231" });
7676
Console.WriteLine(response.Content);
7777
}
7878

@@ -98,7 +98,7 @@ private static void ExecuteScheduleExample()
9898
"wed", "fri"
9999
}
100100
};
101-
var response = client.Schedule.CreatePeriodicalScheduleTaskAsync("task1", pushPayload, trigger).Result;
101+
var response = client.Schedule.CreatePeriodicalScheduleTask("task1", pushPayload, trigger);
102102
Console.WriteLine(response.Content);
103103
}
104104
}

Jiguang.JPush.dll

5.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)