/// <summary> /// Gets the available timestamps. /// </summary> protected void GetTimestamps(ConnectedClient client, DataPacket request, out ResponsePacket response) { byte[] buffer = request.Buffer; int index = ArgumentIndex; TimeRange timeRange = GetTimeRange(buffer, ref index); int archiveBit = GetByte(buffer, ref index); List <DateTime> timestamps = archiveHolder.GetTimestamps(timeRange, archiveBit); buffer = client.OutBuf; response = new ResponsePacket(request, buffer); index = ArgumentIndex; CopyInt32(timestamps.Count, buffer, ref index); foreach (DateTime timestamp in timestamps) { CopyTime(timestamp, buffer, ref index); } response.BufferLength = index; }
/// <summary> /// Gets the available timestamps. /// </summary> public List <DateTime> GetTimestamps(TimeRange timeRange, int archiveBit) { return(archiveHolder.GetTimestamps(timeRange, archiveBit)); }
/// <summary> /// Gets the available timestamps. /// </summary> public List <DateTime> GetTimestamps(int archiveBit, TimeRange timeRange) { return(archiveHolder.GetTimestamps(archiveBit, timeRange)); }