Commit Graph

503 Commits

Author SHA1 Message Date
Rikki Tooley
3e991abc8a Add set accessor back to LastAsyncCommandBase, so Syro works again 2015-06-21 19:09:12 +01:00
Rikki Tooley
edc6e1d144 Merge pull request #72 from yaurthek/methodsNamesAsAttributes
Statically expose each LastCommand's method name using an attribute on the class
2015-06-21 17:49:33 +01:00
Melvyn
519d9fd884 code formatting in contributing.md 2015-06-20 16:48:23 +02:00
Melvyn
e15d2feeff added a note in the contributing guide remembering to add an ApiMethodName on new commands. 2015-06-20 16:46:37 +02:00
Melvyn
7e26fd64df Merge branch 'master' into methodsNamesAsAttributes 2015-06-20 16:40:49 +02:00
Melvyn
2e3ab5bf79 removed the api methods names constant list, and used the custom attribute on each command as the source for the LastAsyncCommandBase.Method property instead. 2015-06-20 16:22:20 +02:00
Rikki Tooley
c7881166bd Merge pull request #70 from yaurthek/master
Fixes an ArgumentOutOfRangeException in Library command unit tests, caused by implicit conversion of DateTime.MinValue to DateTimeOffset
2015-06-20 12:26:54 +01:00
Rikki Tooley
bc79e43eed Merge pull request #69 from yaurthek/patch-1
Improved documentation formatting
2015-06-20 12:23:35 +01:00
Melvyn
3aa33663b5 add a unit test checking whether each Command has an ApiMethodNameAttribute. 2015-06-20 13:11:15 +02:00
Melvyn
a4520fb31e removed now useless "CreateCommand()" method, previously used to create an instance of each Command for the progress reporter. 2015-06-20 12:38:32 +02:00
Melvyn
5b38910dd5 format the date in the progress report using the invariant culture. regenerated the progress report. 2015-06-20 12:37:51 +02:00
Melvyn
ff753c906c only allows the ApiMethodName attribute to be defined on classes. 2015-06-20 12:36:44 +02:00
Melvyn
512009f187 updated the progress reporter so that it uses the custom ApiMethodNameAttribute instead of trying to instantiate each command to get its Method property. 2015-06-20 12:36:14 +02:00
Melvyn
83fd97e85a implemented the "Method" property of each Command using the constants defined in LastMethodsNames. Each Command now also has a custom ApiMethodName attribute returning its correct api method name. 2015-06-20 12:24:23 +02:00
Melvyn
f05c76181b Added an auto-generated class containing all the Last.fm api methods names as constants, and an attribute to use them on the Commands. 2015-06-20 11:48:49 +02:00
Melvyn
dabe563a2f fix an ArgumentOutOfRangeException in the Unit Tests causing a few tests to fail.
The exception probably occured only with a local time zone with a positive offset, while performing the implicit conversion from DateTime.MinValue to a DateTimeOffset. http://stackoverflow.com/questions/6924198/converting-datetime-minvalue-to-datetimeoffset
2015-06-20 10:16:31 +02:00
Melvyn Laïly
6aa6146498 Updated scrobbling.md (formatting)
Removed useless extra backticks around in-line code, and added some more around methods and classes names.
2015-06-20 09:55:53 +02:00
Melvyn Laïly
d2fdbf1b10 Updated contributing.md (formatting and typo)
Wrapped classes and methods names in backticks so that the generic types parameters show on github, and corrected a typo.
2015-06-20 09:37:46 +02:00
Rikki Tooley
268afd59b8 Updating and clarifying some lines in contributing documentation 2015-05-19 13:44:45 +01:00
Rikki Tooley
bb9f18f0ad Updating docs 2015-05-19 13:34:11 +01:00
Rikki Tooley
54322086ea Aight then, just copying nupkgs to root after packing because it's easier than fiddling with the regex 2015-05-01 16:27:15 +01:00
Rikki Tooley
9a1769745e Fixing regex for nuget package deploy 2015-05-01 16:10:46 +01:00
Rikki Tooley
6f5f9c9805 Fixing typo in appveyor.yml 2015-05-01 11:53:30 +01:00
Rikki Tooley
02e85e4da4 Fixing NuGet on the build server 2015-05-01 10:50:01 +01:00
Rikki Tooley
e20378a1fe Updating version to 0.2.0 + Gitter webhook 2015-05-01 10:25:19 +01:00
Rikki Tooley
b28c3c1471 Fixing syro after httpclient changes 2015-04-29 13:45:52 +01:00
Rikki Tooley
57092d7bc9 Tidying up ScrobbleCommand and ScrobbleResponse 2015-04-28 14:35:27 +01:00
Rikki Tooley
65448d6032 Scrobbler.SendCachedScrobblesAsync() 2015-04-26 19:36:17 +01:00
Rikki Tooley
3e899833c2 Update README.md 2015-04-26 19:16:06 +01:00
Rikki Tooley
33a969c6df Match method names of *Api classes match REST api method names 2015-04-26 19:03:42 +01:00
Rikki Tooley
ecbea890f9 Use version from Package-Versions.ps1 for SQLite package version
Closes #67
2015-04-26 18:32:27 +01:00
Rikki Tooley
24d0c40f59 Return ignored scrobbles on ScrobbleResponses
Closes #59
2015-04-26 18:32:20 +01:00
Rikki Tooley
48be3af2c9 Update assembly info 2015-04-26 18:32:20 +01:00
Rikki Tooley
93a371674d Dispose classes created by LastfmClient #67, Scrobble command needs SSL for multiple scrobbles #61 2015-04-26 18:32:20 +01:00
Rikki Tooley
a44e158e95 LastfmClient class, closes #64 2015-04-26 01:13:12 +01:00
Rikki Tooley
6fcb990259 Add HttpClient parameter to api classes + pass them down to commands, make api classes disposable
Closes #66, closes #41
2015-04-26 00:36:52 +01:00
Rikki Tooley
742844b819 Move Scrobbler class to Objects namespace 2015-04-25 23:56:07 +01:00
Rikki Tooley
9a698ccf5f Merge pull request #63 from inflatablefriends/scrobbler
Batching and caching scrobbler classes.
2015-04-25 16:03:49 +01:00
Rikki Tooley
d65712505f Updating Inflatable.Lastfm.nuspec, defining package for Inflatable.Lastfm.SQLite 2015-04-25 15:31:50 +01:00
Rikki Tooley
6fe0c71e25 Test to ensure existng cached track is sent along with a new scrobble 2015-04-25 14:49:59 +01:00
Rikki Tooley
ea3a7eb2c3 Scrobble batching
TODO test batching combined with caching in unit tests
2015-04-24 00:47:30 +01:00
Rikki Tooley
64170d9a7c Merge branch 'master' into scrobbler
Conflicts:
	src/IF.Lastfm.Core/Api/Enums/LastResponseStatus.cs
2015-04-23 23:56:04 +01:00
Rikki Tooley
f16528f5ad Enums can only have 32 types! 2015-04-23 23:42:52 +01:00
Rikki Tooley
0ad13f4463 Let's see what the problem is... 2015-04-23 23:31:19 +01:00
Rikki Tooley
85bb18366d Tryin to get AppVeyor to run nunit under 4.5 2015-04-23 23:10:12 +01:00
Rikki Tooley
d10bdd79f6 Fix scrobble request body tests 2015-04-23 22:51:26 +01:00
Rikki Tooley
92d69f3619 Fix tests failure in different timezone 2015-04-17 18:13:41 -07:00
Rikki Tooley
8919d68597 More scrobbling documentation 2015-04-17 17:48:06 +01:00
Rikki Tooley
211fb3a559 Support batch scrobbling
Adjusted generate method signature to sort by ASCII order
2015-04-17 01:54:19 +01:00
Rikki Tooley
7bff9c698b Scrobble command parameter test 2015-04-12 04:16:13 +01:00