Пример #1
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="notification"></param>
 /// <returns></returns>
 public static Task <PlayerNotificationResource> Post(LeagueClientSession session,
                                                      PlayerNotificationResource notification) =>
 session.SendRequestAsync <PlayerNotificationResource>("POST",
                                                       "/player-notifications/v1/notifications", body: notification);
Пример #2
0
 /// <summary>
 /// </summary>
 /// <param name="session">The session object</param>
 /// <param name="config"></param>
 /// <returns></returns>
 public static Task <PlayerNotificationConfigResource> Put(LeagueClientSession session,
                                                           PlayerNotificationResource config) =>
 session.SendRequestAsync <PlayerNotificationConfigResource>("PUT", "/player-notifications/v1/config",
                                                             body: config);