IAuthorizationContract.cs 685 B

1234567891011121314151617181920212223242526272829
  1. using OOO_WriteAndClear.DBModels;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OOO_WriteAndClear.MVP.MVPInterfaces
  8. {
  9. public interface IAuthorizationContract
  10. {
  11. public interface IView
  12. {
  13. public void ShowFailureAuthorizeMessage();
  14. public void LetInAuthorizedUser(User user);
  15. }
  16. public interface IPresenter
  17. {
  18. public void CheckTheUser(string login, string password);
  19. }
  20. public interface IModel
  21. {
  22. public User? AuthorizationUserInSystem(string login, string password);
  23. }
  24. }
  25. }