-
Notifications
You must be signed in to change notification settings - Fork 41
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 #48 from Joe-noh/support-player-api
Support Player API
- Loading branch information
Showing
11 changed files
with
774 additions
and
2 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
```elixir | ||
def deps do | ||
[{:spotify_ex, "~> 2.0.12"}] | ||
[{:spotify_ex, "~> 2.1.0"}] | ||
end | ||
``` | ||
|
||
|
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,8 @@ | ||
defmodule Spotify.Context do | ||
defstruct ~w[ | ||
uri | ||
href | ||
external_urls | ||
type | ||
]a | ||
end |
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,11 @@ | ||
defmodule Spotify.CurrentlyPlaying do | ||
defstruct ~w[ | ||
actions | ||
context | ||
currently_playing_type | ||
is_playing | ||
item | ||
progress_ms | ||
timestamp | ||
]a | ||
end |
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,11 @@ | ||
defmodule Spotify.Device do | ||
defstruct ~w[ | ||
id | ||
is_active | ||
is_private_session | ||
is_restricted | ||
name | ||
type | ||
volume_percent | ||
]a | ||
end |
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 @@ | ||
defmodule Spotify.Episode do | ||
defstruct ~w[ | ||
audio_preview_url | ||
description | ||
duration_ms | ||
explicit | ||
external_urls | ||
href | ||
id | ||
images | ||
is_externally_hosted | ||
is_playable | ||
language | ||
languages | ||
name | ||
release_date | ||
release_date_precision | ||
resume_point | ||
show | ||
type | ||
uri | ||
]a | ||
end |
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,7 @@ | ||
defmodule Spotify.History do | ||
defstruct ~w[ | ||
track | ||
played_at | ||
context | ||
]a | ||
end |
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,14 @@ | ||
defmodule Spotify.Playback do | ||
defstruct ~w[ | ||
actions | ||
context | ||
currently_playing_type | ||
device | ||
is_playing | ||
item | ||
progress_ms | ||
repeat_state | ||
shuffle_state | ||
timestamp | ||
]a | ||
end |
Oops, something went wrong.