LEFT | RIGHT |
1 #include <emscripten/bind.h> | |
2 | |
3 #include "InvalidFilter.h" | 1 #include "InvalidFilter.h" |
4 | 2 |
5 InvalidFilter::InvalidFilter(const std::wstring& text, | 3 InvalidFilter::InvalidFilter(const String& text, |
6 const std::wstring& reason) | 4 const String& reason) |
7 : Filter(text), reason(reason) | 5 : Filter(Type::INVALID, text), mReason(reason) |
8 { | 6 { |
9 } | 7 } |
10 | |
11 Filter::Type InvalidFilter::GetType() const | |
12 { | |
13 return Type::INVALID; | |
14 } | |
15 | |
16 EMSCRIPTEN_BINDINGS(invalidfilter) | |
17 { | |
18 using namespace emscripten; | |
19 class_<InvalidFilter,base<Filter>>("InvalidFilter") | |
20 .property("reason", &InvalidFilter::GetReason); | |
21 } | |
LEFT | RIGHT |