Implemented version fetching from source control git server. Added self version detection and update checks
This commit was merged in pull request #8.
This commit is contained in:
15
Moonlight.Api/Mappers/VersionMapper.cs
Normal file
15
Moonlight.Api/Mappers/VersionMapper.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Moonlight.Api.Models;
|
||||
using Moonlight.Shared.Http.Responses.Admin;
|
||||
using Riok.Mapperly.Abstractions;
|
||||
|
||||
namespace Moonlight.Api.Mappers;
|
||||
|
||||
[Mapper]
|
||||
[SuppressMessage("Mapper", "RMG020:Source member is not mapped to any target member")]
|
||||
[SuppressMessage("Mapper", "RMG012:Source member was not found for target member")]
|
||||
public static partial class VersionMapper
|
||||
{
|
||||
public static partial IEnumerable<VersionDto> ToDtos(IEnumerable<MoonlightVersion> versions);
|
||||
public static partial VersionDto ToDto(MoonlightVersion version);
|
||||
}
|
||||
Reference in New Issue
Block a user