1
0

Added basic library structure

This commit is contained in:
Michael Gordeev
2019-10-31 00:55:27 +03:00
parent 8ebd74f3d0
commit ff8c64e4a3
7 changed files with 145 additions and 0 deletions
+4
View File
@@ -3,3 +3,7 @@
################################################################################
/.vs/YouTubeScraper/v16
/.vs
/YouTubeScraper/.vs/YouTubeScraper/v16
/YouTubeScraper/YouTubeScraper/bin/Debug/netstandard2.0
/YouTubeScraper/YouTubeScraper/obj
+25
View File
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29424.173
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YouTubeScraper", "YouTubeScraper\YouTubeScraper.csproj", "{F7E1AD03-B67C-4C79-BE84-682490ED05C5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F7E1AD03-B67C-4C79-BE84-682490ED05C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7E1AD03-B67C-4C79-BE84-682490ED05C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7E1AD03-B67C-4C79-BE84-682490ED05C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7E1AD03-B67C-4C79-BE84-682490ED05C5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CD40D1C9-553A-4E06-965A-A9ACC91EED25}
EndGlobalSection
EndGlobal
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YouTubeScraper.Resources
{
public class DashManifestsResource
{
public class ListRequest { }
public ListRequest List(string id)
{
return new ListRequest();
}
}
}
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Text;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
namespace YouTubeScraper.Resources
{
public class HistoryResource
{
public class ListRequest { }
public class InsertRequest { }
public class DeleteRequest { }
public class ClearRequest { }
public ListRequest List()
{
return new ListRequest();
}
public InsertRequest Insert(string videoId, TimeSpan? leftOn)
{
return new InsertRequest();
}
public DeleteRequest Delete(string videoId)
{
return new DeleteRequest();
}
public ClearRequest Clear()
{
return new ClearRequest();
}
}
}
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YouTubeScraper.Resources
{
public class WatchLaterResource
{
public class ListRequest { }
public class InsertRequest { }
public class DeleteRequest { }
public ListRequest List()
{
return new ListRequest();
}
public InsertRequest Insert(string videoId)
{
return new InsertRequest();
}
public DeleteRequest Delete(string videoId)
{
return new DeleteRequest();
}
}
}
@@ -0,0 +1,19 @@
using System;
using Google.Apis.YouTube.v3;
using YouTubeScraper.Resources;
namespace YouTubeScraper
{
public class YouTubeScraper : YouTubeService
{
public HistoryResource History { get; }
public WatchLaterResource WatchLater { get; }
public DashManifestsResource DashManifests { get; set; }
// TODO: Add Activities override for recomendations and subscriptions
public YouTubeScraper()
{
}
}
}
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AngleSharp" Version="0.13.0" />
<PackageReference Include="Google.Apis" Version="1.41.1" />
<PackageReference Include="Google.Apis.Auth" Version="1.41.1" />
<PackageReference Include="Google.Apis.Core" Version="1.41.1" />
<PackageReference Include="Google.Apis.Oauth2.v2" Version="1.41.1.1602" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.41.1.1699" />
<PackageReference Include="YoutubeExplode" Version="4.7.10" />
</ItemGroup>
</Project>