Primo sviluppo sincronizzazione e migliorie ui
This commit is contained in:
13
Template.Shared/Core/Interface/IFormFactor.cs
Normal file
13
Template.Shared/Core/Interface/IFormFactor.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Template.Shared.Core.Interface;
|
||||
|
||||
public interface IFormFactor
|
||||
{
|
||||
public string GetFormFactor();
|
||||
public string GetPlatform();
|
||||
|
||||
public bool IsWeb()
|
||||
{
|
||||
var formFactor = GetFormFactor();
|
||||
return formFactor == "Web";
|
||||
}
|
||||
}
|
||||
12
Template.Shared/Core/Interface/IIntegryApiService.cs
Normal file
12
Template.Shared/Core/Interface/IIntegryApiService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Template.Shared.Core.Dto;
|
||||
using Template.Shared.Core.Entity;
|
||||
|
||||
namespace Template.Shared.Core.Interface;
|
||||
|
||||
public interface IIntegryApiService
|
||||
{
|
||||
Task<List<StbActivity>?> GetActivity(string? dateFilter = null);
|
||||
Task<List<JtbComt>?> GetAllCommesse(string? dateFilter = null);
|
||||
Task<TaskSyncResponseDTO> GetAnagClie(string? dateFilter = null);
|
||||
Task<TaskSyncResponseDTO> GetProspect(string? dateFilter = null);
|
||||
}
|
||||
18
Template.Shared/Core/Interface/IManageDataService.cs
Normal file
18
Template.Shared/Core/Interface/IManageDataService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Linq.Expressions;
|
||||
using Template.Shared.Core.Dto;
|
||||
using Template.Shared.Core.Entity;
|
||||
|
||||
namespace Template.Shared.Core.Interface;
|
||||
|
||||
public interface IManageDataService
|
||||
{
|
||||
Task<List<AnagClie>> GetAnagClie(Expression<Func<AnagClie, bool>>? whereCond = null);
|
||||
Task<List<JtbComt>> GetJtbComt(Expression<Func<JtbComt, bool>>? whereCond = null);
|
||||
Task<List<PtbPros>> GetPtbPros(Expression<Func<PtbPros, bool>>? whereCond = null);
|
||||
Task<List<PtbProsRif>> GetPtbProsRif(Expression<Func<PtbProsRif, bool>>? whereCond = null);
|
||||
Task<List<StbActivity>> GetStbActivity(Expression<Func<StbActivity, bool>>? whereCond = null);
|
||||
Task<List<VtbCliePersRif>> GetVtbCliePersRif(Expression<Func<VtbCliePersRif, bool>>? whereCond = null);
|
||||
Task<List<VtbDest>> GetVtbDest(Expression<Func<VtbDest, bool>>? whereCond = null);
|
||||
|
||||
Task<List<ActivityDTO>> GetActivity(Expression<Func<StbActivity, bool>>? whereCond = null);
|
||||
}
|
||||
9
Template.Shared/Core/Interface/ISyncDbService.cs
Normal file
9
Template.Shared/Core/Interface/ISyncDbService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Template.Shared.Core.Interface;
|
||||
|
||||
public interface ISyncDbService
|
||||
{
|
||||
Task GetAndSaveActivity(string? dateFilter = null);
|
||||
Task GetAndSaveCommesse(string? dateFilter = null);
|
||||
Task GetAndSaveProspect(string? dateFilter = null);
|
||||
Task GetAndSaveClienti(string? dateFilter = null);
|
||||
}
|
||||
Reference in New Issue
Block a user