using XFEExtension.NetCore.WinUIHelper.Interface.Services;
using XFEWarframe.Client;
using XFEWarframe.Player.Models;
namespace XFEWarframe.Player.Interface.Services;
public interface IPlayerAccountService : IGlobalService
{
PlayerAccountState State { get; }
Task InitializeAsync();
Task LoginAsync(string email, string password);
Task SetRememberAccountAsync(bool remember);
Task<XFEWarframe.Client.Runtime.GameLoginRequest> GameLoginAsync(CancellationToken cancellation = default);
Task RegisterAsync(string email, string password, string displayName);
Task RefreshAsync();
Task<PlayerInventory> InventoryAsync(string query, string category, int skip);
Task GrantAsync(string currency, long amount);
Task<PlayerCatalog> CatalogAsync(string query, string category, int skip);
Task GrantItemAsync(string type, int count);
Task<Newtonsoft.Json.Linq.JObject> ReadEditorAsync(string category, string query, string? item, int skip);
Task<Newtonsoft.Json.Linq.JObject> SaveEditorAsync(Newtonsoft.Json.Linq.JObject body);
Task<PlayerEditorRevision> EditorRevisionAsync();
Task<Newtonsoft.Json.Linq.JObject> ExportArchiveAsync();
Task<Newtonsoft.Json.Linq.JObject> ImportArchiveAsync(string version, Newtonsoft.Json.Linq.JObject inventory);
Task<Newtonsoft.Json.Linq.JObject> RivenCatalogAsync(string? family);
Task<Newtonsoft.Json.Linq.JObject> CalculateRivenAsync(Newtonsoft.Json.Linq.JObject body);
Task LogoutAsync();
Task EditIdentityAsync(string action, string password, string value);
void Stop();
}
using XFEExtension.NetCore.WinUIHelper.Interface.Services;
using XFEWarframe.Client;
using XFEWarframe.Player.Models;
namespace XFEWarframe.Player.Interface.Services;
public interface IPlayerAccountService : IGlobalService
{
PlayerAccountState State { get; }
Task InitializeAsync();
Task LoginAsync(string email, string password);
Task SetRememberAccountAsync(bool remember);
Task<XFEWarframe.Client.Runtime.GameLoginRequest> GameLoginAsync(CancellationToken cancellation = default);
Task RegisterAsync(string email, string password, string displayName);
Task RefreshAsync();
Task<PlayerInventory> InventoryAsync(string query, string category, int skip);
Task GrantAsync(string currency, long amount);
Task<PlayerCatalog> CatalogAsync(string query, string category, int skip);
Task GrantItemAsync(string type, int count);
Task<Newtonsoft.Json.Linq.JObject> ReadEditorAsync(string category, string query, string? item, int skip);
Task<Newtonsoft.Json.Linq.JObject> SaveEditorAsync(Newtonsoft.Json.Linq.JObject body);
Task<PlayerEditorRevision> EditorRevisionAsync();
Task<Newtonsoft.Json.Linq.JObject> ExportArchiveAsync();
Task<Newtonsoft.Json.Linq.JObject> ImportArchiveAsync(string version, Newtonsoft.Json.Linq.JObject inventory);
Task<Newtonsoft.Json.Linq.JObject> RivenCatalogAsync(string? family);
Task<Newtonsoft.Json.Linq.JObject> CalculateRivenAsync(Newtonsoft.Json.Linq.JObject body);
Task LogoutAsync();
Task EditIdentityAsync(string action, string password, string value);
void Stop();
}