3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class IgnoringMessageHandler extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.IgnoringMessageHandler_free(this.ptr);
21 public static IgnoringMessageHandler constructor_new() {
22 number ret = bindings.IgnoringMessageHandler_new();
23 const ret_hu_conv: IgnoringMessageHandler = new IgnoringMessageHandler(null, ret);
24 ret_hu_conv.ptrs_to.add(ret_hu_conv);
28 public MessageSendEventsProvider as_MessageSendEventsProvider() {
29 number ret = bindings.IgnoringMessageHandler_as_MessageSendEventsProvider(this.ptr);
30 MessageSendEventsProvider ret_hu_conv = new MessageSendEventsProvider(null, ret);
31 ret_hu_conv.ptrs_to.add(this);
35 public RoutingMessageHandler as_RoutingMessageHandler() {
36 number ret = bindings.IgnoringMessageHandler_as_RoutingMessageHandler(this.ptr);
37 RoutingMessageHandler ret_hu_conv = new RoutingMessageHandler(null, ret);
38 ret_hu_conv.ptrs_to.add(this);
42 public CustomMessageReader as_CustomMessageReader() {
43 number ret = bindings.IgnoringMessageHandler_as_CustomMessageReader(this.ptr);
44 CustomMessageReader ret_hu_conv = new CustomMessageReader(null, ret);
45 ret_hu_conv.ptrs_to.add(this);
49 public CustomMessageHandler as_CustomMessageHandler() {
50 number ret = bindings.IgnoringMessageHandler_as_CustomMessageHandler(this.ptr);
51 CustomMessageHandler ret_hu_conv = new CustomMessageHandler(null, ret);
52 ret_hu_conv.ptrs_to.add(this);