Gestito appVersion
This commit is contained in:
@@ -6,6 +6,7 @@ namespace SteUp.Shared.Core.Data.Contracts;
|
||||
public interface ISteupDataService
|
||||
{
|
||||
Task Init();
|
||||
void RegisterAppVersion();
|
||||
|
||||
List<PuntoVenditaDto> PuntiVenditaList { get; }
|
||||
InspectionPageState InspectionPageState { get; set; }
|
||||
|
||||
@@ -1,21 +1,33 @@
|
||||
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
|
||||
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Device;
|
||||
using SteUp.Shared.Core.Data.Contracts;
|
||||
using SteUp.Shared.Core.Dto;
|
||||
using SteUp.Shared.Core.Dto.PageState;
|
||||
using SteUp.Shared.Core.Interface.IntegryApi;
|
||||
using SteUp.Shared.Core.Interface.LocalDb;
|
||||
using SteUp.Shared.Core.Interface.System;
|
||||
|
||||
namespace SteUp.Shared.Core.Data;
|
||||
|
||||
public class SteupDataService(
|
||||
IIntegrySteupService integrySteupService,
|
||||
IUserSession userSession,
|
||||
IDeviceService deviceService,
|
||||
IGenericSystemService genericSystemService,
|
||||
IDbInitializer dbInitializer) : ISteupDataService
|
||||
{
|
||||
public async Task Init()
|
||||
{
|
||||
await dbInitializer.InitializeAsync();
|
||||
await LoadDataAsync();
|
||||
RegisterAppVersion();
|
||||
}
|
||||
|
||||
public void RegisterAppVersion()
|
||||
{
|
||||
deviceService.RegisterAppVersion(
|
||||
genericSystemService.GetCurrentAppVersion()
|
||||
);
|
||||
}
|
||||
|
||||
private async Task LoadDataAsync()
|
||||
|
||||
Reference in New Issue
Block a user