Initial Commit
Inital Commit of Code base, nothing tested.
This commit is contained in:
commit
0144221712
31 changed files with 1304 additions and 0 deletions
20
FreeTubeSync/SpecialResponses/Mappings.cs
Normal file
20
FreeTubeSync/SpecialResponses/Mappings.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using FreeTubeSync.Model;
|
||||
|
||||
namespace FreeTubeSync.SpecialResponses;
|
||||
|
||||
public static class Mappings
|
||||
{
|
||||
public static SettingResponse MapToResponse(this Setting setting)
|
||||
{
|
||||
return new SettingResponse
|
||||
{
|
||||
_id = setting._id,
|
||||
value = setting.Value
|
||||
};
|
||||
}
|
||||
|
||||
public static IEnumerable<SettingResponse> MapToResponse(this IEnumerable<Setting> settings)
|
||||
{
|
||||
return settings.Select(MapToResponse);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue