2013-08-27 17:14:08 +02:00
|
|
|
|
namespace LOC.Website.Common.Models
|
|
|
|
|
{
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Core.Model.Account;
|
|
|
|
|
using Core.Model.Sales;
|
|
|
|
|
using Core.Tokens;
|
|
|
|
|
using Core.Tokens.Client;
|
|
|
|
|
|
|
|
|
|
public interface IAccountAdministrator
|
|
|
|
|
{
|
|
|
|
|
List<String> GetAccountNames();
|
|
|
|
|
List<Account> GetAllAccountsMatching();
|
|
|
|
|
List<Account> GetAllAccountsMatching(string name);
|
|
|
|
|
List<String> GetAllAccountNamesMatching(string name);
|
|
|
|
|
Account GetAccountByName(string name);
|
2014-04-25 09:44:14 +02:00
|
|
|
|
List<AccountNameToken> GetAccounts(AccountBatchToken token);
|
2013-08-27 17:14:08 +02:00
|
|
|
|
Account GetAccountById(int id);
|
|
|
|
|
Account CreateAccount(string name);
|
2013-10-18 09:46:06 +02:00
|
|
|
|
bool GemReward(GemRewardToken token);
|
2013-08-27 17:14:08 +02:00
|
|
|
|
void ApplySalesPackage(SalesPackage salesPackage, int accountId, decimal gross, decimal fee);
|
|
|
|
|
Account Login(LoginRequestToken loginToken);
|
|
|
|
|
void Logout(string name);
|
2014-11-17 23:06:38 +01:00
|
|
|
|
bool ApplyKits(string name);
|
2013-08-27 17:14:08 +02:00
|
|
|
|
|
|
|
|
|
PunishmentResponse Punish(PunishToken punish);
|
|
|
|
|
PunishmentResponse RemovePunishment(RemovePunishmentToken ban);
|
|
|
|
|
|
|
|
|
|
string PurchaseGameSalesPackage(PurchaseToken token);
|
|
|
|
|
bool AccountExists(string name);
|
|
|
|
|
void SaveCustomBuild(CustomBuildToken token);
|
|
|
|
|
void Ignore(string accountName, string ignoredPlayer);
|
|
|
|
|
void RemoveIgnore(string accountName, string ignoredPlayer);
|
|
|
|
|
string PurchaseUnknownSalesPackage(UnknownPurchaseToken token);
|
|
|
|
|
string UpdateRank(RankUpdateToken token);
|
|
|
|
|
void RemoveBan(RemovePunishmentToken token);
|
2013-09-03 17:51:44 +02:00
|
|
|
|
void AddTask(UpdateTaskToken token);
|
2014-04-25 09:44:14 +02:00
|
|
|
|
|
|
|
|
|
void UpdateAccountUUIDs(List<AccountNameToken> tokens);
|
2014-08-08 09:05:58 +02:00
|
|
|
|
|
|
|
|
|
bool CoinReward(GemRewardToken token);
|
2014-08-20 03:36:23 +02:00
|
|
|
|
|
2014-08-21 22:55:09 +02:00
|
|
|
|
ClientToken GetAccountByUUID(string uuid);
|
2013-08-27 17:14:08 +02:00
|
|
|
|
}
|
|
|
|
|
}
|