-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new events for Grand.Web - ChangeCurrency/ChangeLanguage/ChangeSt…
…ore/ChangeTaxType/ChangeTheme
- Loading branch information
1 parent
597cb0c
commit 51a7e8c
Showing
6 changed files
with
127 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Grand.Domain.Customers; | ||
using Grand.Domain.Directory; | ||
using MediatR; | ||
|
||
namespace Grand.Web.Events | ||
{ | ||
public class ChangeCurrencyEvent : INotification | ||
{ | ||
public Customer Customer { get; private set; } | ||
public Currency Currency { get; private set; } | ||
|
||
public ChangeCurrencyEvent(Customer customer, Currency currency) | ||
{ | ||
Customer = customer; | ||
Currency = currency; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Grand.Domain.Customers; | ||
using Grand.Domain.Localization; | ||
using MediatR; | ||
|
||
namespace Grand.Web.Events | ||
{ | ||
public class ChangeLanguageEvent : INotification | ||
{ | ||
public Customer Customer { get; private set; } | ||
public Language Language { get; private set; } | ||
|
||
public ChangeLanguageEvent(Customer customer, Language language) | ||
{ | ||
Customer = customer; | ||
Language = language; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Grand.Domain.Customers; | ||
using Grand.Domain.Stores; | ||
using MediatR; | ||
|
||
namespace Grand.Web.Events | ||
{ | ||
public class ChangeStoreEvent : INotification | ||
{ | ||
public Customer Customer { get; private set; } | ||
public Store Store { get; private set; } | ||
|
||
public ChangeStoreEvent(Customer customer, Store store) | ||
{ | ||
Customer = customer; | ||
Store = store; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Grand.Domain.Customers; | ||
using Grand.Domain.Tax; | ||
using MediatR; | ||
|
||
namespace Grand.Web.Events | ||
{ | ||
public class ChangeTaxTypeEvent : INotification | ||
{ | ||
public Customer Customer { get; private set; } | ||
public TaxDisplayType TaxDisplayType { get; private set; } | ||
|
||
public ChangeTaxTypeEvent(Customer customer, TaxDisplayType taxDisplayType) | ||
{ | ||
Customer = customer; | ||
TaxDisplayType = taxDisplayType; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Grand.Domain.Customers; | ||
using MediatR; | ||
|
||
namespace Grand.Web.Events | ||
{ | ||
public class ChangeThemeEvent : INotification | ||
{ | ||
public Customer Customer { get; private set; } | ||
public string ThemeName { get; private set; } | ||
|
||
public ChangeThemeEvent(Customer customer, string themeName) | ||
{ | ||
Customer = customer; | ||
ThemeName = themeName; | ||
} | ||
} | ||
} |