From 4f4994333248aeafdfe356177a1b132aa6338599 Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Sat, 1 Apr 2023 12:11:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=B0=D1=81=D1=81=D0=B8=D1=80?= =?UTF-8?q?=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/IAccountModel.cs | 21 +++++++++++++++++++ .../Models/ICashWithdrawal.cs | 17 +++++++++++++++ .../Models/ICashierModel.cs | 2 +- .../Models/IMoneyTransferModel.cs | 9 +++++++- 4 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs create mode 100644 BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs new file mode 100644 index 0000000..fbad206 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IAccountModel.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptDataModels.Models +{ + public interface IAccountModel : IId + { + int CashierId { get; } + + int ClientId { get; } + + string PasswordAccount { get; } + + double Balance { get; } + + DateTime DateOpen { get; } + } +} diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs new file mode 100644 index 0000000..52acbb6 --- /dev/null +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashWithdrawal.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BankYouBankruptDataModels.Models +{ + public interface ICashWithdrawal : IId + { + int AccountId { get; } + + int Sum { get; } + + DateTime DateOperation { get; } + } +} diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs index 51f7a03..99bee4b 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/ICashierModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { - public interface ICashierModel + public interface ICashierModel : IId { string Password { get; } diff --git a/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs b/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs index c2fe522..9d45f2f 100644 --- a/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs +++ b/BankYouBankrupt/BankYouBankruptDataModels/Models/IMoneyTransferModel.cs @@ -6,7 +6,14 @@ using System.Threading.Tasks; namespace BankYouBankruptDataModels.Models { - public interface IMoneyTransferModel + public interface IMoneyTransferModel : IId { + int Sum { get; } + + int AccountSenderId { get; } + + int AccountPayeeId { get; } + + DateTime DateOperation { get; } } }