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))); } }
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)); } }