mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
Blazor server and client apps. With data service mocks
This commit is contained in:
1 parent
1fa0b03555
commit
a0ad7ca395
68 files changed
+1893
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WotBlitzStatisticsPro.Common;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
|
||||
namespace WotBlitzStatisticsPro.UI.Services
|
||||
{
|
||||
public class AccountsSearchService : IAccountsSearchService
|
||||
{
|
||||
public Task<AccountsSearchResult> FindAccounts(string nick, int count, int from = 0)
|
||||
{
|
||||
var result = new Dictionary<long, string>();
|
||||
|
||||
result[424242] = "First acc";
|
||||
result[434242] = "Second acc";
|
||||
result[424342] = "Third acc";
|
||||
result[424243] = "Fourth acc";
|
||||
result[434343] = "Fifth acc";
|
||||
|
||||
return Task.FromResult(new AccountsSearchResult
|
||||
{
|
||||
Accounts = result,
|
||||
TotalAccountsCount = result.Count
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user