Merge pull request #2 from TheBlueMatt/main
[ldk-java] / ts / structs / Ping.ts
index 2cc1a913f6ea09dec8fd5849b68a3e35dc76f55c..f7054fe012ae08e2ec003add20f46ebc69e91716 100644 (file)
@@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Ping_free(this.ptr);
                     }
                 }
-       public Ping clone() {
-               number ret = bindings.Ping_clone(this.ptr);
-               const ret_hu_conv: Ping = new Ping(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
        public number get_ponglen() {
                number ret = bindings.Ping_get_ponglen(this.ptr);
                return ret;
@@ -50,6 +43,13 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret_hu_conv;
        }
 
+       public Ping clone() {
+               number ret = bindings.Ping_clone(this.ptr);
+               const ret_hu_conv: Ping = new Ping(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.Ping_write(this.ptr);
                return ret;