예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatcherNotification" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="NotificationId">NotificationId.</param>
 public PatcherNotification(string Id = default(string), PatcherNotificationId NotificationId = default(PatcherNotificationId))
 {
     this.Id             = Id;
     this.NotificationId = NotificationId;
 }
예제 #2
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="notificationId"></param>
 /// <returns></returns>
 public static Task Post(LeagueClientSession session, PatcherNotificationId notificationId) =>
 session.SendRequestAsync("POST", "/plugin-name/endpoint",
                          new Dictionary <string, string> {
     { "notificationId", notificationId.ToString() }
 });