initial load

This commit is contained in:
2022-08-22 15:56:12 +02:00
commit d3b7ff17be
62 changed files with 2694 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTubeViewers.Domain.Models;
namespace YouTubeViewers.Domain.Commands
{
public interface ICreateYouTubeViewerCommand
{
Task Execute(YouTubeViewer youTubeViewer);
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YouTubeViewers.Domain.Commands
{
public interface IDeleteYouTubeViewerCommand
{
Task Execute(Guid id);
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTubeViewers.Domain.Models;
namespace YouTubeViewers.Domain.Commands
{
public interface IUpdateYouTubeViewerCommand
{
Task Execute(YouTubeViewer youTubeViewer);
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YouTubeViewers.Domain.Models
{
public class YouTubeViewer
{
public YouTubeViewer(Guid id, string username, bool isSubscribed, bool isMember)
{
Id = id;
Username = username;
IsSubscribed = isSubscribed;
IsMember = isMember;
}
public Guid Id { get; }
public string Username { get; }
public bool IsSubscribed { get; }
public bool IsMember { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTubeViewers.Domain.Models;
namespace YouTubeViewers.Domain.Queries
{
public interface IGetAllYouTubeViewersQuery
{
Task<IEnumerable<YouTubeViewer>> Execute();
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>