CachedSongData.cs 715 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace SongCore.Data
  3. {
  4. [Serializable]
  5. public class SongHashData
  6. {
  7. public long directoryHash;
  8. public string songHash;
  9. [Newtonsoft.Json.JsonConstructor]
  10. public SongHashData(long directoryHash, string songHash)
  11. {
  12. this.directoryHash = directoryHash;
  13. this.songHash = songHash;
  14. }
  15. }
  16. [Serializable]
  17. public class AudioCacheData
  18. {
  19. public string id;
  20. public float duration;
  21. [Newtonsoft.Json.JsonConstructor]
  22. public AudioCacheData(string audioFileHash, float duration)
  23. {
  24. this.id = audioFileHash;
  25. this.duration = duration;
  26. }
  27. }
  28. }