@@ -16,6 +16,12 @@ public class Image
1616 [ JsonProperty ( "height" ) ]
1717 public int Height { get ; set ; }
1818 }
19+ public class ErrorResponse
20+ {
21+ [ JsonProperty ( "error" ) ]
22+ public Error Error { get ; set ; }
23+ }
24+
1925 public class Error
2026 {
2127 [ JsonProperty ( "status" ) ]
@@ -46,13 +52,31 @@ public class PlaylistTrack
4652 [ JsonProperty ( "track" ) ]
4753 public FullTrack Track { get ; set ; }
4854 }
49- internal class CreatePlaylistArgs
55+ public class CreatePlaylistArgs
5056 {
5157 [ JsonProperty ( "name" ) ]
5258 public String Name { get ; set ; }
5359 [ JsonProperty ( "public" ) ]
5460 public Boolean Public { get ; set ; }
5561 }
62+ public class DeleteTrackArg
63+ {
64+ [ JsonProperty ( "uri" ) ]
65+ public String Uri { get ; set ; }
66+ [ JsonProperty ( "positions" ) ]
67+ public List < int > Positions { get ; set ; }
68+
69+ public DeleteTrackArg ( String uri , params int [ ] positions )
70+ {
71+ this . Positions = positions . ToList ( ) ;
72+ this . Uri = uri ;
73+ }
74+ public bool ShouldSerializePositions ( )
75+ {
76+ // don't serialize the Manager property if an employee is their own manager
77+ return ( Positions . Count > 0 ) ;
78+ }
79+ }
5680 public class SeveralTracks
5781 {
5882 [ JsonProperty ( "tracks" ) ]
@@ -68,4 +92,16 @@ public class SeveralAlbums
6892 [ JsonProperty ( "albums" ) ]
6993 public List < FullAlbum > Albums { get ; set ; }
7094 }
95+ public class Copyright
96+ {
97+ [ JsonProperty ( "text" ) ]
98+ public String Text { get ; set ; }
99+ [ JsonProperty ( "type" ) ]
100+ public String Type { get ; set ; }
101+ }
102+
103+ public class CheckUserTracks : BasicModel
104+ {
105+ public List < Boolean > Checked { get ; set ; }
106+ }
71107}
0 commit comments