IOrderCartWindowContract.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using OOO_WriteAndClear.DBModels;
  2. using OOO_WriteAndClear.MVP.Models.OrderFormerer;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OOO_WriteAndClear.MVP.MVPInterfaces
  9. {
  10. public interface IOrderCartWindowContract
  11. {
  12. public interface IView
  13. {
  14. public string OrderCostWithoutDiscount { set; }
  15. public string OrderDiscount { set; }
  16. public string OrderCostWithDiscount { set; }
  17. public ICollection<OrderProduct> OrderList { set; }
  18. }
  19. public interface IPresenter
  20. {
  21. Order CurrentOrder { get; }
  22. void SetCurrentOrderFormerer(OrderFormerer orderFormerer);
  23. void AddProductUnitIntoOrder(string productArticle);
  24. void RemoveProductUnitFromOrder(string productArticle);
  25. void RemoveProductFromOrder(string productArticle);
  26. ICollection<PickupPoint> GetAllPickupPoints();
  27. void AddOrderInSystem(PickupPoint selectedPickupPoint);
  28. }
  29. public interface IModel
  30. {
  31. public OrderFormerer OrderFormerer { get; set; }
  32. void AddProductUnitIntoOrder(string productArticle);
  33. void RemoveProductUnitFromOrder(string productArticle);
  34. void RemoveProductFromOrder(string productArticle);
  35. ICollection<PickupPoint> GetAllPickupPoints();
  36. void AddOrderInSystem(PickupPoint selectedPickupPoint);
  37. }
  38. }
  39. }