-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathIDataService.cs
More file actions
24 lines (21 loc) · 944 Bytes
/
Copy pathIDataService.cs
File metadata and controls
24 lines (21 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using BusinessObjects.BusinessObjects;
namespace BusinessObjects;
public interface IDataService
{
object GetObjects(EntitiesEnum type, bool showRetired);
object GetChildObjects(EntitiesEnum parentType, EntitiesEnum childType, int parentKey, bool showRetired);
object GetObject(EntitiesEnum type, int id);
int InsertObject(EntitiesEnum type, string values);
int UpdateObject(EntitiesEnum type, int id, string values);
int DeleteObject(EntitiesEnum type, int id);
List<CurrencyInfo> GetCurrencies();
List<Wallet> GetWalletsState(DateTime forDate, bool showRetired);
string GetGlobalProp(string name);
void SetGlobalProp(string name, string value);
Person LoginPerson(string mail, string password);
void UpdateBalance(int TerminalId, decimal Balance, decimal Equity);
void SaveDeals(List<DealInfo> deals);
List<DealInfo> TodayDeals();
}