public IEnumerable <GetFeedResponse> GetFeed(string deviceToken, ApiDateTime from, ApiDateTime to)
 {
     using (var pushClient = new PushServiceClient())
     {
         return(pushClient
                .GetFeed(CoreContext.TenantManager.GetCurrentTenant().TenantId,
                         SecurityContext.CurrentAccount.ID.ToString(),
                         deviceToken,
                         from ?? DateTime.MinValue,
                         to ?? DateTime.MaxValue)
                .Select(notification => new GetFeedResponse(notification)));
     }
 }
Beispiel #2
0
 public IEnumerable<GetFeedResponse> GetFeed(string deviceToken, ApiDateTime from, ApiDateTime to)
 {
     using (var pushClient = new PushServiceClient())
     {
         return pushClient
             .GetFeed(CoreContext.TenantManager.GetCurrentTenant().TenantId,
                      SecurityContext.CurrentAccount.ID.ToString(),
                      deviceToken,
                      from ?? DateTime.MinValue,
                      to ?? DateTime.MaxValue)
             .Select(notification => new GetFeedResponse(notification));
     }
 }