complete detailType for simplified Retrieve methods;
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using PocketSharp.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace PocketSharp
|
||||
{
|
||||
public partial class PocketClient
|
||||
{
|
||||
public bool AddTags()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user