Skip to content

Commit

Permalink
Merge pull request #15 from scooper91/playlist-tags-order
Browse files Browse the repository at this point in the history
Add ~/playlists/tags endpoint and types
  • Loading branch information
gregsochanik authored Dec 12, 2016
2 parents b658efe + a86a6aa commit 5ccdf48
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Schema/Playlists/Response/Endpoints/PlaylistTag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Xml.Serialization;

namespace SevenDigital.Api.Schema.Playlists.Response.Endpoints
{
public class PlaylistTag
{
[XmlElement("name")]
public string Name { get; set; }
}
}
23 changes: 23 additions & 0 deletions src/Schema/Playlists/Response/Endpoints/TagsUpdate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using SevenDigital.Api.Schema.Attributes;
using SevenDigital.Api.Schema.OAuth;

namespace SevenDigital.Api.Schema.Playlists.Response.Endpoints
{
[HttpPost]
[Serializable]
[OAuthSigned]
[ApiEndpoint("playlists/tags")]
[XmlRoot("tagsUpdate")]
public class TagsUpdate
{
[XmlElement("shopId")]
public int ShopId { get; set; }

[XmlArray("tags")]
[XmlArrayItem("tag")]
public List<PlaylistTag> Tags { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/Schema/Schema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
<Compile Include="Playlists\Requests\PlaylistTracksRequest.cs" />
<Compile Include="Playlists\Response\Endpoints\Playlist.cs" />
<Compile Include="Playlists\Response\Endpoints\PlaylistDetails.cs" />
<Compile Include="Playlists\Response\Endpoints\PlaylistTag.cs" />
<Compile Include="Playlists\Response\Endpoints\TagsUpdate.cs" />
<Compile Include="Playlists\Response\Endpoints\PlaylistTrack.cs" />
<Compile Include="Playlists\Response\Endpoints\PlaylistTrackList.cs" />
<Compile Include="Playlists\Response\Endpoints\PublicPlaylists.cs" />
Expand Down

0 comments on commit 5ccdf48

Please sign in to comment.