Skip methods we can't use anyway
[ldk-java] / src / main / java / org / ldk / structs / ChannelMessageHandler.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4
5 import org.ldk.enums.*;
6
7 public class ChannelMessageHandler extends CommonBase {
8         ChannelMessageHandler(Object _dummy, long ptr) { super(ptr); }
9         public ChannelMessageHandler(bindings.LDKChannelMessageHandler arg, bindings.LDKMessageSendEventsProvider MessageSendEventsProvider) {
10                 super(bindings.LDKChannelMessageHandler_new(arg, MessageSendEventsProvider));
11                 this.ptrs_to.add(arg);
12         }
13         @Override @SuppressWarnings("deprecation")
14         protected void finalize() throws Throwable {
15                 bindings.ChannelMessageHandler_free(ptr); super.finalize();
16         }
17
18         // Skipped ChannelMessageHandler_call_handle_open_channel
19         // Skipped ChannelMessageHandler_call_handle_accept_channel
20         public void call_handle_funding_created(byte[] their_node_id, FundingCreated msg) {
21                 bindings.ChannelMessageHandler_call_handle_funding_created(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
22                 this.ptrs_to.add(msg);
23         }
24
25         public void call_handle_funding_signed(byte[] their_node_id, FundingSigned msg) {
26                 bindings.ChannelMessageHandler_call_handle_funding_signed(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
27                 this.ptrs_to.add(msg);
28         }
29
30         public void call_handle_funding_locked(byte[] their_node_id, FundingLocked msg) {
31                 bindings.ChannelMessageHandler_call_handle_funding_locked(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
32                 this.ptrs_to.add(msg);
33         }
34
35         public void call_handle_shutdown(byte[] their_node_id, Shutdown msg) {
36                 bindings.ChannelMessageHandler_call_handle_shutdown(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
37                 this.ptrs_to.add(msg);
38         }
39
40         public void call_handle_closing_signed(byte[] their_node_id, ClosingSigned msg) {
41                 bindings.ChannelMessageHandler_call_handle_closing_signed(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
42                 this.ptrs_to.add(msg);
43         }
44
45         public void call_handle_update_add_htlc(byte[] their_node_id, UpdateAddHTLC msg) {
46                 bindings.ChannelMessageHandler_call_handle_update_add_htlc(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
47                 this.ptrs_to.add(msg);
48         }
49
50         public void call_handle_update_fulfill_htlc(byte[] their_node_id, UpdateFulfillHTLC msg) {
51                 bindings.ChannelMessageHandler_call_handle_update_fulfill_htlc(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
52                 this.ptrs_to.add(msg);
53         }
54
55         public void call_handle_update_fail_htlc(byte[] their_node_id, UpdateFailHTLC msg) {
56                 bindings.ChannelMessageHandler_call_handle_update_fail_htlc(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
57                 this.ptrs_to.add(msg);
58         }
59
60         public void call_handle_update_fail_malformed_htlc(byte[] their_node_id, UpdateFailMalformedHTLC msg) {
61                 bindings.ChannelMessageHandler_call_handle_update_fail_malformed_htlc(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
62                 this.ptrs_to.add(msg);
63         }
64
65         public void call_handle_commitment_signed(byte[] their_node_id, CommitmentSigned msg) {
66                 bindings.ChannelMessageHandler_call_handle_commitment_signed(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
67                 this.ptrs_to.add(msg);
68         }
69
70         public void call_handle_revoke_and_ack(byte[] their_node_id, RevokeAndACK msg) {
71                 bindings.ChannelMessageHandler_call_handle_revoke_and_ack(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
72                 this.ptrs_to.add(msg);
73         }
74
75         public void call_handle_update_fee(byte[] their_node_id, UpdateFee msg) {
76                 bindings.ChannelMessageHandler_call_handle_update_fee(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
77                 this.ptrs_to.add(msg);
78         }
79
80         public void call_handle_announcement_signatures(byte[] their_node_id, AnnouncementSignatures msg) {
81                 bindings.ChannelMessageHandler_call_handle_announcement_signatures(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
82                 this.ptrs_to.add(msg);
83         }
84
85         public void call_peer_disconnected(byte[] their_node_id, boolean no_connection_possible) {
86                 bindings.ChannelMessageHandler_call_peer_disconnected(this.ptr, their_node_id, no_connection_possible);
87         }
88
89         public void call_peer_connected(byte[] their_node_id, Init msg) {
90                 bindings.ChannelMessageHandler_call_peer_connected(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
91                 this.ptrs_to.add(msg);
92         }
93
94         public void call_handle_channel_reestablish(byte[] their_node_id, ChannelReestablish msg) {
95                 bindings.ChannelMessageHandler_call_handle_channel_reestablish(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
96                 this.ptrs_to.add(msg);
97         }
98
99         public void call_handle_error(byte[] their_node_id, ErrorMessage msg) {
100                 bindings.ChannelMessageHandler_call_handle_error(this.ptr, their_node_id, msg == null ? 0 : msg.ptr & ~1);
101                 this.ptrs_to.add(msg);
102         }
103
104 }