slidge-whatsapp 0.2.7__cp313-cp313-manylinux_2_36_aarch64.whl → 0.3.0b0__cp313-cp313-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/contact.py +13 -3
- slidge_whatsapp/event.go +107 -37
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.h +218 -201
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +164 -150
- slidge_whatsapp/generated/whatsapp.c +1750 -1478
- slidge_whatsapp/generated/whatsapp.go +1307 -1196
- slidge_whatsapp/generated/whatsapp.py +1371 -1246
- slidge_whatsapp/generated/whatsapp_go.h +218 -201
- slidge_whatsapp/go.mod +18 -15
- slidge_whatsapp/go.sum +38 -26
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +1 -1
- slidge_whatsapp/session.go +33 -16
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +15 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +97 -25
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +22 -10
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +10 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +30 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8532 -11526
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +132 -438
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +225 -73
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +21 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +884 -441
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +40 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +8 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +12 -8
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +10 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
- slidge_whatsapp/vendor/modules.txt +43 -23
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +208 -161
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +0 -0
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.13.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.13.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.13.7-linux-aarch64-gnu/include/python3.13" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.13.7-linux-aarch64-gnu/lib" "-lpython3.13" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -1381,6 +1381,18 @@ func handleFromPtr_Ptr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
1381
1381
|
return CGoHandle(gopyh.Register("*whatsapp.Location", p))
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
|
+
// Converters for pointer handles for type: *whatsapp.LoggedOut
|
|
1385
|
+
func ptrFromHandle_Ptr_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
1386
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.LoggedOut")
|
|
1387
|
+
if p == nil {
|
|
1388
|
+
return nil
|
|
1389
|
+
}
|
|
1390
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
1391
|
+
}
|
|
1392
|
+
func handleFromPtr_Ptr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
1393
|
+
return CGoHandle(gopyh.Register("*whatsapp.LoggedOut", p))
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1384
1396
|
// Converters for pointer handles for type: *whatsapp.Message
|
|
1385
1397
|
func ptrFromHandle_Ptr_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1386
1398
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Message")
|
|
@@ -2025,6 +2037,18 @@ func handleFromPtr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
2025
2037
|
return CGoHandle(gopyh.Register("whatsapp.Location", p))
|
|
2026
2038
|
}
|
|
2027
2039
|
|
|
2040
|
+
// Converters for non-pointer handles for type: whatsapp.LoggedOut
|
|
2041
|
+
func ptrFromHandle_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
2042
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.LoggedOut")
|
|
2043
|
+
if p == nil {
|
|
2044
|
+
return nil
|
|
2045
|
+
}
|
|
2046
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
2047
|
+
}
|
|
2048
|
+
func handleFromPtr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
2049
|
+
return CGoHandle(gopyh.Register("whatsapp.LoggedOut", p))
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2028
2052
|
// Converters for non-pointer handles for type: whatsapp.Message
|
|
2029
2053
|
func ptrFromHandle_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
2030
2054
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Message")
|
|
@@ -2115,808 +2139,791 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2142
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2119
2143
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
//export whatsapp_Album_IsAlbum_Get
|
|
2126
|
-
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2127
|
-
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2128
|
-
return boolGoToPy(op.IsAlbum)
|
|
2144
|
+
//export whatsapp_Gateway_CTor
|
|
2145
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2146
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2129
2147
|
}
|
|
2130
2148
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2149
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2150
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2152
|
+
return C.CString(op.DBPath)
|
|
2135
2153
|
}
|
|
2136
2154
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
|
|
2155
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2156
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2158
|
+
op.DBPath = C.GoString(val)
|
|
2141
2159
|
}
|
|
2142
2160
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2161
|
+
//export whatsapp_Gateway_Name_Get
|
|
2162
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2164
|
+
return C.CString(op.Name)
|
|
2147
2165
|
}
|
|
2148
2166
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
|
|
2167
|
+
//export whatsapp_Gateway_Name_Set
|
|
2168
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2170
|
+
op.Name = C.GoString(val)
|
|
2153
2171
|
}
|
|
2154
2172
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2173
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2174
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2176
|
+
return C.CString(op.LogLevel)
|
|
2159
2177
|
}
|
|
2160
2178
|
|
|
2161
|
-
//
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2179
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2180
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2182
|
+
op.LogLevel = C.GoString(val)
|
|
2166
2183
|
}
|
|
2167
2184
|
|
|
2168
|
-
//export
|
|
2169
|
-
func
|
|
2170
|
-
op :=
|
|
2171
|
-
return C.CString(op.
|
|
2185
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2186
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2187
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2188
|
+
return C.CString(op.TempDir)
|
|
2172
2189
|
}
|
|
2173
2190
|
|
|
2174
|
-
//export
|
|
2175
|
-
func
|
|
2176
|
-
op :=
|
|
2177
|
-
op.
|
|
2191
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2192
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2193
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2194
|
+
op.TempDir = C.GoString(val)
|
|
2178
2195
|
}
|
|
2179
2196
|
|
|
2180
|
-
//export
|
|
2181
|
-
func
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2197
|
+
//export whatsapp_Gateway_Init
|
|
2198
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2199
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2200
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2201
|
+
if __err != nil {
|
|
2202
|
+
return errorGoToPy(nil)
|
|
2203
|
+
}
|
|
2204
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2185
2205
|
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2206
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2207
|
+
if __err != nil {
|
|
2208
|
+
estr := C.CString(__err.Error())
|
|
2209
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2210
|
+
return estr
|
|
2211
|
+
}
|
|
2212
|
+
return C.CString("")
|
|
2190
2213
|
}
|
|
2191
2214
|
|
|
2192
|
-
//
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2215
|
+
//export whatsapp_Gateway_NewSession
|
|
2216
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2217
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2218
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2219
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2220
|
+
if __err != nil {
|
|
2221
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2222
|
+
}
|
|
2223
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2198
2224
|
|
|
2199
|
-
//export whatsapp_Message_Kind_Get
|
|
2200
|
-
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2201
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2202
|
-
return C.longlong(int(op.Kind))
|
|
2203
2225
|
}
|
|
2204
2226
|
|
|
2205
|
-
//export
|
|
2206
|
-
func
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2227
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2228
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2229
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2230
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2231
|
+
if __err != nil {
|
|
2232
|
+
return errorGoToPy(nil)
|
|
2233
|
+
}
|
|
2234
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2210
2235
|
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2236
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2237
|
+
if __err != nil {
|
|
2238
|
+
estr := C.CString(__err.Error())
|
|
2239
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2240
|
+
return estr
|
|
2241
|
+
}
|
|
2242
|
+
return C.CString("")
|
|
2215
2243
|
}
|
|
2216
2244
|
|
|
2217
|
-
//
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2245
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2246
|
+
//
|
|
2247
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2248
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2249
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2221
2250
|
}
|
|
2222
2251
|
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
op :=
|
|
2252
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2253
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2254
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2226
2255
|
return C.CString(op.JID)
|
|
2227
2256
|
}
|
|
2228
2257
|
|
|
2229
|
-
//export
|
|
2230
|
-
func
|
|
2231
|
-
op :=
|
|
2258
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2259
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2260
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2232
2261
|
op.JID = C.GoString(val)
|
|
2233
2262
|
}
|
|
2234
2263
|
|
|
2235
|
-
//export
|
|
2236
|
-
func
|
|
2237
|
-
op :=
|
|
2238
|
-
return C.CString(op.
|
|
2264
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
2265
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
2266
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2267
|
+
return C.CString(op.Nickname)
|
|
2239
2268
|
}
|
|
2240
2269
|
|
|
2241
|
-
//export
|
|
2242
|
-
func
|
|
2243
|
-
op :=
|
|
2244
|
-
op.
|
|
2270
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
2271
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2272
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2273
|
+
op.Nickname = C.GoString(val)
|
|
2245
2274
|
}
|
|
2246
2275
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
op :=
|
|
2250
|
-
return C.
|
|
2276
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2277
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2278
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2279
|
+
return C.longlong(int(op.Affiliation))
|
|
2251
2280
|
}
|
|
2252
2281
|
|
|
2253
|
-
//export
|
|
2254
|
-
func
|
|
2255
|
-
op :=
|
|
2256
|
-
op.
|
|
2282
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2283
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2284
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2285
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2257
2286
|
}
|
|
2258
2287
|
|
|
2259
|
-
//export
|
|
2260
|
-
func
|
|
2261
|
-
op :=
|
|
2262
|
-
return C.
|
|
2288
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2289
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2290
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2291
|
+
return C.longlong(int(op.Action))
|
|
2263
2292
|
}
|
|
2264
2293
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
op :=
|
|
2268
|
-
op.
|
|
2294
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2295
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2296
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2297
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2269
2298
|
}
|
|
2270
2299
|
|
|
2271
|
-
//
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2300
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2301
|
+
//
|
|
2302
|
+
//export whatsapp_Preview_CTor
|
|
2303
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2304
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2275
2305
|
}
|
|
2276
2306
|
|
|
2277
|
-
//export
|
|
2278
|
-
func
|
|
2279
|
-
op :=
|
|
2280
|
-
op.
|
|
2307
|
+
//export whatsapp_Preview_Kind_Get
|
|
2308
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2309
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2310
|
+
return C.longlong(int(op.Kind))
|
|
2281
2311
|
}
|
|
2282
2312
|
|
|
2283
|
-
//export
|
|
2284
|
-
func
|
|
2285
|
-
op :=
|
|
2286
|
-
|
|
2313
|
+
//export whatsapp_Preview_Kind_Set
|
|
2314
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2315
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2316
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2287
2317
|
}
|
|
2288
2318
|
|
|
2289
|
-
//export
|
|
2290
|
-
func
|
|
2291
|
-
op :=
|
|
2292
|
-
op.
|
|
2319
|
+
//export whatsapp_Preview_URL_Get
|
|
2320
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2322
|
+
return C.CString(op.URL)
|
|
2293
2323
|
}
|
|
2294
2324
|
|
|
2295
|
-
//export
|
|
2296
|
-
func
|
|
2297
|
-
op :=
|
|
2298
|
-
|
|
2325
|
+
//export whatsapp_Preview_URL_Set
|
|
2326
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2327
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2328
|
+
op.URL = C.GoString(val)
|
|
2299
2329
|
}
|
|
2300
2330
|
|
|
2301
|
-
//export
|
|
2302
|
-
func
|
|
2303
|
-
op :=
|
|
2304
|
-
op.
|
|
2331
|
+
//export whatsapp_Preview_Title_Get
|
|
2332
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2333
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2334
|
+
return C.CString(op.Title)
|
|
2305
2335
|
}
|
|
2306
2336
|
|
|
2307
|
-
//export
|
|
2308
|
-
func
|
|
2309
|
-
op :=
|
|
2310
|
-
|
|
2337
|
+
//export whatsapp_Preview_Title_Set
|
|
2338
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2339
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2340
|
+
op.Title = C.GoString(val)
|
|
2311
2341
|
}
|
|
2312
2342
|
|
|
2313
|
-
//export
|
|
2314
|
-
func
|
|
2315
|
-
op :=
|
|
2316
|
-
|
|
2343
|
+
//export whatsapp_Preview_Description_Get
|
|
2344
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2345
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2346
|
+
return C.CString(op.Description)
|
|
2317
2347
|
}
|
|
2318
2348
|
|
|
2319
|
-
//export
|
|
2320
|
-
func
|
|
2321
|
-
op :=
|
|
2322
|
-
|
|
2349
|
+
//export whatsapp_Preview_Description_Set
|
|
2350
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2351
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2352
|
+
op.Description = C.GoString(val)
|
|
2323
2353
|
}
|
|
2324
2354
|
|
|
2325
|
-
//export
|
|
2326
|
-
func
|
|
2327
|
-
op :=
|
|
2328
|
-
op.
|
|
2355
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2356
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2357
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2358
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2329
2359
|
}
|
|
2330
2360
|
|
|
2331
|
-
//export
|
|
2332
|
-
func
|
|
2333
|
-
op :=
|
|
2334
|
-
|
|
2361
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2362
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2363
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2364
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2335
2365
|
}
|
|
2336
2366
|
|
|
2337
|
-
//
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2367
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2368
|
+
//
|
|
2369
|
+
//export whatsapp_ChatState_CTor
|
|
2370
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2371
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2341
2372
|
}
|
|
2342
2373
|
|
|
2343
|
-
//export
|
|
2344
|
-
func
|
|
2345
|
-
op :=
|
|
2346
|
-
return
|
|
2374
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2375
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2376
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2377
|
+
return C.longlong(int(op.Kind))
|
|
2347
2378
|
}
|
|
2348
2379
|
|
|
2349
|
-
//export
|
|
2350
|
-
func
|
|
2351
|
-
op :=
|
|
2352
|
-
op.
|
|
2380
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2381
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2382
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2383
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2353
2384
|
}
|
|
2354
2385
|
|
|
2355
|
-
//export
|
|
2356
|
-
func
|
|
2357
|
-
op :=
|
|
2358
|
-
return
|
|
2386
|
+
//export whatsapp_ChatState_JID_Get
|
|
2387
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2388
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2389
|
+
return C.CString(op.JID)
|
|
2359
2390
|
}
|
|
2360
2391
|
|
|
2361
|
-
//export
|
|
2362
|
-
func
|
|
2363
|
-
op :=
|
|
2364
|
-
op.
|
|
2392
|
+
//export whatsapp_ChatState_JID_Set
|
|
2393
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2394
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2395
|
+
op.JID = C.GoString(val)
|
|
2365
2396
|
}
|
|
2366
2397
|
|
|
2367
|
-
//export
|
|
2368
|
-
func
|
|
2369
|
-
op :=
|
|
2370
|
-
return
|
|
2398
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2399
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2400
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2401
|
+
return C.CString(op.GroupJID)
|
|
2371
2402
|
}
|
|
2372
2403
|
|
|
2373
|
-
//export
|
|
2374
|
-
func
|
|
2375
|
-
op :=
|
|
2376
|
-
op.
|
|
2404
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2405
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2406
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2407
|
+
op.GroupJID = C.GoString(val)
|
|
2377
2408
|
}
|
|
2378
2409
|
|
|
2379
|
-
//
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2410
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2411
|
+
//
|
|
2412
|
+
//export whatsapp_EventPayload_CTor
|
|
2413
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2414
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2383
2415
|
}
|
|
2384
2416
|
|
|
2385
|
-
//export
|
|
2386
|
-
func
|
|
2387
|
-
op :=
|
|
2388
|
-
op.
|
|
2417
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2418
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2419
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2420
|
+
return C.CString(op.QRCode)
|
|
2389
2421
|
}
|
|
2390
2422
|
|
|
2391
|
-
//export
|
|
2392
|
-
func
|
|
2393
|
-
op :=
|
|
2394
|
-
|
|
2423
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2424
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2425
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2426
|
+
op.QRCode = C.GoString(val)
|
|
2395
2427
|
}
|
|
2396
2428
|
|
|
2397
|
-
//export
|
|
2398
|
-
func
|
|
2399
|
-
op :=
|
|
2400
|
-
op.
|
|
2429
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2430
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2431
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2432
|
+
return C.CString(op.PairDeviceID)
|
|
2401
2433
|
}
|
|
2402
2434
|
|
|
2403
|
-
//export
|
|
2404
|
-
func
|
|
2405
|
-
op :=
|
|
2406
|
-
|
|
2435
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2436
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2437
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2438
|
+
op.PairDeviceID = C.GoString(val)
|
|
2407
2439
|
}
|
|
2408
2440
|
|
|
2409
|
-
//export
|
|
2410
|
-
func
|
|
2411
|
-
op :=
|
|
2412
|
-
op.
|
|
2441
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2442
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2443
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2444
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2413
2445
|
}
|
|
2414
2446
|
|
|
2415
|
-
//export
|
|
2416
|
-
func
|
|
2417
|
-
op :=
|
|
2418
|
-
|
|
2447
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2448
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2449
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2450
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2419
2451
|
}
|
|
2420
2452
|
|
|
2421
|
-
//export
|
|
2422
|
-
func
|
|
2423
|
-
op :=
|
|
2424
|
-
op.
|
|
2453
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2454
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2455
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2456
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2425
2457
|
}
|
|
2426
2458
|
|
|
2427
|
-
//
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2459
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2460
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2461
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2462
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2432
2463
|
}
|
|
2433
2464
|
|
|
2434
|
-
//export
|
|
2435
|
-
func
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
return errorGoToPy(nil)
|
|
2440
|
-
}
|
|
2441
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2465
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2466
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2467
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2468
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2469
|
+
}
|
|
2442
2470
|
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
return estr
|
|
2448
|
-
}
|
|
2449
|
-
return C.CString("")
|
|
2471
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2472
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2473
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2474
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2450
2475
|
}
|
|
2451
2476
|
|
|
2452
|
-
//export
|
|
2453
|
-
func
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
return errorGoToPy(nil)
|
|
2458
|
-
}
|
|
2459
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2477
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2478
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2479
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2480
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2481
|
+
}
|
|
2460
2482
|
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
return estr
|
|
2466
|
-
}
|
|
2467
|
-
return C.CString("")
|
|
2483
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2484
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2485
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2486
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2468
2487
|
}
|
|
2469
2488
|
|
|
2470
|
-
//export
|
|
2471
|
-
func
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
return errorGoToPy(nil)
|
|
2476
|
-
}
|
|
2477
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2489
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2490
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2491
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2492
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2493
|
+
}
|
|
2478
2494
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
return estr
|
|
2484
|
-
}
|
|
2485
|
-
return C.CString("")
|
|
2495
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2496
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2497
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2498
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2486
2499
|
}
|
|
2487
2500
|
|
|
2488
|
-
//export
|
|
2489
|
-
func
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
return C.CString("")
|
|
2494
|
-
}
|
|
2495
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2501
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2502
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2503
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2504
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2505
|
+
}
|
|
2496
2506
|
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
C.free(unsafe.Pointer(estr))
|
|
2502
|
-
return C.CString("")
|
|
2503
|
-
}
|
|
2504
|
-
return C.CString(cret)
|
|
2507
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2508
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2509
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2510
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2505
2511
|
}
|
|
2506
2512
|
|
|
2507
|
-
//export
|
|
2508
|
-
func
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
return errorGoToPy(nil)
|
|
2513
|
-
}
|
|
2514
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2513
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2514
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2515
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2516
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2517
|
+
}
|
|
2515
2518
|
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
return estr
|
|
2521
|
-
}
|
|
2522
|
-
return C.CString("")
|
|
2519
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2520
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2521
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2522
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
|
-
//export
|
|
2526
|
-
func
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
if __err != nil {
|
|
2531
|
-
return C.CString("")
|
|
2532
|
-
}
|
|
2533
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2525
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2526
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2527
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2528
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2529
|
+
}
|
|
2534
2530
|
|
|
2531
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2532
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2533
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2534
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
|
-
//export
|
|
2538
|
-
func
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
return errorGoToPy(nil)
|
|
2543
|
-
}
|
|
2544
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2537
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2538
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2539
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2540
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2541
|
+
}
|
|
2545
2542
|
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
return estr
|
|
2551
|
-
}
|
|
2552
|
-
return C.CString("")
|
|
2543
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2544
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2545
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2546
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2553
2547
|
}
|
|
2554
2548
|
|
|
2555
|
-
//
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}
|
|
2562
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2549
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2550
|
+
//
|
|
2551
|
+
//export whatsapp_Group_CTor
|
|
2552
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2553
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2554
|
+
}
|
|
2563
2555
|
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
return estr
|
|
2569
|
-
}
|
|
2570
|
-
return C.CString("")
|
|
2556
|
+
//export whatsapp_Group_JID_Get
|
|
2557
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2558
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2559
|
+
return C.CString(op.JID)
|
|
2571
2560
|
}
|
|
2572
2561
|
|
|
2573
|
-
//export
|
|
2574
|
-
func
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
return errorGoToPy(nil)
|
|
2579
|
-
}
|
|
2580
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2562
|
+
//export whatsapp_Group_JID_Set
|
|
2563
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2564
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2565
|
+
op.JID = C.GoString(val)
|
|
2566
|
+
}
|
|
2581
2567
|
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
return estr
|
|
2587
|
-
}
|
|
2588
|
-
return C.CString("")
|
|
2568
|
+
//export whatsapp_Group_Name_Get
|
|
2569
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2570
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2571
|
+
return C.CString(op.Name)
|
|
2589
2572
|
}
|
|
2590
2573
|
|
|
2591
|
-
//export
|
|
2592
|
-
func
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2597
|
-
}
|
|
2598
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2574
|
+
//export whatsapp_Group_Name_Set
|
|
2575
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2576
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2577
|
+
op.Name = C.GoString(val)
|
|
2578
|
+
}
|
|
2599
2579
|
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
C.free(unsafe.Pointer(estr))
|
|
2605
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2606
|
-
}
|
|
2607
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2580
|
+
//export whatsapp_Group_Subject_Get
|
|
2581
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2582
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2583
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2608
2584
|
}
|
|
2609
2585
|
|
|
2610
|
-
//export
|
|
2611
|
-
func
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2616
|
-
}
|
|
2617
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2586
|
+
//export whatsapp_Group_Subject_Set
|
|
2587
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2588
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2589
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2590
|
+
}
|
|
2618
2591
|
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
C.free(unsafe.Pointer(estr))
|
|
2624
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2625
|
-
}
|
|
2626
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2592
|
+
//export whatsapp_Group_Nickname_Get
|
|
2593
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2594
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2595
|
+
return C.CString(op.Nickname)
|
|
2627
2596
|
}
|
|
2628
2597
|
|
|
2629
|
-
//export
|
|
2630
|
-
func
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
2635
|
-
}
|
|
2636
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2598
|
+
//export whatsapp_Group_Nickname_Set
|
|
2599
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2600
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2601
|
+
op.Nickname = C.GoString(val)
|
|
2602
|
+
}
|
|
2637
2603
|
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
C.free(unsafe.Pointer(estr))
|
|
2643
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
2644
|
-
}
|
|
2645
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
2604
|
+
//export whatsapp_Group_Participants_Get
|
|
2605
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2606
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2607
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2646
2608
|
}
|
|
2647
2609
|
|
|
2648
|
-
//export
|
|
2649
|
-
func
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
return errorGoToPy(nil)
|
|
2654
|
-
}
|
|
2655
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2610
|
+
//export whatsapp_Group_Participants_Set
|
|
2611
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2612
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2613
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2614
|
+
}
|
|
2656
2615
|
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
return estr
|
|
2662
|
-
}
|
|
2663
|
-
return C.CString("")
|
|
2616
|
+
//export whatsapp_Group_InviteCode_Get
|
|
2617
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
2618
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2619
|
+
return C.CString(op.InviteCode)
|
|
2664
2620
|
}
|
|
2665
2621
|
|
|
2666
|
-
//export
|
|
2667
|
-
func
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2672
|
-
}
|
|
2673
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2622
|
+
//export whatsapp_Group_InviteCode_Set
|
|
2623
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
2624
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2625
|
+
op.InviteCode = C.GoString(val)
|
|
2626
|
+
}
|
|
2674
2627
|
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2681
|
-
}
|
|
2682
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2628
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2629
|
+
//
|
|
2630
|
+
//export whatsapp_GroupSubject_CTor
|
|
2631
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2632
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2683
2633
|
}
|
|
2684
2634
|
|
|
2685
|
-
//export
|
|
2686
|
-
func
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
if __err != nil {
|
|
2690
|
-
return C.CString("")
|
|
2691
|
-
}
|
|
2692
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2693
|
-
|
|
2694
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2695
|
-
if __err != nil {
|
|
2696
|
-
estr := C.CString(__err.Error())
|
|
2697
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2698
|
-
C.free(unsafe.Pointer(estr))
|
|
2699
|
-
return C.CString("")
|
|
2700
|
-
}
|
|
2701
|
-
return C.CString(cret)
|
|
2635
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2636
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2637
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2638
|
+
return C.CString(op.Subject)
|
|
2702
2639
|
}
|
|
2703
2640
|
|
|
2704
|
-
//export
|
|
2705
|
-
func
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
if __err != nil {
|
|
2709
|
-
return errorGoToPy(nil)
|
|
2710
|
-
}
|
|
2711
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2712
|
-
|
|
2713
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2714
|
-
if __err != nil {
|
|
2715
|
-
estr := C.CString(__err.Error())
|
|
2716
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2717
|
-
return estr
|
|
2718
|
-
}
|
|
2719
|
-
return C.CString("")
|
|
2641
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2642
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2643
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2644
|
+
op.Subject = C.GoString(val)
|
|
2720
2645
|
}
|
|
2721
2646
|
|
|
2722
|
-
//export
|
|
2723
|
-
func
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
return errorGoToPy(nil)
|
|
2728
|
-
}
|
|
2729
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2647
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2648
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2649
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2650
|
+
return C.longlong(op.SetAt)
|
|
2651
|
+
}
|
|
2730
2652
|
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
return estr
|
|
2736
|
-
}
|
|
2737
|
-
return C.CString("")
|
|
2653
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2654
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2655
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2656
|
+
op.SetAt = int64(val)
|
|
2738
2657
|
}
|
|
2739
2658
|
|
|
2740
|
-
//export
|
|
2741
|
-
func
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2746
|
-
}
|
|
2747
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2659
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
2660
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
2661
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2662
|
+
return C.CString(op.SetBy)
|
|
2663
|
+
}
|
|
2748
2664
|
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
C.free(unsafe.Pointer(estr))
|
|
2754
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2755
|
-
}
|
|
2756
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2665
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
2666
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
2667
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2668
|
+
op.SetBy = C.GoString(val)
|
|
2757
2669
|
}
|
|
2758
2670
|
|
|
2759
|
-
//
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
}
|
|
2766
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2671
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2672
|
+
//
|
|
2673
|
+
//export whatsapp_PollOption_CTor
|
|
2674
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2675
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2676
|
+
}
|
|
2767
2677
|
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
C.free(unsafe.Pointer(estr))
|
|
2773
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
2774
|
-
}
|
|
2775
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2678
|
+
//export whatsapp_PollOption_Title_Get
|
|
2679
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2680
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2681
|
+
return C.CString(op.Title)
|
|
2776
2682
|
}
|
|
2777
2683
|
|
|
2778
|
-
//export
|
|
2779
|
-
func
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
return errorGoToPy(nil)
|
|
2784
|
-
}
|
|
2785
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2684
|
+
//export whatsapp_PollOption_Title_Set
|
|
2685
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2686
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2687
|
+
op.Title = C.GoString(val)
|
|
2688
|
+
}
|
|
2786
2689
|
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}
|
|
2793
|
-
return C.CString("")
|
|
2690
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
2691
|
+
//
|
|
2692
|
+
//export whatsapp_Receipt_CTor
|
|
2693
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
2694
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2794
2695
|
}
|
|
2795
2696
|
|
|
2796
|
-
//export
|
|
2797
|
-
func
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2801
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2802
|
-
if __err != nil {
|
|
2803
|
-
return
|
|
2804
|
-
}
|
|
2805
|
-
if boolPyToGo(goRun) {
|
|
2806
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2807
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2808
|
-
return
|
|
2809
|
-
}
|
|
2810
|
-
_gstate := C.PyGILState_Ensure()
|
|
2811
|
-
_fcargs := C.PyTuple_New(2)
|
|
2812
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2813
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2814
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2815
|
-
C.gopy_decref(_fcargs)
|
|
2816
|
-
C.gopy_err_handle()
|
|
2817
|
-
C.PyGILState_Release(_gstate)
|
|
2818
|
-
})
|
|
2819
|
-
} else {
|
|
2820
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2821
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2822
|
-
return
|
|
2823
|
-
}
|
|
2824
|
-
_gstate := C.PyGILState_Ensure()
|
|
2825
|
-
_fcargs := C.PyTuple_New(2)
|
|
2826
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2827
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2828
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2829
|
-
C.gopy_decref(_fcargs)
|
|
2830
|
-
C.gopy_err_handle()
|
|
2831
|
-
C.PyGILState_Release(_gstate)
|
|
2832
|
-
})
|
|
2833
|
-
}
|
|
2697
|
+
//export whatsapp_Receipt_Kind_Get
|
|
2698
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
2699
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2700
|
+
return C.longlong(int(op.Kind))
|
|
2834
2701
|
}
|
|
2835
2702
|
|
|
2836
|
-
//
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2703
|
+
//export whatsapp_Receipt_Kind_Set
|
|
2704
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2705
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2706
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
2841
2707
|
}
|
|
2842
2708
|
|
|
2843
|
-
//export
|
|
2844
|
-
func
|
|
2845
|
-
op :=
|
|
2846
|
-
return
|
|
2709
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
2710
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
2711
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2712
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
2847
2713
|
}
|
|
2848
2714
|
|
|
2849
|
-
//export
|
|
2850
|
-
func
|
|
2851
|
-
op :=
|
|
2852
|
-
op.
|
|
2715
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
2716
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2717
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2718
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
2853
2719
|
}
|
|
2854
2720
|
|
|
2855
|
-
//export
|
|
2856
|
-
func
|
|
2857
|
-
op :=
|
|
2721
|
+
//export whatsapp_Receipt_JID_Get
|
|
2722
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
2723
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2858
2724
|
return C.CString(op.JID)
|
|
2859
2725
|
}
|
|
2860
2726
|
|
|
2861
|
-
//export
|
|
2862
|
-
func
|
|
2863
|
-
op :=
|
|
2727
|
+
//export whatsapp_Receipt_JID_Set
|
|
2728
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
2729
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2864
2730
|
op.JID = C.GoString(val)
|
|
2865
2731
|
}
|
|
2866
2732
|
|
|
2867
|
-
//export
|
|
2868
|
-
func
|
|
2869
|
-
op :=
|
|
2870
|
-
return C.
|
|
2733
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
2734
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2735
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2736
|
+
return C.CString(op.GroupJID)
|
|
2871
2737
|
}
|
|
2872
2738
|
|
|
2873
|
-
//export
|
|
2874
|
-
func
|
|
2875
|
-
op :=
|
|
2876
|
-
op.
|
|
2739
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
2740
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2741
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2742
|
+
op.GroupJID = C.GoString(val)
|
|
2877
2743
|
}
|
|
2878
2744
|
|
|
2879
|
-
//
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2745
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
2746
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2747
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2748
|
+
return C.longlong(op.Timestamp)
|
|
2884
2749
|
}
|
|
2885
2750
|
|
|
2886
|
-
//export
|
|
2887
|
-
func
|
|
2888
|
-
op :=
|
|
2889
|
-
|
|
2751
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
2752
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2753
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2754
|
+
op.Timestamp = int64(val)
|
|
2890
2755
|
}
|
|
2891
2756
|
|
|
2892
|
-
//export
|
|
2893
|
-
func
|
|
2894
|
-
op :=
|
|
2895
|
-
op.
|
|
2757
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
2758
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2759
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2760
|
+
return boolGoToPy(op.IsCarbon)
|
|
2896
2761
|
}
|
|
2897
2762
|
|
|
2898
|
-
//export
|
|
2899
|
-
func
|
|
2900
|
-
op :=
|
|
2763
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
2764
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2765
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2766
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2770
|
+
//
|
|
2771
|
+
//export whatsapp_Album_CTor
|
|
2772
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2773
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2777
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2778
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2779
|
+
return boolGoToPy(op.IsAlbum)
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2783
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2784
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2785
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2789
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2790
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2791
|
+
return C.longlong(op.ImageCount)
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2795
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2796
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2797
|
+
op.ImageCount = int(val)
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2801
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2802
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2803
|
+
return C.longlong(op.VideoCount)
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2807
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2808
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2809
|
+
op.VideoCount = int(val)
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2813
|
+
//
|
|
2814
|
+
//export whatsapp_Attachment_CTor
|
|
2815
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2816
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2820
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2821
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2822
|
+
return C.CString(op.MIME)
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2826
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2827
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2828
|
+
op.MIME = C.GoString(val)
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2832
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2833
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2834
|
+
return C.CString(op.Filename)
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2838
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2839
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2840
|
+
op.Filename = C.GoString(val)
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2844
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2845
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2846
|
+
return C.CString(op.Caption)
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2850
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2851
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2852
|
+
op.Caption = C.GoString(val)
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
//export whatsapp_Attachment_Data_Get
|
|
2856
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2857
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2858
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
//export whatsapp_Attachment_Data_Set
|
|
2862
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2863
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2864
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
//export whatsapp_Attachment_GetSpec
|
|
2868
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2869
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2870
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2871
|
+
if __err != nil {
|
|
2872
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2873
|
+
}
|
|
2874
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2875
|
+
|
|
2876
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2877
|
+
if __err != nil {
|
|
2878
|
+
estr := C.CString(__err.Error())
|
|
2879
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2880
|
+
C.free(unsafe.Pointer(estr))
|
|
2881
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2882
|
+
}
|
|
2883
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2887
|
+
//
|
|
2888
|
+
//export whatsapp_Call_CTor
|
|
2889
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2890
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
//export whatsapp_Call_State_Get
|
|
2894
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2895
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2896
|
+
return C.longlong(int(op.State))
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
//export whatsapp_Call_State_Set
|
|
2900
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2901
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2902
|
+
op.State = whatsapp.CallState(int(val))
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
//export whatsapp_Call_JID_Get
|
|
2906
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2907
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2901
2908
|
return C.CString(op.JID)
|
|
2902
2909
|
}
|
|
2903
2910
|
|
|
2904
|
-
//export
|
|
2905
|
-
func
|
|
2906
|
-
op :=
|
|
2911
|
+
//export whatsapp_Call_JID_Set
|
|
2912
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2913
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2907
2914
|
op.JID = C.GoString(val)
|
|
2908
2915
|
}
|
|
2909
2916
|
|
|
2910
|
-
//export
|
|
2911
|
-
func
|
|
2912
|
-
op :=
|
|
2913
|
-
return C.
|
|
2917
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2918
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2919
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2920
|
+
return C.longlong(op.Timestamp)
|
|
2914
2921
|
}
|
|
2915
2922
|
|
|
2916
|
-
//export
|
|
2917
|
-
func
|
|
2918
|
-
op :=
|
|
2919
|
-
op.
|
|
2923
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2924
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2925
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2926
|
+
op.Timestamp = int64(val)
|
|
2920
2927
|
}
|
|
2921
2928
|
|
|
2922
2929
|
// --- wrapping struct: whatsapp.Connect ---
|
|
@@ -2950,706 +2957,772 @@ func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
|
2950
2957
|
op.Error = C.GoString(val)
|
|
2951
2958
|
}
|
|
2952
2959
|
|
|
2953
|
-
// --- wrapping struct: whatsapp.
|
|
2960
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2954
2961
|
//
|
|
2955
|
-
//export
|
|
2956
|
-
func
|
|
2957
|
-
return CGoHandle(
|
|
2962
|
+
//export whatsapp_Contact_CTor
|
|
2963
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2964
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2958
2965
|
}
|
|
2959
2966
|
|
|
2960
|
-
//export
|
|
2961
|
-
func
|
|
2962
|
-
op :=
|
|
2967
|
+
//export whatsapp_Contact_JID_Get
|
|
2968
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2969
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2963
2970
|
return C.CString(op.JID)
|
|
2964
2971
|
}
|
|
2965
2972
|
|
|
2966
|
-
//export
|
|
2967
|
-
func
|
|
2968
|
-
op :=
|
|
2973
|
+
//export whatsapp_Contact_JID_Set
|
|
2974
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2975
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2969
2976
|
op.JID = C.GoString(val)
|
|
2970
2977
|
}
|
|
2971
2978
|
|
|
2972
|
-
//export
|
|
2973
|
-
func
|
|
2974
|
-
op :=
|
|
2979
|
+
//export whatsapp_Contact_Name_Get
|
|
2980
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2981
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2975
2982
|
return C.CString(op.Name)
|
|
2976
2983
|
}
|
|
2977
2984
|
|
|
2978
|
-
//export
|
|
2979
|
-
func
|
|
2980
|
-
op :=
|
|
2985
|
+
//export whatsapp_Contact_Name_Set
|
|
2986
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2987
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2981
2988
|
op.Name = C.GoString(val)
|
|
2982
2989
|
}
|
|
2983
2990
|
|
|
2984
|
-
//
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2991
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
2992
|
+
//
|
|
2993
|
+
//export whatsapp_LinkedDevice_CTor
|
|
2994
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
2995
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2988
2996
|
}
|
|
2989
2997
|
|
|
2990
|
-
//export
|
|
2991
|
-
func
|
|
2992
|
-
op :=
|
|
2993
|
-
op.
|
|
2998
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
2999
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3000
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3001
|
+
return C.CString(op.ID)
|
|
2994
3002
|
}
|
|
2995
3003
|
|
|
2996
|
-
//export
|
|
2997
|
-
func
|
|
2998
|
-
op :=
|
|
2999
|
-
|
|
3004
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3005
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3006
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3007
|
+
op.ID = C.GoString(val)
|
|
3000
3008
|
}
|
|
3001
3009
|
|
|
3002
|
-
//export
|
|
3003
|
-
func
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3010
|
+
//export whatsapp_LinkedDevice_JID
|
|
3011
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3012
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3013
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3014
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3015
|
+
if __err != nil {
|
|
3016
|
+
return handleFromPtr_types_JID(nil)
|
|
3017
|
+
}
|
|
3018
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3007
3019
|
|
|
3008
|
-
|
|
3009
|
-
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3010
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3011
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3020
|
+
return handleFromPtr_types_JID(&cret)
|
|
3012
3021
|
}
|
|
3013
3022
|
|
|
3014
|
-
//
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3023
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
3024
|
+
//
|
|
3025
|
+
//export whatsapp_Location_CTor
|
|
3026
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
3027
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3018
3028
|
}
|
|
3019
3029
|
|
|
3020
|
-
//
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3030
|
+
//export whatsapp_Location_Latitude_Get
|
|
3031
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
3032
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3033
|
+
return C.double(op.Latitude)
|
|
3025
3034
|
}
|
|
3026
3035
|
|
|
3027
|
-
//export
|
|
3028
|
-
func
|
|
3029
|
-
op :=
|
|
3030
|
-
|
|
3036
|
+
//export whatsapp_Location_Latitude_Set
|
|
3037
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
3038
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3039
|
+
op.Latitude = float64(val)
|
|
3031
3040
|
}
|
|
3032
3041
|
|
|
3033
|
-
//export
|
|
3034
|
-
func
|
|
3035
|
-
op :=
|
|
3036
|
-
|
|
3042
|
+
//export whatsapp_Location_Longitude_Get
|
|
3043
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
3044
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3045
|
+
return C.double(op.Longitude)
|
|
3037
3046
|
}
|
|
3038
3047
|
|
|
3039
|
-
//export
|
|
3040
|
-
func
|
|
3041
|
-
op :=
|
|
3042
|
-
|
|
3048
|
+
//export whatsapp_Location_Longitude_Set
|
|
3049
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
3050
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3051
|
+
op.Longitude = float64(val)
|
|
3043
3052
|
}
|
|
3044
3053
|
|
|
3045
|
-
//export
|
|
3046
|
-
func
|
|
3047
|
-
op :=
|
|
3048
|
-
|
|
3054
|
+
//export whatsapp_Location_Accuracy_Get
|
|
3055
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
3056
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3057
|
+
return C.longlong(op.Accuracy)
|
|
3049
3058
|
}
|
|
3050
3059
|
|
|
3051
|
-
//export
|
|
3052
|
-
func
|
|
3053
|
-
op :=
|
|
3054
|
-
|
|
3060
|
+
//export whatsapp_Location_Accuracy_Set
|
|
3061
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
3062
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3063
|
+
op.Accuracy = int(val)
|
|
3055
3064
|
}
|
|
3056
3065
|
|
|
3057
|
-
//export
|
|
3058
|
-
func
|
|
3059
|
-
op :=
|
|
3060
|
-
op.
|
|
3066
|
+
//export whatsapp_Location_IsLive_Get
|
|
3067
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
3068
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3069
|
+
return boolGoToPy(op.IsLive)
|
|
3061
3070
|
}
|
|
3062
3071
|
|
|
3063
|
-
//
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3072
|
+
//export whatsapp_Location_IsLive_Set
|
|
3073
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
3074
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3075
|
+
op.IsLive = boolPyToGo(val)
|
|
3068
3076
|
}
|
|
3069
3077
|
|
|
3070
|
-
//export
|
|
3071
|
-
func
|
|
3072
|
-
op :=
|
|
3073
|
-
return C.CString(op.
|
|
3078
|
+
//export whatsapp_Location_Name_Get
|
|
3079
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
3080
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3081
|
+
return C.CString(op.Name)
|
|
3074
3082
|
}
|
|
3075
3083
|
|
|
3076
|
-
//export
|
|
3077
|
-
func
|
|
3078
|
-
op :=
|
|
3079
|
-
op.
|
|
3084
|
+
//export whatsapp_Location_Name_Set
|
|
3085
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3087
|
+
op.Name = C.GoString(val)
|
|
3080
3088
|
}
|
|
3081
3089
|
|
|
3082
|
-
//export
|
|
3083
|
-
func
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
if __err != nil {
|
|
3088
|
-
return handleFromPtr_types_JID(nil)
|
|
3089
|
-
}
|
|
3090
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3090
|
+
//export whatsapp_Location_Address_Get
|
|
3091
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3093
|
+
return C.CString(op.Address)
|
|
3094
|
+
}
|
|
3091
3095
|
|
|
3092
|
-
|
|
3096
|
+
//export whatsapp_Location_Address_Set
|
|
3097
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3099
|
+
op.Address = C.GoString(val)
|
|
3093
3100
|
}
|
|
3094
3101
|
|
|
3095
|
-
//
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3102
|
+
//export whatsapp_Location_URL_Get
|
|
3103
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3105
|
+
return C.CString(op.URL)
|
|
3100
3106
|
}
|
|
3101
3107
|
|
|
3102
|
-
//export
|
|
3103
|
-
func
|
|
3104
|
-
op :=
|
|
3105
|
-
|
|
3108
|
+
//export whatsapp_Location_URL_Set
|
|
3109
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3111
|
+
op.URL = C.GoString(val)
|
|
3106
3112
|
}
|
|
3107
3113
|
|
|
3108
|
-
//
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3114
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
3115
|
+
//
|
|
3116
|
+
//export whatsapp_LoggedOut_CTor
|
|
3117
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
3118
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
3112
3119
|
}
|
|
3113
3120
|
|
|
3114
|
-
//export
|
|
3115
|
-
func
|
|
3116
|
-
op :=
|
|
3117
|
-
return
|
|
3121
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
3122
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
3123
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3124
|
+
return C.CString(op.Reason)
|
|
3118
3125
|
}
|
|
3119
3126
|
|
|
3120
|
-
//export
|
|
3121
|
-
func
|
|
3122
|
-
op :=
|
|
3123
|
-
op.
|
|
3127
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
3128
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
3129
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3130
|
+
op.Reason = C.GoString(val)
|
|
3124
3131
|
}
|
|
3125
3132
|
|
|
3126
|
-
// --- wrapping struct: whatsapp.
|
|
3133
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3127
3134
|
//
|
|
3128
|
-
//export
|
|
3129
|
-
func
|
|
3130
|
-
return CGoHandle(
|
|
3135
|
+
//export whatsapp_Message_CTor
|
|
3136
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3137
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3131
3138
|
}
|
|
3132
3139
|
|
|
3133
|
-
//export
|
|
3134
|
-
func
|
|
3135
|
-
op :=
|
|
3136
|
-
return C.
|
|
3140
|
+
//export whatsapp_Message_Kind_Get
|
|
3141
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3142
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3143
|
+
return C.longlong(int(op.Kind))
|
|
3137
3144
|
}
|
|
3138
3145
|
|
|
3139
|
-
//export
|
|
3140
|
-
func
|
|
3141
|
-
op :=
|
|
3142
|
-
op.
|
|
3146
|
+
//export whatsapp_Message_Kind_Set
|
|
3147
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3148
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3149
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3143
3150
|
}
|
|
3144
3151
|
|
|
3145
|
-
//
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3152
|
+
//export whatsapp_Message_ID_Get
|
|
3153
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3154
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3155
|
+
return C.CString(op.ID)
|
|
3150
3156
|
}
|
|
3151
3157
|
|
|
3152
|
-
//export
|
|
3153
|
-
func
|
|
3154
|
-
op :=
|
|
3158
|
+
//export whatsapp_Message_ID_Set
|
|
3159
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3160
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3161
|
+
op.ID = C.GoString(val)
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
//export whatsapp_Message_JID_Get
|
|
3165
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3166
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3155
3167
|
return C.CString(op.JID)
|
|
3156
3168
|
}
|
|
3157
3169
|
|
|
3158
|
-
//export
|
|
3159
|
-
func
|
|
3160
|
-
op :=
|
|
3170
|
+
//export whatsapp_Message_JID_Set
|
|
3171
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3172
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3161
3173
|
op.JID = C.GoString(val)
|
|
3162
3174
|
}
|
|
3163
3175
|
|
|
3164
|
-
//export
|
|
3165
|
-
func
|
|
3166
|
-
op :=
|
|
3167
|
-
return C.
|
|
3176
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3177
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3178
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3179
|
+
return C.CString(op.GroupJID)
|
|
3168
3180
|
}
|
|
3169
3181
|
|
|
3170
|
-
//export
|
|
3171
|
-
func
|
|
3172
|
-
op :=
|
|
3173
|
-
op.
|
|
3182
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3183
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3184
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3185
|
+
op.GroupJID = C.GoString(val)
|
|
3174
3186
|
}
|
|
3175
3187
|
|
|
3176
|
-
//export
|
|
3177
|
-
func
|
|
3178
|
-
op :=
|
|
3179
|
-
return C.
|
|
3188
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3189
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3190
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3191
|
+
return C.CString(op.OriginJID)
|
|
3180
3192
|
}
|
|
3181
3193
|
|
|
3182
|
-
//export
|
|
3183
|
-
func
|
|
3184
|
-
op :=
|
|
3185
|
-
op.
|
|
3194
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3195
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3196
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3197
|
+
op.OriginJID = C.GoString(val)
|
|
3186
3198
|
}
|
|
3187
3199
|
|
|
3188
|
-
//
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3200
|
+
//export whatsapp_Message_Body_Get
|
|
3201
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3202
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3203
|
+
return C.CString(op.Body)
|
|
3193
3204
|
}
|
|
3194
3205
|
|
|
3195
|
-
//export
|
|
3196
|
-
func
|
|
3197
|
-
op :=
|
|
3198
|
-
|
|
3206
|
+
//export whatsapp_Message_Body_Set
|
|
3207
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3208
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3209
|
+
op.Body = C.GoString(val)
|
|
3199
3210
|
}
|
|
3200
3211
|
|
|
3201
|
-
//export
|
|
3202
|
-
func
|
|
3203
|
-
op :=
|
|
3204
|
-
|
|
3212
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3213
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3214
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3215
|
+
return C.longlong(op.Timestamp)
|
|
3205
3216
|
}
|
|
3206
3217
|
|
|
3207
|
-
//export
|
|
3208
|
-
func
|
|
3209
|
-
op :=
|
|
3210
|
-
|
|
3218
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3219
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3220
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3221
|
+
op.Timestamp = int64(val)
|
|
3211
3222
|
}
|
|
3212
3223
|
|
|
3213
|
-
//export
|
|
3214
|
-
func
|
|
3215
|
-
op :=
|
|
3216
|
-
op.
|
|
3224
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3225
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3226
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3227
|
+
return boolGoToPy(op.IsCarbon)
|
|
3217
3228
|
}
|
|
3218
3229
|
|
|
3219
|
-
//export
|
|
3220
|
-
func
|
|
3221
|
-
op :=
|
|
3222
|
-
|
|
3230
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3231
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3232
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3233
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3223
3234
|
}
|
|
3224
3235
|
|
|
3225
|
-
//export
|
|
3226
|
-
func
|
|
3227
|
-
op :=
|
|
3228
|
-
op.
|
|
3236
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3237
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3238
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3239
|
+
return boolGoToPy(op.IsForwarded)
|
|
3229
3240
|
}
|
|
3230
3241
|
|
|
3231
|
-
//export
|
|
3232
|
-
func
|
|
3233
|
-
op :=
|
|
3234
|
-
|
|
3242
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3243
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3244
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3245
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3235
3246
|
}
|
|
3236
3247
|
|
|
3237
|
-
//export
|
|
3238
|
-
func
|
|
3239
|
-
op :=
|
|
3240
|
-
op.
|
|
3248
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3249
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3250
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3251
|
+
return C.CString(op.ReplyID)
|
|
3241
3252
|
}
|
|
3242
3253
|
|
|
3243
|
-
//export
|
|
3244
|
-
func
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3249
|
-
}
|
|
3250
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3254
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3255
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3256
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3257
|
+
op.ReplyID = C.GoString(val)
|
|
3258
|
+
}
|
|
3251
3259
|
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
C.free(unsafe.Pointer(estr))
|
|
3257
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3258
|
-
}
|
|
3259
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3260
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3261
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3262
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3263
|
+
return C.CString(op.ReplyBody)
|
|
3260
3264
|
}
|
|
3261
3265
|
|
|
3262
|
-
//
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3266
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3267
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3268
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3269
|
+
op.ReplyBody = C.GoString(val)
|
|
3267
3270
|
}
|
|
3268
3271
|
|
|
3269
|
-
//export
|
|
3270
|
-
func
|
|
3271
|
-
op :=
|
|
3272
|
-
return
|
|
3272
|
+
//export whatsapp_Message_Attachments_Get
|
|
3273
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3274
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3275
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3273
3276
|
}
|
|
3274
3277
|
|
|
3275
|
-
//export
|
|
3276
|
-
func
|
|
3277
|
-
op :=
|
|
3278
|
-
op.
|
|
3278
|
+
//export whatsapp_Message_Attachments_Set
|
|
3279
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3280
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3281
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3279
3282
|
}
|
|
3280
3283
|
|
|
3281
|
-
//export
|
|
3282
|
-
func
|
|
3283
|
-
op :=
|
|
3284
|
-
return
|
|
3284
|
+
//export whatsapp_Message_Preview_Get
|
|
3285
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3286
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3287
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3285
3288
|
}
|
|
3286
3289
|
|
|
3287
|
-
//export
|
|
3288
|
-
func
|
|
3289
|
-
op :=
|
|
3290
|
-
op.
|
|
3290
|
+
//export whatsapp_Message_Preview_Set
|
|
3291
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3292
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3293
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3291
3294
|
}
|
|
3292
3295
|
|
|
3293
|
-
//
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
3296
|
+
//export whatsapp_Message_Location_Get
|
|
3297
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3298
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3299
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3298
3300
|
}
|
|
3299
3301
|
|
|
3300
|
-
//export
|
|
3301
|
-
func
|
|
3302
|
-
op :=
|
|
3303
|
-
|
|
3302
|
+
//export whatsapp_Message_Location_Set
|
|
3303
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3304
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3305
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3304
3306
|
}
|
|
3305
3307
|
|
|
3306
|
-
//export
|
|
3307
|
-
func
|
|
3308
|
-
op :=
|
|
3309
|
-
op.
|
|
3308
|
+
//export whatsapp_Message_Poll_Get
|
|
3309
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3310
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3311
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3310
3312
|
}
|
|
3311
3313
|
|
|
3312
|
-
//export
|
|
3313
|
-
func
|
|
3314
|
-
op :=
|
|
3315
|
-
|
|
3314
|
+
//export whatsapp_Message_Poll_Set
|
|
3315
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3316
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3317
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3316
3318
|
}
|
|
3317
3319
|
|
|
3318
|
-
//export
|
|
3319
|
-
func
|
|
3320
|
-
op :=
|
|
3321
|
-
op.
|
|
3320
|
+
//export whatsapp_Message_Album_Get
|
|
3321
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3322
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3323
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3322
3324
|
}
|
|
3323
3325
|
|
|
3324
|
-
//export
|
|
3325
|
-
func
|
|
3326
|
-
op :=
|
|
3327
|
-
|
|
3326
|
+
//export whatsapp_Message_Album_Set
|
|
3327
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3328
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3329
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3328
3330
|
}
|
|
3329
3331
|
|
|
3330
|
-
//export
|
|
3331
|
-
func
|
|
3332
|
-
op :=
|
|
3333
|
-
op.
|
|
3332
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3333
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3334
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3335
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3334
3336
|
}
|
|
3335
3337
|
|
|
3336
|
-
//export
|
|
3337
|
-
func
|
|
3338
|
-
op :=
|
|
3339
|
-
|
|
3338
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3339
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3340
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3341
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3340
3342
|
}
|
|
3341
3343
|
|
|
3342
|
-
//export
|
|
3343
|
-
func
|
|
3344
|
-
op :=
|
|
3345
|
-
op.
|
|
3344
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3345
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3346
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3347
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3346
3348
|
}
|
|
3347
3349
|
|
|
3348
|
-
//export
|
|
3349
|
-
func
|
|
3350
|
-
op :=
|
|
3351
|
-
|
|
3350
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3351
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3352
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3353
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3352
3354
|
}
|
|
3353
3355
|
|
|
3354
|
-
//export
|
|
3355
|
-
func
|
|
3356
|
-
op :=
|
|
3357
|
-
op.
|
|
3356
|
+
//export whatsapp_Message_Receipts_Get
|
|
3357
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3358
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3359
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3358
3360
|
}
|
|
3359
3361
|
|
|
3360
|
-
//export
|
|
3361
|
-
func
|
|
3362
|
-
op :=
|
|
3363
|
-
|
|
3362
|
+
//export whatsapp_Message_Receipts_Set
|
|
3363
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3364
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3365
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3364
3366
|
}
|
|
3365
3367
|
|
|
3366
|
-
//export
|
|
3367
|
-
func
|
|
3368
|
-
op :=
|
|
3369
|
-
op.
|
|
3368
|
+
//export whatsapp_Message_Reactions_Get
|
|
3369
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3370
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3371
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3370
3372
|
}
|
|
3371
3373
|
|
|
3372
|
-
//export
|
|
3373
|
-
func
|
|
3374
|
-
op :=
|
|
3375
|
-
|
|
3374
|
+
//export whatsapp_Message_Reactions_Set
|
|
3375
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3376
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3377
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3376
3378
|
}
|
|
3377
3379
|
|
|
3378
|
-
//export
|
|
3379
|
-
func
|
|
3380
|
-
op :=
|
|
3381
|
-
op.
|
|
3380
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3381
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3382
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3383
|
+
return boolGoToPy(op.IsHistory)
|
|
3382
3384
|
}
|
|
3383
3385
|
|
|
3384
|
-
//export
|
|
3385
|
-
func
|
|
3386
|
-
op :=
|
|
3387
|
-
|
|
3386
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3387
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3388
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3389
|
+
op.IsHistory = boolPyToGo(val)
|
|
3388
3390
|
}
|
|
3389
3391
|
|
|
3390
|
-
//
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3392
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3393
|
+
//
|
|
3394
|
+
//export whatsapp_Poll_CTor
|
|
3395
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3396
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3394
3397
|
}
|
|
3395
3398
|
|
|
3396
|
-
//export
|
|
3397
|
-
func
|
|
3398
|
-
op :=
|
|
3399
|
-
return
|
|
3399
|
+
//export whatsapp_Poll_Title_Get
|
|
3400
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3401
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3402
|
+
return C.CString(op.Title)
|
|
3400
3403
|
}
|
|
3401
3404
|
|
|
3402
|
-
//export
|
|
3403
|
-
func
|
|
3404
|
-
op :=
|
|
3405
|
-
op.
|
|
3405
|
+
//export whatsapp_Poll_Title_Set
|
|
3406
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3407
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3408
|
+
op.Title = C.GoString(val)
|
|
3406
3409
|
}
|
|
3407
3410
|
|
|
3408
|
-
//export
|
|
3409
|
-
func
|
|
3410
|
-
op :=
|
|
3411
|
-
return
|
|
3411
|
+
//export whatsapp_Poll_Options_Get
|
|
3412
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3413
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3414
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3412
3415
|
}
|
|
3413
3416
|
|
|
3414
|
-
//export
|
|
3415
|
-
func
|
|
3416
|
-
op :=
|
|
3417
|
-
op.
|
|
3417
|
+
//export whatsapp_Poll_Options_Set
|
|
3418
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3419
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3420
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3418
3421
|
}
|
|
3419
3422
|
|
|
3420
|
-
// --- wrapping struct: whatsapp.
|
|
3423
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3421
3424
|
//
|
|
3422
|
-
//export
|
|
3423
|
-
func
|
|
3424
|
-
return CGoHandle(
|
|
3425
|
+
//export whatsapp_Avatar_CTor
|
|
3426
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3427
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3425
3428
|
}
|
|
3426
3429
|
|
|
3427
|
-
//export
|
|
3428
|
-
func
|
|
3429
|
-
op :=
|
|
3430
|
-
return C.
|
|
3430
|
+
//export whatsapp_Avatar_ID_Get
|
|
3431
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3432
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3433
|
+
return C.CString(op.ID)
|
|
3431
3434
|
}
|
|
3432
3435
|
|
|
3433
|
-
//export
|
|
3434
|
-
func
|
|
3435
|
-
op :=
|
|
3436
|
-
op.
|
|
3436
|
+
//export whatsapp_Avatar_ID_Set
|
|
3437
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3438
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3439
|
+
op.ID = C.GoString(val)
|
|
3437
3440
|
}
|
|
3438
3441
|
|
|
3439
|
-
//export
|
|
3440
|
-
func
|
|
3441
|
-
op :=
|
|
3442
|
-
return C.
|
|
3442
|
+
//export whatsapp_Avatar_URL_Get
|
|
3443
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3444
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3445
|
+
return C.CString(op.URL)
|
|
3443
3446
|
}
|
|
3444
3447
|
|
|
3445
|
-
//export
|
|
3446
|
-
func
|
|
3447
|
-
op :=
|
|
3448
|
-
op.
|
|
3448
|
+
//export whatsapp_Avatar_URL_Set
|
|
3449
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3450
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3451
|
+
op.URL = C.GoString(val)
|
|
3449
3452
|
}
|
|
3450
3453
|
|
|
3451
|
-
//
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3454
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3455
|
+
//
|
|
3456
|
+
//export whatsapp_Presence_CTor
|
|
3457
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3458
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3455
3459
|
}
|
|
3456
3460
|
|
|
3457
|
-
//export
|
|
3458
|
-
func
|
|
3459
|
-
op :=
|
|
3460
|
-
op.
|
|
3461
|
+
//export whatsapp_Presence_JID_Get
|
|
3462
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3463
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3464
|
+
return C.CString(op.JID)
|
|
3461
3465
|
}
|
|
3462
3466
|
|
|
3463
|
-
//export
|
|
3464
|
-
func
|
|
3465
|
-
op :=
|
|
3466
|
-
|
|
3467
|
+
//export whatsapp_Presence_JID_Set
|
|
3468
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3469
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3470
|
+
op.JID = C.GoString(val)
|
|
3467
3471
|
}
|
|
3468
3472
|
|
|
3469
|
-
//export
|
|
3470
|
-
func
|
|
3471
|
-
op :=
|
|
3472
|
-
op.
|
|
3473
|
+
//export whatsapp_Presence_Kind_Get
|
|
3474
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3475
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3476
|
+
return C.longlong(int(op.Kind))
|
|
3473
3477
|
}
|
|
3474
3478
|
|
|
3475
|
-
//export
|
|
3476
|
-
func
|
|
3477
|
-
op :=
|
|
3478
|
-
|
|
3479
|
+
//export whatsapp_Presence_Kind_Set
|
|
3480
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3481
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3482
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3479
3483
|
}
|
|
3480
3484
|
|
|
3481
|
-
//export
|
|
3482
|
-
func
|
|
3483
|
-
op :=
|
|
3484
|
-
|
|
3485
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3486
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3487
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3488
|
+
return C.longlong(op.LastSeen)
|
|
3485
3489
|
}
|
|
3486
3490
|
|
|
3487
|
-
//export
|
|
3488
|
-
func
|
|
3489
|
-
op :=
|
|
3490
|
-
|
|
3491
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3492
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3493
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3494
|
+
op.LastSeen = int64(val)
|
|
3491
3495
|
}
|
|
3492
3496
|
|
|
3493
|
-
//
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
3498
|
+
//
|
|
3499
|
+
//export whatsapp_Session_CTor
|
|
3500
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
3501
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3497
3502
|
}
|
|
3498
3503
|
|
|
3499
|
-
//export
|
|
3500
|
-
func
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
+
//export whatsapp_Session_Login
|
|
3505
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
3506
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3507
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3508
|
+
if __err != nil {
|
|
3509
|
+
return errorGoToPy(nil)
|
|
3510
|
+
}
|
|
3511
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3504
3512
|
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3513
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3514
|
+
if __err != nil {
|
|
3515
|
+
estr := C.CString(__err.Error())
|
|
3516
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3517
|
+
return estr
|
|
3518
|
+
}
|
|
3519
|
+
return C.CString("")
|
|
3509
3520
|
}
|
|
3510
3521
|
|
|
3511
|
-
//
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3522
|
+
//export whatsapp_Session_Logout
|
|
3523
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
3524
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3525
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3526
|
+
if __err != nil {
|
|
3527
|
+
return errorGoToPy(nil)
|
|
3528
|
+
}
|
|
3529
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3517
3530
|
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3531
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3532
|
+
if __err != nil {
|
|
3533
|
+
estr := C.CString(__err.Error())
|
|
3534
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3535
|
+
return estr
|
|
3536
|
+
}
|
|
3537
|
+
return C.CString("")
|
|
3522
3538
|
}
|
|
3523
3539
|
|
|
3524
|
-
//export
|
|
3525
|
-
func
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3540
|
+
//export whatsapp_Session_Disconnect
|
|
3541
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
3542
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3543
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3544
|
+
if __err != nil {
|
|
3545
|
+
return errorGoToPy(nil)
|
|
3546
|
+
}
|
|
3547
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3529
3548
|
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3549
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3550
|
+
if __err != nil {
|
|
3551
|
+
estr := C.CString(__err.Error())
|
|
3552
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3553
|
+
return estr
|
|
3554
|
+
}
|
|
3555
|
+
return C.CString("")
|
|
3534
3556
|
}
|
|
3535
3557
|
|
|
3536
|
-
//export
|
|
3537
|
-
func
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3558
|
+
//export whatsapp_Session_PairPhone
|
|
3559
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
3560
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3561
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3562
|
+
if __err != nil {
|
|
3563
|
+
return C.CString("")
|
|
3564
|
+
}
|
|
3565
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3541
3566
|
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3567
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3568
|
+
if __err != nil {
|
|
3569
|
+
estr := C.CString(__err.Error())
|
|
3570
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3571
|
+
C.free(unsafe.Pointer(estr))
|
|
3572
|
+
return C.CString("")
|
|
3573
|
+
}
|
|
3574
|
+
return C.CString(cret)
|
|
3546
3575
|
}
|
|
3547
3576
|
|
|
3548
|
-
//export
|
|
3549
|
-
func
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3577
|
+
//export whatsapp_Session_SendMessage
|
|
3578
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
3579
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3580
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3581
|
+
if __err != nil {
|
|
3582
|
+
return errorGoToPy(nil)
|
|
3583
|
+
}
|
|
3584
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3553
3585
|
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3586
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3587
|
+
if __err != nil {
|
|
3588
|
+
estr := C.CString(__err.Error())
|
|
3589
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3590
|
+
return estr
|
|
3591
|
+
}
|
|
3592
|
+
return C.CString("")
|
|
3558
3593
|
}
|
|
3559
3594
|
|
|
3560
|
-
//export
|
|
3561
|
-
func
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3595
|
+
//export whatsapp_Session_GenerateMessageID
|
|
3596
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
3597
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3598
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3599
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3600
|
+
if __err != nil {
|
|
3601
|
+
return C.CString("")
|
|
3602
|
+
}
|
|
3603
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3565
3604
|
|
|
3566
|
-
//export whatsapp_Receipt_Timestamp_Get
|
|
3567
|
-
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3568
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3569
|
-
return C.longlong(op.Timestamp)
|
|
3570
3605
|
}
|
|
3571
3606
|
|
|
3572
|
-
//export
|
|
3573
|
-
func
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3607
|
+
//export whatsapp_Session_SendChatState
|
|
3608
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
3609
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3610
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3611
|
+
if __err != nil {
|
|
3612
|
+
return errorGoToPy(nil)
|
|
3613
|
+
}
|
|
3614
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3577
3615
|
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3616
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3617
|
+
if __err != nil {
|
|
3618
|
+
estr := C.CString(__err.Error())
|
|
3619
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3620
|
+
return estr
|
|
3621
|
+
}
|
|
3622
|
+
return C.CString("")
|
|
3582
3623
|
}
|
|
3583
3624
|
|
|
3584
|
-
//export
|
|
3585
|
-
func
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3625
|
+
//export whatsapp_Session_SendReceipt
|
|
3626
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
3627
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3628
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3629
|
+
if __err != nil {
|
|
3630
|
+
return errorGoToPy(nil)
|
|
3631
|
+
}
|
|
3632
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3589
3633
|
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3634
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3635
|
+
if __err != nil {
|
|
3636
|
+
estr := C.CString(__err.Error())
|
|
3637
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3638
|
+
return estr
|
|
3639
|
+
}
|
|
3640
|
+
return C.CString("")
|
|
3595
3641
|
}
|
|
3596
3642
|
|
|
3597
|
-
//export
|
|
3598
|
-
func
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3643
|
+
//export whatsapp_Session_SendPresence
|
|
3644
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
3645
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3646
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3647
|
+
if __err != nil {
|
|
3648
|
+
return errorGoToPy(nil)
|
|
3649
|
+
}
|
|
3650
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3602
3651
|
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3652
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3653
|
+
if __err != nil {
|
|
3654
|
+
estr := C.CString(__err.Error())
|
|
3655
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3656
|
+
return estr
|
|
3657
|
+
}
|
|
3658
|
+
return C.CString("")
|
|
3607
3659
|
}
|
|
3608
3660
|
|
|
3609
|
-
//export
|
|
3610
|
-
func
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3661
|
+
//export whatsapp_Session_GetContacts
|
|
3662
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
3663
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3664
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3665
|
+
if __err != nil {
|
|
3666
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3667
|
+
}
|
|
3668
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3614
3669
|
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3670
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3671
|
+
if __err != nil {
|
|
3672
|
+
estr := C.CString(__err.Error())
|
|
3673
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3674
|
+
C.free(unsafe.Pointer(estr))
|
|
3675
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3676
|
+
}
|
|
3677
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3619
3678
|
}
|
|
3620
3679
|
|
|
3621
|
-
//export
|
|
3622
|
-
func
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3680
|
+
//export whatsapp_Session_GetGroups
|
|
3681
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
3682
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3683
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3684
|
+
if __err != nil {
|
|
3685
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3686
|
+
}
|
|
3687
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3626
3688
|
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3689
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3690
|
+
if __err != nil {
|
|
3691
|
+
estr := C.CString(__err.Error())
|
|
3692
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3693
|
+
C.free(unsafe.Pointer(estr))
|
|
3694
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3695
|
+
}
|
|
3696
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3631
3697
|
}
|
|
3632
3698
|
|
|
3633
|
-
//export
|
|
3634
|
-
func
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3699
|
+
//export whatsapp_Session_CreateGroup
|
|
3700
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
3701
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3702
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3703
|
+
if __err != nil {
|
|
3704
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3705
|
+
}
|
|
3706
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3638
3707
|
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3708
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3709
|
+
if __err != nil {
|
|
3710
|
+
estr := C.CString(__err.Error())
|
|
3711
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3712
|
+
C.free(unsafe.Pointer(estr))
|
|
3713
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3714
|
+
}
|
|
3715
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
3643
3716
|
}
|
|
3644
3717
|
|
|
3645
|
-
//export
|
|
3646
|
-
func
|
|
3718
|
+
//export whatsapp_Session_LeaveGroup
|
|
3719
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
3647
3720
|
_saved_thread := C.PyEval_SaveThread()
|
|
3648
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3721
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3649
3722
|
if __err != nil {
|
|
3650
3723
|
return errorGoToPy(nil)
|
|
3651
3724
|
}
|
|
3652
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
3725
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3653
3726
|
|
|
3654
3727
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3655
3728
|
if __err != nil {
|
|
@@ -3660,144 +3733,174 @@ func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
|
3660
3733
|
return C.CString("")
|
|
3661
3734
|
}
|
|
3662
3735
|
|
|
3663
|
-
//export
|
|
3664
|
-
func
|
|
3736
|
+
//export whatsapp_Session_GetAvatar
|
|
3737
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
3665
3738
|
_saved_thread := C.PyEval_SaveThread()
|
|
3666
|
-
|
|
3667
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3739
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3668
3740
|
if __err != nil {
|
|
3669
|
-
return
|
|
3741
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3670
3742
|
}
|
|
3671
|
-
|
|
3743
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3672
3744
|
|
|
3745
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3746
|
+
if __err != nil {
|
|
3747
|
+
estr := C.CString(__err.Error())
|
|
3748
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3749
|
+
C.free(unsafe.Pointer(estr))
|
|
3750
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3751
|
+
}
|
|
3752
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3673
3753
|
}
|
|
3674
3754
|
|
|
3675
|
-
//export
|
|
3676
|
-
func
|
|
3755
|
+
//export whatsapp_Session_SetAvatar
|
|
3756
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
3677
3757
|
_saved_thread := C.PyEval_SaveThread()
|
|
3678
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3758
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3679
3759
|
if __err != nil {
|
|
3680
|
-
return
|
|
3760
|
+
return C.CString("")
|
|
3681
3761
|
}
|
|
3682
|
-
__err
|
|
3762
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3683
3763
|
|
|
3684
3764
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3685
3765
|
if __err != nil {
|
|
3686
3766
|
estr := C.CString(__err.Error())
|
|
3687
3767
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3688
|
-
|
|
3768
|
+
C.free(unsafe.Pointer(estr))
|
|
3769
|
+
return C.CString("")
|
|
3689
3770
|
}
|
|
3690
|
-
return C.CString(
|
|
3691
|
-
}
|
|
3692
|
-
|
|
3693
|
-
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3694
|
-
//
|
|
3695
|
-
//export whatsapp_GroupSubject_CTor
|
|
3696
|
-
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3697
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3698
|
-
}
|
|
3699
|
-
|
|
3700
|
-
//export whatsapp_GroupSubject_Subject_Get
|
|
3701
|
-
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3702
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3703
|
-
return C.CString(op.Subject)
|
|
3704
|
-
}
|
|
3705
|
-
|
|
3706
|
-
//export whatsapp_GroupSubject_Subject_Set
|
|
3707
|
-
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3708
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3709
|
-
op.Subject = C.GoString(val)
|
|
3710
|
-
}
|
|
3711
|
-
|
|
3712
|
-
//export whatsapp_GroupSubject_SetAt_Get
|
|
3713
|
-
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3714
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3715
|
-
return C.longlong(op.SetAt)
|
|
3716
|
-
}
|
|
3717
|
-
|
|
3718
|
-
//export whatsapp_GroupSubject_SetAt_Set
|
|
3719
|
-
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3720
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3721
|
-
op.SetAt = int64(val)
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
//export whatsapp_GroupSubject_SetByJID_Get
|
|
3725
|
-
func whatsapp_GroupSubject_SetByJID_Get(handle CGoHandle) *C.char {
|
|
3726
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3727
|
-
return C.CString(op.SetByJID)
|
|
3728
|
-
}
|
|
3729
|
-
|
|
3730
|
-
//export whatsapp_GroupSubject_SetByJID_Set
|
|
3731
|
-
func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
3732
|
-
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3733
|
-
op.SetByJID = C.GoString(val)
|
|
3771
|
+
return C.CString(cret)
|
|
3734
3772
|
}
|
|
3735
3773
|
|
|
3736
|
-
//
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3774
|
+
//export whatsapp_Session_SetGroupName
|
|
3775
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
3776
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3777
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3778
|
+
if __err != nil {
|
|
3779
|
+
return errorGoToPy(nil)
|
|
3780
|
+
}
|
|
3781
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3742
3782
|
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3783
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3784
|
+
if __err != nil {
|
|
3785
|
+
estr := C.CString(__err.Error())
|
|
3786
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3787
|
+
return estr
|
|
3788
|
+
}
|
|
3789
|
+
return C.CString("")
|
|
3747
3790
|
}
|
|
3748
3791
|
|
|
3749
|
-
//export
|
|
3750
|
-
func
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3792
|
+
//export whatsapp_Session_SetGroupTopic
|
|
3793
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
3794
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3795
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3796
|
+
if __err != nil {
|
|
3797
|
+
return errorGoToPy(nil)
|
|
3798
|
+
}
|
|
3799
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3754
3800
|
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3801
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3802
|
+
if __err != nil {
|
|
3803
|
+
estr := C.CString(__err.Error())
|
|
3804
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3805
|
+
return estr
|
|
3806
|
+
}
|
|
3807
|
+
return C.CString("")
|
|
3759
3808
|
}
|
|
3760
3809
|
|
|
3761
|
-
//export
|
|
3762
|
-
func
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3810
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
3811
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
3812
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3813
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3814
|
+
if __err != nil {
|
|
3815
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3816
|
+
}
|
|
3817
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3766
3818
|
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3819
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3820
|
+
if __err != nil {
|
|
3821
|
+
estr := C.CString(__err.Error())
|
|
3822
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3823
|
+
C.free(unsafe.Pointer(estr))
|
|
3824
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3825
|
+
}
|
|
3826
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3771
3827
|
}
|
|
3772
3828
|
|
|
3773
|
-
//export
|
|
3774
|
-
func
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3829
|
+
//export whatsapp_Session_FindContact
|
|
3830
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
3831
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3832
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3833
|
+
if __err != nil {
|
|
3834
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3835
|
+
}
|
|
3836
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3778
3837
|
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3838
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3839
|
+
if __err != nil {
|
|
3840
|
+
estr := C.CString(__err.Error())
|
|
3841
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3842
|
+
C.free(unsafe.Pointer(estr))
|
|
3843
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3844
|
+
}
|
|
3845
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3783
3846
|
}
|
|
3784
3847
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3848
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
3849
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
3850
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3851
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3852
|
+
if __err != nil {
|
|
3853
|
+
return errorGoToPy(nil)
|
|
3854
|
+
}
|
|
3855
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3790
3856
|
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3857
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3858
|
+
if __err != nil {
|
|
3859
|
+
estr := C.CString(__err.Error())
|
|
3860
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3861
|
+
return estr
|
|
3862
|
+
}
|
|
3863
|
+
return C.CString("")
|
|
3795
3864
|
}
|
|
3796
3865
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
|
|
3800
|
-
|
|
3866
|
+
//export whatsapp_Session_SetEventHandler
|
|
3867
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
3868
|
+
_fun_arg := h
|
|
3869
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3870
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3871
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3872
|
+
if __err != nil {
|
|
3873
|
+
return
|
|
3874
|
+
}
|
|
3875
|
+
if boolPyToGo(goRun) {
|
|
3876
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3877
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3878
|
+
return
|
|
3879
|
+
}
|
|
3880
|
+
_gstate := C.PyGILState_Ensure()
|
|
3881
|
+
_fcargs := C.PyTuple_New(2)
|
|
3882
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3883
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3884
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3885
|
+
C.gopy_decref(_fcargs)
|
|
3886
|
+
C.gopy_err_handle()
|
|
3887
|
+
C.PyGILState_Release(_gstate)
|
|
3888
|
+
})
|
|
3889
|
+
} else {
|
|
3890
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3891
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3892
|
+
return
|
|
3893
|
+
}
|
|
3894
|
+
_gstate := C.PyGILState_Ensure()
|
|
3895
|
+
_fcargs := C.PyTuple_New(2)
|
|
3896
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3897
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3898
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3899
|
+
C.gopy_decref(_fcargs)
|
|
3900
|
+
C.gopy_err_handle()
|
|
3901
|
+
C.PyGILState_Release(_gstate)
|
|
3902
|
+
})
|
|
3903
|
+
}
|
|
3801
3904
|
}
|
|
3802
3905
|
|
|
3803
3906
|
// ---- Slices ---
|
|
@@ -3815,3 +3918,11 @@ func whatsapp_NewGateway() CGoHandle {
|
|
|
3815
3918
|
}
|
|
3816
3919
|
|
|
3817
3920
|
// ---- Functions ---
|
|
3921
|
+
|
|
3922
|
+
//export whatsapp_IsAnonymousJID
|
|
3923
|
+
func whatsapp_IsAnonymousJID(id *C.char) C.char {
|
|
3924
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3925
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3926
|
+
return boolGoToPy(whatsapp.IsAnonymousJID(C.GoString(id)))
|
|
3927
|
+
|
|
3928
|
+
}
|