mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 14:24:32 +00:00
ef8e12e20d
- Mafile version was updated (3), new property SteamId added - MafileSerializer was refactored to adjust compability and code readability. - Serialization work moved from Storage to new class NebulaSerializer
24 lines
733 B
C#
24 lines
733 B
C#
using SteamLib.Account;
|
|
using SteamLib.Core.Enums;
|
|
using SteamLib.Core.Models;
|
|
|
|
namespace SteamLib.Core.Interfaces;
|
|
|
|
//WARNING: Any changes here should be reflected in MafileSerializer.cs
|
|
public interface ISessionData : ICloneable
|
|
{
|
|
internal bool? IsValid { get; set; }
|
|
public bool IsExpired => RefreshToken.IsExpired;
|
|
public string SessionId { get; }
|
|
public SteamId SteamId { get; }
|
|
public SteamAuthToken RefreshToken { get; }
|
|
|
|
public SteamAuthToken? GetToken(SteamDomain domain);
|
|
public void SetToken(SteamDomain domain, SteamAuthToken token);
|
|
}
|
|
|
|
public interface IMobileSessionData : ISessionData
|
|
{
|
|
public SteamAuthToken? GetMobileToken();
|
|
public void SetMobileToken(SteamAuthToken token);
|
|
} |