INWReader.cs 980 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Networkreader
  5. {
  6. public interface INWReader
  7. {
  8. /// <summary>
  9. /// Starts reading from the tcp stream and dumping the result to a file.
  10. /// </summary>
  11. /// <returns>
  12. /// Returns the path of the file that will contain the stream data.
  13. /// </returns>
  14. string StartNWRead();
  15. /// <summary>
  16. /// Stops the tcp stream.
  17. /// </summary>
  18. void StopReading();
  19. /// <summary>
  20. /// Returns the Timestamp of the last saved Element.
  21. /// </summary>
  22. /// <returns>
  23. /// The timestamp of the last entry.
  24. /// </returns>
  25. double GetNewestTimestamp();
  26. /// <summary>
  27. /// Returns the Timestamp of the first saved Element.
  28. /// </summary>
  29. /// <returns>
  30. /// The timestamp of the first entry.
  31. /// </returns>
  32. double GetOldestTimestamp();
  33. }
  34. }