2020-08-10 09:22:33 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Giants.Services
|
|
|
|
|
{
|
2020-08-16 11:03:10 +02:00
|
|
|
|
public class VersionInfo : DataContract.V1.VersionInfo, IIdentifiable
|
2020-08-10 09:22:33 +02:00
|
|
|
|
{
|
2022-09-09 07:31:24 +02:00
|
|
|
|
public string id => GenerateId(this.AppName, this.BranchName ?? BranchConstants.DefaultBranchName);
|
2020-08-10 09:22:33 +02:00
|
|
|
|
|
|
|
|
|
public string DocumentType => nameof(VersionInfo);
|
|
|
|
|
|
2022-09-09 07:31:24 +02:00
|
|
|
|
public static string GenerateId(string appName, string branchName) => $"{nameof(VersionInfo)}-{appName}-{branchName}";
|
2020-08-10 09:22:33 +02:00
|
|
|
|
}
|
|
|
|
|
}
|