]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/IgnoringMessageHandler.ts
Use uint64_t instead of long for pointers represented in C
[ldk-java] / ts / structs / IgnoringMessageHandler.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class IgnoringMessageHandler extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.IgnoringMessageHandler_free(this.ptr);
19                     }
20                 }
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);
25                 return ret_hu_conv;
26         }
27
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);
32                 return ret_hu_conv;
33         }
34
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);
39                 return ret_hu_conv;
40         }
41
42 }