1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-05 02:53:08 +01:00
GiantsTools/Giants.Services/Core/Entities/VersionInfo.cs
2022-09-08 22:31:24 -07:00

14 lines
430 B
C#

using System;
namespace Giants.Services
{
public class VersionInfo : DataContract.V1.VersionInfo, IIdentifiable
{
public string id => GenerateId(this.AppName, this.BranchName ?? BranchConstants.DefaultBranchName);
public string DocumentType => nameof(VersionInfo);
public static string GenerateId(string appName, string branchName) => $"{nameof(VersionInfo)}-{appName}-{branchName}";
}
}