Commit Graph

53 Commits

Author SHA1 Message Date
Rikki Tooley
fc42d1b34c GetTrackShoutsCommandTests 2013-09-09 19:55:27 +01:00
Rikki Tooley
85d8edad3b Moved authentication into GetMobileSessionCommand. Resolves #6 2013-09-02 16:14:35 +01:00
Rikki Tooley
b249ea7fa8 Added LastFm.CatchRequestExceptions to catch HttpRequestExceptions
Using this mean clients don't have to wrap every call in try/catches http://stackoverflow.com/questions/18562613/async-method-returning-taskt-with-generic-constraint-in-c-sharp?noredirect=1#comment27311729_18562613
2013-09-01 23:57:54 +01:00
Rikki Tooley
db00dfd8ed Changed command structure to reduce repetition 2013-09-01 20:52:44 +01:00
Rikki Tooley
73e1831986 user.shout, artist.shout.
the api doesn't have album.shout and track.shout but i made commands for
them anyway, not put them in AlbumApi or TrackApi though.
2013-07-30 00:36:55 +01:00
Rikki Tooley
2235ba0753 album.getinfo, album.getshouts, artist.getshouts, user.getinfo, user.getshouts 2013-07-29 03:47:59 +01:00
Rikki Tooley
718710d200 PostCommands don't need encoded parameters 2013-07-27 16:18:33 +01:00
Rikki Tooley
b610e5488d Another fix for #2 2013-07-25 17:48:48 +01:00
Rikki Tooley
59f2654f11 Fixes #3: Escaping parameters on existing commands
Simple as Uri.EscapeDataString()
2013-07-25 00:07:37 +01:00
Rikki Tooley
4b8bb03d3f Fixes #4: nullreferenceexception when parsing track with no tags 2013-07-24 22:39:49 +01:00
Rikki Tooley
ab9f873342 Exposing track.isnowplaying property
Probably more reliable than testing if datetime is null
2013-07-24 22:28:42 +01:00
Rikki Tooley
f342bd0757 artist.getShouts 2013-07-24 07:59:07 +01:00
Rikki Tooley
bf87dd9dba Workaround for HttpClient's caching
See
http://stackoverflow.com/questions/6334788/windows-phone-7-webrequest-caching
2013-07-24 01:48:55 +01:00
Rikki Tooley
83b816b3a2 track.love and track.unlove.
Also tidied the postcommands a bit.
2013-07-24 01:14:22 +01:00
Rikki Tooley
3eb12180a3 Fixes none of the getcommands working...
should really unit test this stuff
2013-07-24 01:09:33 +01:00
Rikki Tooley
4e2b7b0235 Removed methods using mbids. They weren't implemented anyway and last.fm doesn't use them reliably (see http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/2210879) 2013-07-24 00:11:58 +01:00
Rikki Tooley
92aec324ef Tidied up command framework. 2013-07-24 00:11:57 +01:00
Rikki Tooley
5134b6c2cc user.getRecentStations now uses the new PostAsyncCommand pattern 2013-07-24 00:11:57 +01:00
rikkit
99a61e50f8 Syntax highlighting for the quickstart
```c#
```
2013-07-23 23:11:54 +01:00
Rikki Tooley
05d93bbd34 Tidying user.getTopAlbums call. 2013-07-23 15:48:03 +01:00
Rikki Tooley
3565a10387 track.getInfo. Also fixes #2 (track.getShouts failing for single shout, added properties to PageResponse to help) 2013-07-23 15:42:10 +01:00
Rikki Tooley
6cc8e916e6 Handle when there's no comments on the track 2013-07-09 00:12:05 +01:00
Rikki Tooley
1e18e999bf GetShoutsCommand 2013-07-07 16:16:54 +01:00
Rikki Tooley
6c3e6d25ac Added ILastFmObject interface to simplify some object management scenarios. YEAH
Also added ArtistMbid property to Track.cs
2013-07-04 23:26:50 +01:00
Rikki Tooley
08411cd7ac Fixn' bugs 2013-07-02 00:20:43 +01:00
Rikki Tooley
1cb3974f20 Get artist info command 2013-07-02 00:20:43 +01:00
Rikki Tooley
0b44ed584e TrackApi: Return image uris and timeplayed with tracks 2013-07-02 00:20:42 +01:00
rikkit
911204481c Update quickstart code in Readme 2013-07-01 21:33:03 +01:00
rikkit
2156827ccf Update README.md 2013-07-01 15:36:58 +01:00
Rikki Tooley
d65005d951 RecentScrobblesCommand: Handling for null date 2013-06-26 23:36:41 +01:00
Rikki Tooley
6b98c368a9 Allow loading an existing session into an IAuth (create a UserSession, pass it in) 2013-06-23 23:58:42 +01:00
Rikki Tooley
6ee13480cc Moving stuff to commands 2013-06-23 20:10:57 +01:00
Rikki Tooley
e6cc245905 Added licence info (MIT) 2013-06-15 17:33:58 +01:00
Rikki Tooley
d6e12a0635 Updating readme to track completed methods 2013-06-15 17:13:33 +01:00
Rikki Tooley
243d4558e2 UserApi.GetRecentStations 2013-06-15 17:02:11 +01:00
Rikki Tooley
7ab098d5a8 Rearranged WP8 demo project 2013-06-15 16:26:30 +01:00
Rikki Tooley
48cdea2aea UserApi.GetRecentScrobbles() inc paging
Also updated demo app.
2013-06-15 16:17:37 +01:00
Rikki Tooley
40774bcf6a Removed the LastFmApiException class, it was a terrible idea 2013-06-15 13:57:20 +01:00
Rikki Tooley
ea0142d269 WP8 demo app, scrobbling works! 2013-06-14 17:44:55 +01:00
Rikki Tooley
600814d09f Scrobble method!
Also making all ParseJToken methods internal, but using
[assembly:InternalsVisibleTo("IF.Lastfm.Core.Tests")] to make them
testable
2013-06-14 16:19:26 +01:00
Rikki Tooley
e3e42853a0 Updated readme 2013-06-14 13:32:59 +01:00
Rikki Tooley
cd695b5216 Stubbed out some of ArtistApi 2013-06-14 13:25:02 +01:00
Rikki Tooley
03fa6f74e9 Changed error handling, stubbed most of albumapi
Methods now return LastResponse or ListResponse (confusing? hmm) instead
of throwing exceptions.
2013-06-14 13:11:42 +01:00
Rikki Tooley
c4867617d4 "Handle" api errors by throwing LastFmApiException 2013-06-13 21:30:18 +01:00
Rikki Tooley
bc54cd3582 Updating console program to use config file 2013-06-13 20:33:13 +01:00
Rikki Tooley
67e98ad5bb Started UserApi 2013-06-13 17:27:51 +01:00
Rikki Tooley
f15f6adbb3 Tag and track parsing 2013-06-13 16:29:52 +01:00
Rikki Tooley
8f2fd9c10f fixing broken project... 2013-06-12 17:37:19 +01:00
Rikki Tooley
3184fc617d Album.getInfo, starting to get a nice layout to the api. 2013-06-12 17:34:56 +01:00
Rikki Tooley
720e055d82 Fixed all the broken packages + added moq 2013-06-11 16:03:16 +01:00