migrate to .NET Standard 2

This commit is contained in:
2019-02-27 15:40:49 +01:00
parent 6188e7bc8c
commit e55c43cdf3
14 changed files with 76 additions and 393 deletions
+1
View File
@@ -127,6 +127,7 @@ _old
_tmp
Gemfile.lock
WebWorkbench.mswwsettings
.vs
# RIA/Silverlight projects
Generated_Code/
-12
View File
@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FeedlySharp.Tests
{
class AccountTests
{
}
}
@@ -1,82 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{89BFAE7F-EA8E-454A-B299-665926BC363F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FeedlySharp.Tests</RootNamespace>
<AssemblyName>FeedlySharp.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<Choose>
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
</ItemGroup>
</Otherwise>
</Choose>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
</ItemGroup>
</When>
</Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FeedlySharp.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FeedlySharp.Tests")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6fd8b7ce-7931-4ca0-8522-99224cee7392")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
-42
View File
@@ -1,42 +0,0 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
namespace FeedlySharp.Tests
{
public class TestsBase : IDisposable
{
protected FeedlyClient client;
// setup
public TestsBase()
{
}
// teardown
public void Dispose()
{
}
// async throws
public static async Task ThrowsAsync<TException>(Func<Task> func)
{
var expected = typeof(TException);
Type actual = null;
try
{
await func();
}
catch (Exception e)
{
actual = e.GetType();
}
Assert.Equal(expected, actual);
}
}
}
-4
View File
@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="xunit" version="1.9.2" targetFramework="net45" />
</packages>
+10 -19
View File
@@ -1,13 +1,9 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
# Visual Studio 15
VisualStudioVersion = 15.0.28307.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FeedlySharp", "FeedlySharp\FeedlySharp.csproj", "{32152AF4-808D-4760-B3EF-001ED46FAA25}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FeedlySharp.Tests", "FeedlySharp.Tests\FeedlySharp.Tests.csproj", "{89BFAE7F-EA8E-454A-B299-665926BC363F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FeedlySharp.Console", "FeedlySharp.Console\FeedlySharp.Console.csproj", "{DC056E22-14E3-4E5E-8E9D-E805D601F003}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FeedlySharp", "FeedlySharp\FeedlySharp.csproj", "{188EA66E-5CBC-4045-990D-7BDB50B67EE0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,20 +11,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{32152AF4-808D-4760-B3EF-001ED46FAA25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32152AF4-808D-4760-B3EF-001ED46FAA25}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32152AF4-808D-4760-B3EF-001ED46FAA25}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32152AF4-808D-4760-B3EF-001ED46FAA25}.Release|Any CPU.Build.0 = Release|Any CPU
{89BFAE7F-EA8E-454A-B299-665926BC363F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{89BFAE7F-EA8E-454A-B299-665926BC363F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{89BFAE7F-EA8E-454A-B299-665926BC363F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{89BFAE7F-EA8E-454A-B299-665926BC363F}.Release|Any CPU.Build.0 = Release|Any CPU
{DC056E22-14E3-4E5E-8E9D-E805D601F003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC056E22-14E3-4E5E-8E9D-E805D601F003}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DC056E22-14E3-4E5E-8E9D-E805D601F003}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC056E22-14E3-4E5E-8E9D-E805D601F003}.Release|Any CPU.Build.0 = Release|Any CPU
{188EA66E-5CBC-4045-990D-7BDB50B67EE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{188EA66E-5CBC-4045-990D-7BDB50B67EE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{188EA66E-5CBC-4045-990D-7BDB50B67EE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{188EA66E-5CBC-4045-990D-7BDB50B67EE0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7CA264D2-97A6-4314-B043-A8542F0B5712}
EndGlobalSection
EndGlobal
+2 -2
View File
@@ -1,11 +1,11 @@
using FeedlySharp.Models;
using FeedlySharp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
namespace FeedlySharp
{
+1 -3
View File
@@ -1,13 +1,11 @@
using FeedlySharp.Extensions;
using FeedlySharp.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
+8 -104
View File
@@ -1,108 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{32152AF4-808D-4760-B3EF-001ED46FAA25}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FeedlySharp</RootNamespace>
<AssemblyName>FeedlySharp</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="Endpoints\Entries.cs" />
<Compile Include="Endpoints\Feeds.cs" />
<Compile Include="Endpoints\Markers.cs" />
<Compile Include="Endpoints\Mixes.cs" />
<Compile Include="Endpoints\Search.cs" />
<Compile Include="Endpoints\Streams.cs" />
<Compile Include="Endpoints\Subscriptions.cs" />
<Compile Include="Endpoints\Topics.cs" />
<Compile Include="IFeedlyClient.cs" />
<Compile Include="Models\FeedlyCategoryUnreadCount.cs" />
<Compile Include="Models\FeedlyEntry.cs" />
<Compile Include="Models\FeedlyFeed.cs" />
<Compile Include="Models\FeedlyImage.cs" />
<Compile Include="Models\FeedlyLink.cs" />
<Compile Include="Models\FeedlyOrigin.cs" />
<Compile Include="Models\FeedlyReadOperations.cs" />
<Compile Include="Models\FeedlySearchFeed.cs" />
<Compile Include="Models\FeedlySearchResponse.cs" />
<Compile Include="Models\FeedlyStreamEntriesResponse.cs" />
<Compile Include="Models\FeedlyStreamEntryIdsResponse.cs" />
<Compile Include="Models\FeedlySubscription.cs" />
<Compile Include="Models\FeedlyText.cs" />
<Compile Include="Models\FeedlyTopic.cs" />
<Compile Include="Endpoints\OPML.cs" />
<Compile Include="Extensions\JsonExtensions.cs" />
<Compile Include="Extensions\UriExtensions.cs" />
<Compile Include="Endpoints\Preferences.cs" />
<Compile Include="Endpoints\Tags.cs" />
<Compile Include="Endpoints\Auth.cs" />
<Compile Include="Endpoints\Categories.cs" />
<Compile Include="FeedlyClient.cs" />
<Compile Include="Endpoints\Profile.cs" />
<Compile Include="FeedlyHttpClient.cs" />
<Compile Include="FeedlySharpException.cs" />
<Compile Include="Models\FeedlyCategory.cs" />
<Compile Include="Models\FeedlyTag.cs" />
<Compile Include="Models\FeedlyUser.cs" />
<Compile Include="Models\Responses.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.6.0.6\lib\portable-net45+wp80+win8+wpa81+aspnetcore50\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http">
<HintPath>..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Extensions">
<HintPath>..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Primitives">
<HintPath>..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
+2 -2
View File
@@ -17,7 +17,7 @@
For full release notes see https://github.com/ceee/FeedlySharp/blob/master/CHANGELOG.md
]]>
</releaseNotes>
<copyright>Copyright by cee, 2014</copyright>
<tags>Feedly Feedly API FeedlySharp Tobias Klika cee</tags>
<copyright>Copyright by brothers, 2019</copyright>
<tags>Feedly Feedly API FeedlySharp Tobias Klika brothers cee</tags>
</metadata>
</package>
+52 -50
View File
@@ -1,61 +1,63 @@
using System;
using FeedlySharp.Models;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace FeedlySharp
{
public interface IFeedlyClient
{
void Activate(string accessToken, string userId);
System.Threading.Tasks.Task<bool> AddOrUpdateSubscription(string id, System.Collections.Generic.List<FeedlySharp.Models.FeedlyCategory> categories = null, string optionalTitle = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> AddOrUpdateTopic(string topicId, FeedlySharp.Models.Interest interest = Interest.Low, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task DeleteCategory(string id, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
Task<bool> AddOrUpdateSubscription(string id, System.Collections.Generic.List<FeedlyCategory> categories = null, string optionalTitle = null, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> AddOrUpdateTopic(string topicId, Interest interest = Interest.Low, CancellationToken cancellationToken = default(CancellationToken));
Task DeleteCategory(string id, CancellationToken cancellationToken = default(CancellationToken));
void Dispose();
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlySearchResponse> FindEntries(string contentId, string searchQuery, DateTime? newerThan = null, string continuation = null, string fields = null, string embedded = null, string engagement = null, int? count = null, string locale = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlySearchFeed>> FindFeeds(string searchQuery, int? count = null, string locale = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlySearchResponse> FindEntries(string contentId, string searchQuery, DateTime? newerThan = null, string continuation = null, string fields = null, string embedded = null, string engagement = null, int? count = null, string locale = null, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlySearchFeed>> FindFeeds(string searchQuery, int? count = null, string locale = null, CancellationToken cancellationToken = default(CancellationToken));
string GetAuthenticationUri(string scope = "subscriptions", string state = default(String));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyCategory>> GetCategories(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyEntry>> GetEntries(string[] ids, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyEntry> GetEntry(string id, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyFeed> GetFeed(string id, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyFeed>> GetFeeds(string[] ids, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyReadOperations> GetMarkersReadOperations(DateTime newerThan, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyCategoryUnreadCount>> GetMarkersUnreadCount(bool isAutoRefresh = false, DateTime? newerThan = null, string categoryId = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyEntry>> GetMixes(string contentId, int? count = null, bool unreadOnly = false, int? limitHours = null, DateTime? newerThan = null, bool backfill = true, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<string> GetOPML(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, string>> GetPreferences(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyUser> GetProfile(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyStreamEntriesResponse> GetStreamEntries(string id, ContentType type, int? count = null, FeedSorting sorting = FeedSorting.Newest, bool? unreadOnly = null, DateTime? newerThan = null, string continuation = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyStreamEntryIdsResponse> GetStreamEntryIds(string id, ContentType type, int? count = null, FeedSorting sorting = FeedSorting.Newest, bool? unreadOnly = null, DateTime? newerThan = null, string continuation = null, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlySubscription>> GetSubscriptions(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyTag>> GetTags(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.List<FeedlySharp.Models.FeedlyTopic>> GetTopics(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> ImportOPML(string opml, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> KeepEntriesAsUnread(string[] entryIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> KeepEntryAsUnread(string entryId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkCategoriesAsRead(string[] categoryIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkCategoryAsRead(string categoryId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntriesAsRead(string[] entryIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntriesAsSaved(string[] entryIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntriesAsUnsaved(string[] entryIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntryAsRead(string entryId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntryAsSaved(string entryId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkEntryAsUnsaved(string entryId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkFeedAsRead(string feedId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> MarkFeedsAsRead(string[] feedIds, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
FeedlySharp.Models.AuthenticationResponse ParseAuthenticationResponseUri(string uri);
FeedlySharp.Models.AuthenticationResponse ParseAuthenticationResponseUri(Uri uri);
System.Threading.Tasks.Task<bool> RemoveSubscription(string id, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> RemoveTags(string[] entryIds, string[] tags, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> RemoveTags(string[] tags, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> RemoveTopic(string topicId, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task RenameCategory(string id, string label, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> RenameTag(string oldTag, string newTag, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.AccessTokenResponse> RequestAccessToken(string authenticationCode, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.AccessTokenResponse> RequestRefreshToken(string refreshToken, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task RevokeRefreshToken(string refreshToken, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, string>> UpdatePreferences(System.Collections.Generic.Dictionary<string, string> preferences, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<FeedlySharp.Models.FeedlyUser> UpdateProfile(System.Collections.Generic.Dictionary<string, string> parameters, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> UpdateTags(string entryId, string[] tags, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
System.Threading.Tasks.Task<bool> UpdateTags(string[] entryIds, string[] tags, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyCategory>> GetCategories(CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyEntry>> GetEntries(string[] ids, CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyEntry> GetEntry(string id, CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyFeed> GetFeed(string id, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyFeed>> GetFeeds(string[] ids, CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyReadOperations> GetMarkersReadOperations(DateTime newerThan, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyCategoryUnreadCount>> GetMarkersUnreadCount(bool isAutoRefresh = false, DateTime? newerThan = null, string categoryId = null, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyEntry>> GetMixes(string contentId, int? count = null, bool unreadOnly = false, int? limitHours = null, DateTime? newerThan = null, bool backfill = true, CancellationToken cancellationToken = default(CancellationToken));
Task<string> GetOPML(CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.Dictionary<string, string>> GetPreferences(CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyUser> GetProfile(CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyStreamEntriesResponse> GetStreamEntries(string id, ContentType type, int? count = null, FeedSorting sorting = FeedSorting.Newest, bool? unreadOnly = null, DateTime? newerThan = null, string continuation = null, CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyStreamEntryIdsResponse> GetStreamEntryIds(string id, ContentType type, int? count = null, FeedSorting sorting = FeedSorting.Newest, bool? unreadOnly = null, DateTime? newerThan = null, string continuation = null, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlySubscription>> GetSubscriptions(CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyTag>> GetTags(CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.List<FeedlyTopic>> GetTopics(CancellationToken cancellationToken = default(CancellationToken));
Task<bool> ImportOPML(string opml, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> KeepEntriesAsUnread(string[] entryIds, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> KeepEntryAsUnread(string entryId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkCategoriesAsRead(string[] categoryIds, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkCategoryAsRead(string categoryId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntriesAsRead(string[] entryIds, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntriesAsSaved(string[] entryIds, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntriesAsUnsaved(string[] entryIds, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntryAsRead(string entryId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntryAsSaved(string entryId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkEntryAsUnsaved(string entryId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkFeedAsRead(string feedId, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> MarkFeedsAsRead(string[] feedIds, CancellationToken cancellationToken = default(CancellationToken));
AuthenticationResponse ParseAuthenticationResponseUri(string uri);
AuthenticationResponse ParseAuthenticationResponseUri(Uri uri);
Task<bool> RemoveSubscription(string id, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> RemoveTags(string[] entryIds, string[] tags, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> RemoveTags(string[] tags, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> RemoveTopic(string topicId, CancellationToken cancellationToken = default(CancellationToken));
Task RenameCategory(string id, string label, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> RenameTag(string oldTag, string newTag, CancellationToken cancellationToken = default(CancellationToken));
Task<AccessTokenResponse> RequestAccessToken(string authenticationCode, CancellationToken cancellationToken = default(CancellationToken));
Task<AccessTokenResponse> RequestRefreshToken(string refreshToken, CancellationToken cancellationToken = default(CancellationToken));
Task RevokeRefreshToken(string refreshToken, CancellationToken cancellationToken = default(CancellationToken));
Task<System.Collections.Generic.Dictionary<string, string>> UpdatePreferences(System.Collections.Generic.Dictionary<string, string> preferences, CancellationToken cancellationToken = default(CancellationToken));
Task<FeedlyUser> UpdateProfile(System.Collections.Generic.Dictionary<string, string> parameters, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> UpdateTags(string entryId, string[] tags, CancellationToken cancellationToken = default(CancellationToken));
Task<bool> UpdateTags(string[] entryIds, string[] tags, CancellationToken cancellationToken = default(CancellationToken));
}
}
-30
View File
@@ -1,30 +0,0 @@
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FeedlySharp")]
[assembly: AssemblyDescription(".NET library for the Feedly API")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("cee")]
[assembly: AssemblyProduct("FeedlySharp")]
[assembly: AssemblyCopyright("Copyright © cee 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="portable-net45+win+wpa81+wp80" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="portable-net45+win+wpa81+wp80" />
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="portable-net45+win+wpa81+wp80" />
<package id="Newtonsoft.Json" version="6.0.6" targetFramework="portable-net45+win+wpa81+wp80" />
</packages>