Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace LibEQBeats {
- /// <summary>
- /// Minimum user class. Used here to avoid pointless circular references.
- /// </summary>
- public class MinUser {
- private int id;
- private string userName;
- }
- /// <summary>
- /// Full user class. Gets all information possible about all tracks and
- /// playlists.
- /// </summary>
- public class User : MinUser {
- private string link;
- private MinTrack[] tracks;
- private Playlist[] playlists;
- }
- /// <summary>
- /// Minimal track class to avoid pointless memory allocation
- /// </summary>
- public class MinTrack {
- private int id;
- private string title;
- }
- /// <summary>
- /// Full track class. Holds the track information and links to the artist
- /// and other fun metadata.
- /// </summary>
- public class Track : MinTrack {
- private string description;
- private string art;
- private string link;
- private string[] downloads;
- private MinUser user;
- }
- /// <summary>
- /// Playlist class. Holds information about the tracks in it and a
- /// link to the DJ.
- /// </summary>
- public class Playlist {
- private int id;
- private string name;
- private string description;
- private string link;
- private MinTrack[] tracks;
- private MinUser user;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment