diff options
Diffstat (limited to 'pandora/models/pandora.py')
-rw-r--r-- | pandora/models/pandora.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pandora/models/pandora.py b/pandora/models/pandora.py index cd1e588..e6a37ff 100644 --- a/pandora/models/pandora.py +++ b/pandora/models/pandora.py | |||
@@ -1,7 +1,7 @@ | |||
1 | from ..client import BaseAPIClient | 1 | from ..client import BaseAPIClient |
2 | from ..errors import ParameterMissing | 2 | from ..errors import ParameterMissing |
3 | from . import SyntheticField | 3 | from . import Field, DateField, SyntheticField |
4 | from . import Field, PandoraModel, PandoraListModel, PandoraDictListModel | 4 | from . import PandoraModel, PandoraListModel, PandoraDictListModel |
5 | 5 | ||
6 | 6 | ||
7 | class Station(PandoraModel): | 7 | class Station(PandoraModel): |
@@ -13,7 +13,7 @@ class Station(PandoraModel): | |||
13 | is_quickmix = Field("isQuickMix") | 13 | is_quickmix = Field("isQuickMix") |
14 | 14 | ||
15 | art_url = Field("artUrl") | 15 | art_url = Field("artUrl") |
16 | date_created = Field("dateCreated", formatter=PandoraModel.json_to_date) | 16 | date_created = DateField("dateCreated") |
17 | detail_url = Field("stationDetailUrl") | 17 | detail_url = Field("stationDetailUrl") |
18 | id = Field("stationId") | 18 | id = Field("stationId") |
19 | name = Field("stationName") | 19 | name = Field("stationName") |
@@ -231,7 +231,7 @@ class Bookmark(PandoraModel): | |||
231 | artist_name = Field("artistName") | 231 | artist_name = Field("artistName") |
232 | art_url = Field("artUrl") | 232 | art_url = Field("artUrl") |
233 | bookmark_token = Field("bookmarkToken") | 233 | bookmark_token = Field("bookmarkToken") |
234 | date_created = Field("dateCreated", formatter=PandoraModel.json_to_date) | 234 | date_created = DateField("dateCreated") |
235 | 235 | ||
236 | # song only | 236 | # song only |
237 | sample_url = Field("sampleUrl") | 237 | sample_url = Field("sampleUrl") |