-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from scooper91/playlist-tags-order
Add ~/playlists/tags endpoint and types
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters