29 lines
660 B
C#
29 lines
660 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Flexitime.Objects;
|
|
|
|
namespace FlexitimeAPI.Interfaces
|
|
{
|
|
public interface ITimePersistenceService
|
|
{
|
|
UserState StoreTime(TimeLog logEntry);
|
|
|
|
void UpdateTimeLog(Guid logToUpdate, TimeLog updatedLogEntry);
|
|
}
|
|
|
|
public interface IApplicationSettings
|
|
{
|
|
public string Secret { get; }
|
|
public string ConnectionString { get; }
|
|
}
|
|
|
|
public interface ILoginService
|
|
{
|
|
string GenerateJwtToken(User user);
|
|
}
|
|
|
|
public interface IIdentifierService
|
|
{
|
|
Task Associate(Identifier identifier, Guid userId);
|
|
}
|
|
} |