18 lines
900 B
C#
18 lines
900 B
C#
using System.Threading.Tasks;
|
|
using _0_Framework.Application;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace CompanyManagment.App.Contracts.AndroidApkVersion;
|
|
|
|
public record AndroidApkVersionInfo(int LatestVersionCode, string LatestVersionName, bool ShouldUpdate, bool IsForceUpdate, string DownloadUrl, string ReleaseNotes);
|
|
|
|
public interface IAndroidApkVersionApplication
|
|
{
|
|
Task<OperationResult> CreateAndActive(IFormFile file, ApkType apkType, string versionName, string versionCode, bool isForce = false);
|
|
Task<OperationResult> CreateAndDeActive(IFormFile file, ApkType apkType, string versionName, string versionCode, bool isForce = false);
|
|
Task<string> GetLatestActiveVersionPath(ApkType apkType);
|
|
Task<AndroidApkVersionInfo> GetLatestActiveInfo(ApkType apkType, int currentVersionCode);
|
|
OperationResult Remove(long id);
|
|
|
|
bool HasAndroidApkToDownload(ApkType apkType);
|
|
} |