]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/IgnoringMessageHandler.ts
Merge pull request #56 from TheBlueMatt/main
[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         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);
46                 return ret_hu_conv;
47         }
48
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);
53                 return ret_hu_conv;
54         }
55
56 }