forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServerService.cs
More file actions
42 lines (35 loc) · 1.08 KB
/
Copy pathServerService.cs
File metadata and controls
42 lines (35 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Collections.Generic;
using L2dotNET.DataContracts;
using L2dotNET.Repositories.Contracts;
using L2dotNET.Services.Contracts;
namespace L2dotNET.Services
{
public class ServerService : IServerService
{
private readonly IUnitOfWork _unitOfWork;
public ServerService(IUnitOfWork unitOfWork)
{
_unitOfWork = unitOfWork;
}
public List<ServerContract> GetServerList()
{
return _unitOfWork.ServerRepository.GetServerList();
}
public List<int> GetPlayersObjectIdList()
{
return _unitOfWork.ServerRepository.GetPlayersObjectIdList();
}
public List<AnnouncementContract> GetAnnouncementsList()
{
return _unitOfWork.ServerRepository.GetAnnouncementsList();
}
public bool CheckDatabaseQuery()
{
return _unitOfWork.ServerRepository.CheckDatabaseQuery();
}
public List<SpawnlistContract> GetAllSpawns()
{
return _unitOfWork.ServerRepository.GetAllSpawns();
}
}
}