]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/CounterpartyForwardingInfo.ts
Update auto-generated bindings to 0.0.102
[ldk-java] / ts / structs / CounterpartyForwardingInfo.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 CounterpartyForwardingInfo 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.CounterpartyForwardingInfo_free(this.ptr);
19                     }
20                 }
21         public number get_fee_base_msat() {
22                 number ret = bindings.CounterpartyForwardingInfo_get_fee_base_msat(this.ptr);
23                 return ret;
24         }
25
26         public void set_fee_base_msat(number val) {
27                 bindings.CounterpartyForwardingInfo_set_fee_base_msat(this.ptr, val);
28         }
29
30         public number get_fee_proportional_millionths() {
31                 number ret = bindings.CounterpartyForwardingInfo_get_fee_proportional_millionths(this.ptr);
32                 return ret;
33         }
34
35         public void set_fee_proportional_millionths(number val) {
36                 bindings.CounterpartyForwardingInfo_set_fee_proportional_millionths(this.ptr, val);
37         }
38
39         public number get_cltv_expiry_delta() {
40                 number ret = bindings.CounterpartyForwardingInfo_get_cltv_expiry_delta(this.ptr);
41                 return ret;
42         }
43
44         public void set_cltv_expiry_delta(number val) {
45                 bindings.CounterpartyForwardingInfo_set_cltv_expiry_delta(this.ptr, val);
46         }
47
48         public static CounterpartyForwardingInfo constructor_new(number fee_base_msat_arg, number fee_proportional_millionths_arg, number cltv_expiry_delta_arg) {
49                 number ret = bindings.CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
50                 const ret_hu_conv: CounterpartyForwardingInfo = new CounterpartyForwardingInfo(null, ret);
51                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
52                 return ret_hu_conv;
53         }
54
55         public CounterpartyForwardingInfo clone() {
56                 number ret = bindings.CounterpartyForwardingInfo_clone(this.ptr);
57                 const ret_hu_conv: CounterpartyForwardingInfo = new CounterpartyForwardingInfo(null, ret);
58                 ret_hu_conv.ptrs_to.add(this);
59                 return ret_hu_conv;
60         }
61
62 }