Guest User

Untitled

a guest
May 22nd, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. using System;
  2.  
  3. namespace LibEQBeats {
  4. /// <summary>
  5. /// Minimum user class. Used here to avoid pointless circular references.
  6. /// </summary>
  7. public class MinUser {
  8. private int id;
  9. private string userName;
  10. }
  11.  
  12. /// <summary>
  13. /// Full user class. Gets all information possible about all tracks and
  14. /// playlists.
  15. /// </summary>
  16. public class User : MinUser {
  17. private string link;
  18.  
  19. private MinTrack[] tracks;
  20. private Playlist[] playlists;
  21. }
  22.  
  23. /// <summary>
  24. /// Minimal track class to avoid pointless memory allocation
  25. /// </summary>
  26. public class MinTrack {
  27. private int id;
  28. private string title;
  29. }
  30.  
  31. /// <summary>
  32. /// Full track class. Holds the track information and links to the artist
  33. /// and other fun metadata.
  34. /// </summary>
  35. public class Track : MinTrack {
  36. private string description;
  37. private string art;
  38. private string link;
  39. private string[] downloads;
  40.  
  41. private MinUser user;
  42. }
  43.  
  44. /// <summary>
  45. /// Playlist class. Holds information about the tracks in it and a
  46. /// link to the DJ.
  47. /// </summary>
  48. public class Playlist {
  49. private int id;
  50. private string name;
  51. private string description;
  52. private string link;
  53.  
  54. private MinTrack[] tracks;
  55. private MinUser user;
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment