/// <summary> /// Gets a list of events for the specified file. /// </summary> /// <param name="file">The file to get the events for.</param> /// <returns>Collection of events for the file.</returns> public AtomEventCollection GetEvents(AtomFile file) { DateTime startDate = DateTime.Now.AddDays(-89); AtomEventCollection allEvents = new AtomEventCollection(); AtomEventCollection currentEvents = new AtomEventCollection(); return(m_TestDatabase.GetEvents(file.ProductId, file.File.Id)); }
/// <summary> /// Gets a list of events for the specified file. /// </summary> /// <param name="file">The file to get the events for.</param> /// <param name="startTime">Time of first event we are interested in.</param> /// <returns>Collection of events for the file.</returns> public AtomEventCollection GetEvents(AtomFile file, DateTime startTime) { AtomEventCollection allEvents = new AtomEventCollection(); AtomEventCollection currentEvents = new AtomEventCollection(); return(m_TestDatabase.GetEvents(file.ProductId, file.File.Id)); }
public AtomEventPageReader(IAtomFeed atomFeed, AtomFile file, DateTime startTime, DateTime endTime) { m_AtomFeed = atomFeed; m_AtomFile = file; m_NextPageLink = m_AtomFile.EventsLink; m_StartTime = startTime; m_EndTime = endTime; }
/// <summary> /// Gets a list of events in the specified PAGE for the specified file. /// </summary> /// <param name="eventPageUrl">Url of the page to get.</param> /// <param name="file">File for which the events are required.</param> /// <param name="totalPages">Total number of pages.</param> /// <param name="currentPage">Current page.</param> /// <returns>Collection of events for the file.</returns> public AtomEventCollection GetEventsPage(ref String eventPageUrl, AtomFile file, out int totalPages, out int currentPage) { AtomEventCollection events = new AtomEventCollection(); totalPages = 1; currentPage = 0; eventPageUrl = null; return(m_TestDatabase.GetEvents(file.ProductId, file.File.Id)); }