andrebaltieri / Flunt

Validations and Notifications
https://github.com/andrebaltieri/flunt
MIT License
626 stars 162 forks source link

Update Wiki #86

Closed AlanNunes closed 3 years ago

AlanNunes commented 3 years ago

The contents in Wiki are out of date. The sample 0.3 Notifications is not working in latest versions.

ErickMaia commented 3 years ago

I'm stuck with the same problem.

andrebaltieri commented 3 years ago

Hi, you just change from:

public class MyClass : Notifiable {

to

public class MyClass : Notifiable<Notification> {

Where Notification is the base notification class, which contains two properties, Key and Message. You can create your custom notification class and use it here also.

Also there`s a sample on the root folder of this repo: https://github.com/andrebaltieri/Flunt/tree/main/Flunt.Samples

ErickMaia commented 3 years ago

Thank you, @andrebaltieri.