nettoyages
This commit is contained in:
@ -14,7 +14,6 @@ using Microsoft.Data.Entity;
|
|||||||
using System;
|
using System;
|
||||||
using PayPal.PayPalAPIInterfaceService;
|
using PayPal.PayPalAPIInterfaceService;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using Yavsc.Helpers;
|
using Yavsc.Helpers;
|
||||||
using Yavsc.ViewModels.Calendar;
|
using Yavsc.ViewModels.Calendar;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
@ -12,6 +12,7 @@ using System.Net.Http;
|
|||||||
using Microsoft.AspNet.Identity;
|
using Microsoft.AspNet.Identity;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
using Yavsc.Models.Google.Messaging;
|
using Yavsc.Models.Google.Messaging;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Yavsc.Services
|
namespace Yavsc.Services
|
||||||
{
|
{
|
||||||
@ -30,14 +31,14 @@ namespace Yavsc.Services
|
|||||||
/// <c>bool somethingsent = (response.failure == 0 && response.success > 0)</c>
|
/// <c>bool somethingsent = (response.failure == 0 && response.success > 0)</c>
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public async Task<MessageWithPayloadResponse>
|
public async Task<MessageWithPayloadResponse>
|
||||||
NotifyAsync(GoogleAuthSettings googleSettings, string registrationId, YaEvent ev)
|
NotifyAsync(GoogleAuthSettings googleSettings, IEnumerable<string> registrationIds, YaEvent ev)
|
||||||
{
|
{
|
||||||
MessageWithPayloadResponse response;
|
MessageWithPayloadResponse response;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var web = new HttpClient())
|
using (var web = new HttpClient())
|
||||||
{
|
{
|
||||||
response = await web.NotifyEvent(googleSettings, registrationId, ev);
|
response = await web.NotifyEvent(googleSettings, registrationIds, ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (WebException ex)
|
catch (WebException ex)
|
||||||
|
@ -19,7 +19,6 @@ using Microsoft.AspNet.Diagnostics;
|
|||||||
using Microsoft.AspNet.FileProviders;
|
using Microsoft.AspNet.FileProviders;
|
||||||
using Microsoft.AspNet.Hosting;
|
using Microsoft.AspNet.Hosting;
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.AspNet.Http.Authentication;
|
|
||||||
using Microsoft.AspNet.Identity;
|
using Microsoft.AspNet.Identity;
|
||||||
using Microsoft.AspNet.Identity.EntityFramework;
|
using Microsoft.AspNet.Identity.EntityFramework;
|
||||||
using Microsoft.AspNet.Localization;
|
using Microsoft.AspNet.Localization;
|
||||||
|
Reference in New Issue
Block a user