Spotify.NET/SpotifyAPI.Web.Tests/Http/ExampleResponses.cs

16 lines
7.1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpotifyAPI.Web.Tests
{
public static class ExampleResponses
{
public static readonly string CurrentlyPlayingContext = "{\n \"device\" : {\n \"id\" : \"~~~~~~~~~~~~~~~~~~~~\",\n \"is_active\" : true,\n \"is_private_session\" : false,\n \"is_restricted\" : false,\n \"name\" : \"aj\",\n \"type\" : \"Smartphone\",\n \"volume_percent\" : 100\n },\n \"shuffle_state\" : false,\n \"repeat_state\" : \"off\",\n \"timestamp\" : 1640197100877,\n \"context\" : {\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/playlist/4UKLNvyjaoifjseoifjVj0ff\"\n },\n \"href\" : \"https://api.spotify.com/v1/playlists/4UKaegijsogkUyn74Vj0ff\",\n \"type\" : \"playlist\",\n \"uri\" : \"spotify:playlist:wioajdiawfawfaowidjawio\"\n },\n \"progress_ms\" : 82163,\n \"item\" : {\n \"album\" : {\n \"album_type\" : \"album\",\n \"artists\" : [ {\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/artist/2nSY0EIzz3eM6Y6Pc7VXkO\"\n },\n \"href\" : \"https://api.spotify.com/v1/artists/2nSY0awfawfeM6Y6Pc7VXkO\",\n \"id\" : \"2nSaefaefefY6Pc7VXkO\",\n \"name\" : \"Ill Considered\",\n \"type\" : \"artist\",\n \"uri\" : \"spotify:artist:2nSY0EIzz3eM6Y6Pc7VXkO\"\n } ],\n \"available_markets\" : [ \"AD\", \"AE\", \"AG\", \"AL\", \"AM\", \"AO\", \"AR\", \"AT\", \"AU\", \"AZ\", \"BA\", \"BB\", \"BD\", \"BE\", \"BF\", \"BG\", \"BH\", \"BI\", \"BJ\", \"BN\", \"BO\", \"BR\", \"BS\", \"BT\", \"BW\", \"BY\", \"BZ\", \"CA\", \"CD\", \"CG\", \"CH\", \"CI\", \"CL\", \"CM\", \"CO\", \"CR\", \"CV\", \"CW\", \"CY\", \"CZ\", \"DE\", \"DJ\", \"DK\", \"DM\", \"DO\", \"DZ\", \"EC\", \"EE\", \"EG\", \"ES\", \"FI\", \"FJ\", \"FM\", \"FR\", \"GA\", \"GB\", \"GD\", \"GE\", \"GH\", \"GM\", \"GN\", \"GQ\", \"GR\", \"GT\", \"GW\", \"GY\", \"HK\", \"HN\", \"HR\", \"HT\", \"HU\", \"ID\", \"IE\", \"IL\", \"IN\", \"IQ\", \"IS\", \"IT\", \"JM\", \"JO\", \"JP\", \"KE\", \"KG\", \"KH\", \"KI\", \"KM\", \"KN\", \"KR\", \"KW\", \"KZ\", \"LA\", \"LB\", \"LC\", \"LI\", \"LK\", \"LR\", \"LS\", \"LT\", \"LU\", \"LV\", \"LY\", \"MA\", \"MC\", \"MD\", \"ME\", \"MG\", \"MH\", \"MK\", \"ML\", \"MN\", \"MO\", \"MR\", \"MT\", \"MU\", \"MV\", \"MW\", \"MX\", \"MY\", \"MZ\", \"NA\", \"NE\", \"NG\", \"NI\", \"NL\", \"NO\", \"NP\", \"NR\", \"NZ\", \"OM\", \"PA\", \"PE\", \"PG\", \"PH\", \"PK\", \"PL\", \"PS\", \"PT\", \"PW\", \"PY\", \"QA\", \"RO\", \"RS\", \"RU\", \"RW\", \"SA\", \"SB\", \"SC\", \"SE\", \"SG\", \"SI\", \"SK\", \"SL\", \"SM\", \"SN\", \"SR\", \"ST\", \"SV\", \"SZ\", \"TD\", \"TG\", \"TH\", \"TJ\", \"TL\", \"TN\", \"TO\", \"TR\", \"TT\", \"TV\", \"TW\", \"TZ\", \"UA\", \"UG\", \"US\", \"UY\", \"UZ\", \"VC\", \"VE\", \"VN\", \"VU\", \"WS\", \"XK\", \"ZA\", \"ZM\", \"ZW\" ],\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/album/3i62521pVAxy4LG7dQOSYQ\"\n },\n \"href\" : \"https://api.spotify.com/v1/albums/3i62521pVAxy4LG7dQOSYQ\",\n \"id\" : \"3i62521pVAxy4LG7dQOSYQ\",\n \"images\" : [ {\n \"height\" : 640,\n \"url\" : \"https://i.scdn.co/image/ab67616d0000b27374680cadadf4e40653791fb1\",\n \"width\" : 640\n }, {\n \"height\" : 300,\n \"url\" : \"https://i.scdn.co/image/ab67616d00001e0274680cadadf4e40653791fb1\",\n \"width\" : 300\n }, {\n \"height\" : 64,\n \"url\" : \"https://i.scdn.co/image/ab67616d0000485174680cadadf4e40653791fb1\",\n \"width\" : 64\n } ],\n \"name\" : \"Liminal Space\",\n \"release_date\" : \"2021-11-12\",\n \"release_date_precision\" : \"day\",\n \"total_tracks\" : 10,\n \"type\" : \"album\",\n \"uri\" : \"spotify:album:3i62521pVAxy4LG7dQOSYQ\"\n },\n \"artists\" : [ {\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/artist/2nSY0EIzz3eM6Y6Pc7VXkO\"\n },\n \"href\" : \"https://api.spotify.com/v1/artists/2nSY0EIzz3eM6Y6Pc7VXkO\",\n \"id\" : \"2nSY0EIzz3eM6Y6Pc7VXkO\",\n \"name\" : \"Ill Considered\",\n \"type\" : \"artist\",\n \"uri\" : \"spotify:artist:2
public static readonly string PublicUser = "{\n \"display_name\" : \"username\",\n \"external_urls\" : {\n \"spotify\" : \"https://open.spotify.com/user/username\"\n },\n \"followers\" : {\n \"href\" : null,\n \"total\" : 42\n },\n \"href\" : \"https://api.spotify.com/v1/users/username\",\n \"id\" : \"username\",\n \"images\" : [ {\n \"height\" : null,\n \"url\" : \"https://i.scdn.co/image/aawdagsghdthftjssefsfsdf14c4\",\n \"width\" : null\n } ],\n \"type\" : \"user\",\n \"uri\" : \"spotify:user:username\"\n}";
}
}