complete detailType for simplified Retrieve methods;

This commit is contained in:
2013-06-25 12:15:23 +02:00
parent 2c8524f5bd
commit 62481fb6f0
5 changed files with 29 additions and 8 deletions
+6 -6
View File
@@ -34,14 +34,14 @@ namespace PocketSharp.Console
//System.Console.WriteLine(client.GetAccessCode());
client.Search("css").ForEach(delegate(PocketItem item)
{
System.Console.WriteLine(item.ID + " ::: " + item.FullTitle);
});
{
System.Console.WriteLine(item.ID + " ::: " + item.FullTitle);
});
System.Console.WriteLine("---------------------------------");
//System.Console.WriteLine("---------------------------------");
client.Archive(330361896);
client.Favorite(330361896);
//client.Archive(330361896);
//client.Favorite(330361896);
System.Console.ReadKey();
+13
View File
@@ -0,0 +1,13 @@
using PocketSharp.Models;
using System.Collections.Generic;
namespace PocketSharp
{
public partial class PocketClient
{
public bool AddTags()
{
return true;
}
}
}
+6 -2
View File
@@ -50,6 +50,8 @@ namespace PocketSharp
break;
}
parameters.DetailType = DetailTypeEnum.complete;
return Get<Retrieve>("get", parameters.Convert()).Items;
}
@@ -64,7 +66,8 @@ namespace PocketSharp
ExpectAuthentification();
RetrieveParameters parameters = new RetrieveParameters()
{
Tag = tag
Tag = tag,
DetailType = DetailTypeEnum.complete
};
return Get<Retrieve>("get", parameters.Convert()).Items;
}
@@ -80,7 +83,8 @@ namespace PocketSharp
ExpectAuthentification();
RetrieveParameters parameters = new RetrieveParameters()
{
Search = searchString
Search = searchString,
DetailType = DetailTypeEnum.complete
};
return Get<Retrieve>("get", parameters.Convert()).Items;
}
+3
View File
@@ -1,11 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace PocketSharp.Models
{
[DataContract]
public class PocketTag
{
}
}
+1
View File
@@ -50,6 +50,7 @@
<Compile Include="APIException.cs" />
<Compile Include="Components\Authentification.cs" />
<Compile Include="Components\Modify.cs" />
<Compile Include="Components\ModifyTags.cs" />
<Compile Include="Components\Retrieve.cs" />
<Compile Include="JsonDeserializer.cs" />
<Compile Include="Models\Authentification\AccessCode.cs" />