File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515#include " session/session_protocol.h"
1616#include " session/session_protocol.hpp"
1717
18+ namespace session ::nodeapi {
1819std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_PAYMENT_PROVIDER v);
1920std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_PAYMENT_STATUS v);
2021std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_PLAN v);
2122std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_USER_PRO_STATUS v);
2223std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_GET_PRO_STATUS_ERROR_REPORT v);
2324
24- namespace session ::nodeapi {
25-
2625class ProWrapper : public Napi ::ObjectWrap<ProWrapper> {
2726
2827 public:
Original file line number Diff line number Diff line change 11#include " pro/pro.hpp"
22
3+ namespace session ::nodeapi {
34std::string_view ProBackendEnumToString (SESSION_PRO_BACKEND_PAYMENT_PROVIDER v) {
45 switch (v) {
56 case SESSION_PRO_BACKEND_PAYMENT_PROVIDER_NIL: return " NIL" ;
@@ -57,4 +58,4 @@ std::string_view ProBackendEnumToString(SESSION_PRO_BACKEND_GET_PRO_STATUS_ERROR
5758 }
5859}
5960
60-
61+ }
You can’t perform that action at this time.
0 commit comments