slidge-whatsapp 0.2.7__cp313-cp313-manylinux_2_36_aarch64.whl → 0.3.0__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 +15 -3
- slidge_whatsapp/event.go +144 -48
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.h +167 -150
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +132 -118
- slidge_whatsapp/generated/whatsapp.c +1648 -1376
- slidge_whatsapp/generated/whatsapp.go +1198 -1087
- slidge_whatsapp/generated/whatsapp.py +1418 -1293
- slidge_whatsapp/generated/whatsapp_go.h +167 -150
- 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 +34 -17
- 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.0.dist-info}/METADATA +5 -4
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0.dist-info}/RECORD +208 -161
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0.dist-info}/WHEEL +1 -1
- 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.0.dist-info}/entry_points.txt +0 -0
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0.dist-info/licenses}/LICENSE +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,981 +2139,715 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2142
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
2119
2143
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2144
|
+
//export whatsapp_Presence_CTor
|
|
2145
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
2146
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2123
2147
|
}
|
|
2124
2148
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return
|
|
2149
|
+
//export whatsapp_Presence_JID_Get
|
|
2150
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2152
|
+
return C.CString(op.JID)
|
|
2129
2153
|
}
|
|
2130
2154
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2155
|
+
//export whatsapp_Presence_JID_Set
|
|
2156
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2158
|
+
op.JID = C.GoString(val)
|
|
2135
2159
|
}
|
|
2136
2160
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
return C.longlong(op.
|
|
2161
|
+
//export whatsapp_Presence_Kind_Get
|
|
2162
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2164
|
+
return C.longlong(int(op.Kind))
|
|
2141
2165
|
}
|
|
2142
2166
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2167
|
+
//export whatsapp_Presence_Kind_Set
|
|
2168
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2170
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2147
2171
|
}
|
|
2148
2172
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return C.longlong(op.
|
|
2173
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
2174
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2176
|
+
return C.longlong(op.LastSeen)
|
|
2153
2177
|
}
|
|
2154
2178
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2179
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
2180
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2182
|
+
op.LastSeen = int64(val)
|
|
2159
2183
|
}
|
|
2160
2184
|
|
|
2161
|
-
// --- wrapping struct: whatsapp.
|
|
2185
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2162
2186
|
//
|
|
2163
|
-
//export
|
|
2164
|
-
func
|
|
2165
|
-
return CGoHandle(
|
|
2187
|
+
//export whatsapp_Preview_CTor
|
|
2188
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2166
2190
|
}
|
|
2167
2191
|
|
|
2168
|
-
//export
|
|
2169
|
-
func
|
|
2170
|
-
op :=
|
|
2171
|
-
return C.
|
|
2192
|
+
//export whatsapp_Preview_Kind_Get
|
|
2193
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2195
|
+
return C.longlong(int(op.Kind))
|
|
2172
2196
|
}
|
|
2173
2197
|
|
|
2174
|
-
//export
|
|
2175
|
-
func
|
|
2176
|
-
op :=
|
|
2177
|
-
op.
|
|
2198
|
+
//export whatsapp_Preview_Kind_Set
|
|
2199
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2201
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2178
2202
|
}
|
|
2179
2203
|
|
|
2180
|
-
//export
|
|
2181
|
-
func
|
|
2182
|
-
op :=
|
|
2183
|
-
return C.CString(op.
|
|
2204
|
+
//export whatsapp_Preview_URL_Get
|
|
2205
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2207
|
+
return C.CString(op.URL)
|
|
2184
2208
|
}
|
|
2185
2209
|
|
|
2186
|
-
//export
|
|
2187
|
-
func
|
|
2188
|
-
op :=
|
|
2189
|
-
op.
|
|
2210
|
+
//export whatsapp_Preview_URL_Set
|
|
2211
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2213
|
+
op.URL = C.GoString(val)
|
|
2190
2214
|
}
|
|
2191
2215
|
|
|
2192
|
-
//
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2216
|
+
//export whatsapp_Preview_Title_Get
|
|
2217
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2219
|
+
return C.CString(op.Title)
|
|
2197
2220
|
}
|
|
2198
2221
|
|
|
2199
|
-
//export
|
|
2200
|
-
func
|
|
2201
|
-
op :=
|
|
2202
|
-
|
|
2222
|
+
//export whatsapp_Preview_Title_Set
|
|
2223
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2225
|
+
op.Title = C.GoString(val)
|
|
2203
2226
|
}
|
|
2204
2227
|
|
|
2205
|
-
//export
|
|
2206
|
-
func
|
|
2207
|
-
op :=
|
|
2208
|
-
|
|
2228
|
+
//export whatsapp_Preview_Description_Get
|
|
2229
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2231
|
+
return C.CString(op.Description)
|
|
2209
2232
|
}
|
|
2210
2233
|
|
|
2211
|
-
//export
|
|
2212
|
-
func
|
|
2213
|
-
op :=
|
|
2214
|
-
|
|
2234
|
+
//export whatsapp_Preview_Description_Set
|
|
2235
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2237
|
+
op.Description = C.GoString(val)
|
|
2215
2238
|
}
|
|
2216
2239
|
|
|
2217
|
-
//export
|
|
2218
|
-
func
|
|
2219
|
-
op :=
|
|
2220
|
-
op.
|
|
2240
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2241
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2242
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2243
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2221
2244
|
}
|
|
2222
2245
|
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
op :=
|
|
2226
|
-
|
|
2246
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2247
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2248
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2249
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2227
2250
|
}
|
|
2228
2251
|
|
|
2229
|
-
//
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2252
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2253
|
+
//
|
|
2254
|
+
//export whatsapp_Attachment_CTor
|
|
2255
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2256
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2233
2257
|
}
|
|
2234
2258
|
|
|
2235
|
-
//export
|
|
2236
|
-
func
|
|
2237
|
-
op :=
|
|
2238
|
-
return C.CString(op.
|
|
2259
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2260
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2262
|
+
return C.CString(op.MIME)
|
|
2239
2263
|
}
|
|
2240
2264
|
|
|
2241
|
-
//export
|
|
2242
|
-
func
|
|
2243
|
-
op :=
|
|
2244
|
-
op.
|
|
2265
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2266
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2268
|
+
op.MIME = C.GoString(val)
|
|
2245
2269
|
}
|
|
2246
2270
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
op :=
|
|
2250
|
-
return C.CString(op.
|
|
2271
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2272
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2274
|
+
return C.CString(op.Filename)
|
|
2251
2275
|
}
|
|
2252
2276
|
|
|
2253
|
-
//export
|
|
2254
|
-
func
|
|
2255
|
-
op :=
|
|
2256
|
-
op.
|
|
2277
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2278
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2280
|
+
op.Filename = C.GoString(val)
|
|
2257
2281
|
}
|
|
2258
2282
|
|
|
2259
|
-
//export
|
|
2260
|
-
func
|
|
2261
|
-
op :=
|
|
2262
|
-
return C.CString(op.
|
|
2283
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2284
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2286
|
+
return C.CString(op.Caption)
|
|
2263
2287
|
}
|
|
2264
2288
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
op :=
|
|
2268
|
-
op.
|
|
2289
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2290
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2292
|
+
op.Caption = C.GoString(val)
|
|
2269
2293
|
}
|
|
2270
2294
|
|
|
2271
|
-
//export
|
|
2272
|
-
func
|
|
2273
|
-
op :=
|
|
2274
|
-
return
|
|
2295
|
+
//export whatsapp_Attachment_Data_Get
|
|
2296
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2298
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2275
2299
|
}
|
|
2276
2300
|
|
|
2277
|
-
//export
|
|
2278
|
-
func
|
|
2279
|
-
op :=
|
|
2280
|
-
op.
|
|
2301
|
+
//export whatsapp_Attachment_Data_Set
|
|
2302
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2304
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2281
2305
|
}
|
|
2282
2306
|
|
|
2283
|
-
//export
|
|
2284
|
-
func
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2307
|
+
//export whatsapp_Attachment_GetSpec
|
|
2308
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2309
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2310
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2311
|
+
if __err != nil {
|
|
2312
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2313
|
+
}
|
|
2314
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2288
2315
|
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2316
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2317
|
+
if __err != nil {
|
|
2318
|
+
estr := C.CString(__err.Error())
|
|
2319
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2320
|
+
C.free(unsafe.Pointer(estr))
|
|
2321
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2322
|
+
}
|
|
2323
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2293
2324
|
}
|
|
2294
2325
|
|
|
2295
|
-
//
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2326
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2327
|
+
//
|
|
2328
|
+
//export whatsapp_EventPayload_CTor
|
|
2329
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2330
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2299
2331
|
}
|
|
2300
2332
|
|
|
2301
|
-
//export
|
|
2302
|
-
func
|
|
2303
|
-
op :=
|
|
2304
|
-
op.
|
|
2333
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2334
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2335
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2336
|
+
return C.CString(op.QRCode)
|
|
2305
2337
|
}
|
|
2306
2338
|
|
|
2307
|
-
//export
|
|
2308
|
-
func
|
|
2309
|
-
op :=
|
|
2310
|
-
|
|
2339
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2340
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2341
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2342
|
+
op.QRCode = C.GoString(val)
|
|
2311
2343
|
}
|
|
2312
2344
|
|
|
2313
|
-
//export
|
|
2314
|
-
func
|
|
2315
|
-
op :=
|
|
2316
|
-
|
|
2345
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2346
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2347
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2348
|
+
return C.CString(op.PairDeviceID)
|
|
2317
2349
|
}
|
|
2318
2350
|
|
|
2319
|
-
//export
|
|
2320
|
-
func
|
|
2321
|
-
op :=
|
|
2322
|
-
|
|
2351
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2352
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2353
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2354
|
+
op.PairDeviceID = C.GoString(val)
|
|
2323
2355
|
}
|
|
2324
2356
|
|
|
2325
|
-
//export
|
|
2326
|
-
func
|
|
2327
|
-
op :=
|
|
2328
|
-
op.
|
|
2357
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2358
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2359
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2360
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2329
2361
|
}
|
|
2330
2362
|
|
|
2331
|
-
//export
|
|
2332
|
-
func
|
|
2333
|
-
op :=
|
|
2334
|
-
|
|
2363
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2364
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2365
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2366
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2335
2367
|
}
|
|
2336
2368
|
|
|
2337
|
-
//export
|
|
2338
|
-
func
|
|
2339
|
-
op :=
|
|
2340
|
-
op.
|
|
2369
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2370
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2371
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2372
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2341
2373
|
}
|
|
2342
2374
|
|
|
2343
|
-
//export
|
|
2344
|
-
func
|
|
2345
|
-
op :=
|
|
2346
|
-
|
|
2375
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2376
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2377
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2378
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2347
2379
|
}
|
|
2348
2380
|
|
|
2349
|
-
//export
|
|
2350
|
-
func
|
|
2351
|
-
op :=
|
|
2352
|
-
op.
|
|
2381
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2382
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2383
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2384
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2353
2385
|
}
|
|
2354
2386
|
|
|
2355
|
-
//export
|
|
2356
|
-
func
|
|
2357
|
-
op :=
|
|
2358
|
-
|
|
2387
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2388
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2389
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2390
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2359
2391
|
}
|
|
2360
2392
|
|
|
2361
|
-
//export
|
|
2362
|
-
func
|
|
2363
|
-
op :=
|
|
2364
|
-
op.
|
|
2393
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2394
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2395
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2396
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2365
2397
|
}
|
|
2366
2398
|
|
|
2367
|
-
//export
|
|
2368
|
-
func
|
|
2369
|
-
op :=
|
|
2370
|
-
|
|
2399
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2400
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2401
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2402
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2371
2403
|
}
|
|
2372
2404
|
|
|
2373
|
-
//export
|
|
2374
|
-
func
|
|
2375
|
-
op :=
|
|
2376
|
-
op.
|
|
2405
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2406
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2407
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2408
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2377
2409
|
}
|
|
2378
2410
|
|
|
2379
|
-
//export
|
|
2380
|
-
func
|
|
2381
|
-
op :=
|
|
2382
|
-
|
|
2411
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2412
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2413
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2414
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2383
2415
|
}
|
|
2384
2416
|
|
|
2385
|
-
//export
|
|
2386
|
-
func
|
|
2387
|
-
op :=
|
|
2388
|
-
op.
|
|
2417
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2418
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2419
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2420
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2389
2421
|
}
|
|
2390
2422
|
|
|
2391
|
-
//export
|
|
2392
|
-
func
|
|
2393
|
-
op :=
|
|
2394
|
-
|
|
2423
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2424
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2425
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2426
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2395
2427
|
}
|
|
2396
2428
|
|
|
2397
|
-
//export
|
|
2398
|
-
func
|
|
2399
|
-
op :=
|
|
2400
|
-
op.
|
|
2429
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2430
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2431
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2432
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2401
2433
|
}
|
|
2402
2434
|
|
|
2403
|
-
//export
|
|
2404
|
-
func
|
|
2405
|
-
op :=
|
|
2406
|
-
|
|
2435
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2436
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2437
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2438
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2407
2439
|
}
|
|
2408
2440
|
|
|
2409
|
-
//export
|
|
2410
|
-
func
|
|
2411
|
-
op :=
|
|
2412
|
-
op.
|
|
2441
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2442
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2443
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2444
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2413
2445
|
}
|
|
2414
2446
|
|
|
2415
|
-
//export
|
|
2416
|
-
func
|
|
2417
|
-
op :=
|
|
2418
|
-
|
|
2447
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2448
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2449
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2450
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2419
2451
|
}
|
|
2420
2452
|
|
|
2421
|
-
//export
|
|
2422
|
-
func
|
|
2423
|
-
op :=
|
|
2424
|
-
op.
|
|
2453
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2454
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2455
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2456
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2425
2457
|
}
|
|
2426
2458
|
|
|
2427
|
-
//
|
|
2459
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2460
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2461
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2462
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2428
2466
|
//
|
|
2429
|
-
//export
|
|
2430
|
-
func
|
|
2431
|
-
return CGoHandle(
|
|
2467
|
+
//export whatsapp_Location_CTor
|
|
2468
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2469
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2432
2470
|
}
|
|
2433
2471
|
|
|
2434
|
-
//export
|
|
2435
|
-
func
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
return errorGoToPy(nil)
|
|
2440
|
-
}
|
|
2441
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2472
|
+
//export whatsapp_Location_Latitude_Get
|
|
2473
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2474
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2475
|
+
return C.double(op.Latitude)
|
|
2476
|
+
}
|
|
2442
2477
|
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
return estr
|
|
2448
|
-
}
|
|
2449
|
-
return C.CString("")
|
|
2478
|
+
//export whatsapp_Location_Latitude_Set
|
|
2479
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2480
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2481
|
+
op.Latitude = float64(val)
|
|
2450
2482
|
}
|
|
2451
2483
|
|
|
2452
|
-
//export
|
|
2453
|
-
func
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
return errorGoToPy(nil)
|
|
2458
|
-
}
|
|
2459
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2484
|
+
//export whatsapp_Location_Longitude_Get
|
|
2485
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2486
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2487
|
+
return C.double(op.Longitude)
|
|
2488
|
+
}
|
|
2460
2489
|
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
return estr
|
|
2466
|
-
}
|
|
2467
|
-
return C.CString("")
|
|
2490
|
+
//export whatsapp_Location_Longitude_Set
|
|
2491
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2492
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2493
|
+
op.Longitude = float64(val)
|
|
2468
2494
|
}
|
|
2469
2495
|
|
|
2470
|
-
//export
|
|
2471
|
-
func
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
return errorGoToPy(nil)
|
|
2476
|
-
}
|
|
2477
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2496
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2497
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2498
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2499
|
+
return C.longlong(op.Accuracy)
|
|
2500
|
+
}
|
|
2478
2501
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
return estr
|
|
2484
|
-
}
|
|
2485
|
-
return C.CString("")
|
|
2502
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2503
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2504
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2505
|
+
op.Accuracy = int(val)
|
|
2486
2506
|
}
|
|
2487
2507
|
|
|
2488
|
-
//export
|
|
2489
|
-
func
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
if __err != nil {
|
|
2493
|
-
return C.CString("")
|
|
2494
|
-
}
|
|
2495
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2496
|
-
|
|
2497
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2498
|
-
if __err != nil {
|
|
2499
|
-
estr := C.CString(__err.Error())
|
|
2500
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2501
|
-
C.free(unsafe.Pointer(estr))
|
|
2502
|
-
return C.CString("")
|
|
2503
|
-
}
|
|
2504
|
-
return C.CString(cret)
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
//export whatsapp_Session_SendMessage
|
|
2508
|
-
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2509
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
2510
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2511
|
-
if __err != nil {
|
|
2512
|
-
return errorGoToPy(nil)
|
|
2513
|
-
}
|
|
2514
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2515
|
-
|
|
2516
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2517
|
-
if __err != nil {
|
|
2518
|
-
estr := C.CString(__err.Error())
|
|
2519
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2520
|
-
return estr
|
|
2521
|
-
}
|
|
2522
|
-
return C.CString("")
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
//export whatsapp_Session_GenerateMessageID
|
|
2526
|
-
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2527
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
2528
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2529
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2530
|
-
if __err != nil {
|
|
2531
|
-
return C.CString("")
|
|
2532
|
-
}
|
|
2533
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2534
|
-
|
|
2508
|
+
//export whatsapp_Location_IsLive_Get
|
|
2509
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2510
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2511
|
+
return boolGoToPy(op.IsLive)
|
|
2535
2512
|
}
|
|
2536
2513
|
|
|
2537
|
-
//export
|
|
2538
|
-
func
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
if __err != nil {
|
|
2542
|
-
return errorGoToPy(nil)
|
|
2543
|
-
}
|
|
2544
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2545
|
-
|
|
2546
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2547
|
-
if __err != nil {
|
|
2548
|
-
estr := C.CString(__err.Error())
|
|
2549
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2550
|
-
return estr
|
|
2551
|
-
}
|
|
2552
|
-
return C.CString("")
|
|
2514
|
+
//export whatsapp_Location_IsLive_Set
|
|
2515
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2516
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2517
|
+
op.IsLive = boolPyToGo(val)
|
|
2553
2518
|
}
|
|
2554
2519
|
|
|
2555
|
-
//export
|
|
2556
|
-
func
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
if __err != nil {
|
|
2560
|
-
return errorGoToPy(nil)
|
|
2561
|
-
}
|
|
2562
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2563
|
-
|
|
2564
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2565
|
-
if __err != nil {
|
|
2566
|
-
estr := C.CString(__err.Error())
|
|
2567
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2568
|
-
return estr
|
|
2569
|
-
}
|
|
2570
|
-
return C.CString("")
|
|
2520
|
+
//export whatsapp_Location_Name_Get
|
|
2521
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2522
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2523
|
+
return C.CString(op.Name)
|
|
2571
2524
|
}
|
|
2572
2525
|
|
|
2573
|
-
//export
|
|
2574
|
-
func
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
if __err != nil {
|
|
2578
|
-
return errorGoToPy(nil)
|
|
2579
|
-
}
|
|
2580
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2581
|
-
|
|
2582
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2583
|
-
if __err != nil {
|
|
2584
|
-
estr := C.CString(__err.Error())
|
|
2585
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2586
|
-
return estr
|
|
2587
|
-
}
|
|
2588
|
-
return C.CString("")
|
|
2526
|
+
//export whatsapp_Location_Name_Set
|
|
2527
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2528
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2529
|
+
op.Name = C.GoString(val)
|
|
2589
2530
|
}
|
|
2590
2531
|
|
|
2591
|
-
//export
|
|
2592
|
-
func
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
if __err != nil {
|
|
2596
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2597
|
-
}
|
|
2598
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2599
|
-
|
|
2600
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2601
|
-
if __err != nil {
|
|
2602
|
-
estr := C.CString(__err.Error())
|
|
2603
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2604
|
-
C.free(unsafe.Pointer(estr))
|
|
2605
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2606
|
-
}
|
|
2607
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2532
|
+
//export whatsapp_Location_Address_Get
|
|
2533
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2534
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2535
|
+
return C.CString(op.Address)
|
|
2608
2536
|
}
|
|
2609
2537
|
|
|
2610
|
-
//export
|
|
2611
|
-
func
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
if __err != nil {
|
|
2615
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2616
|
-
}
|
|
2617
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2618
|
-
|
|
2619
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2620
|
-
if __err != nil {
|
|
2621
|
-
estr := C.CString(__err.Error())
|
|
2622
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2623
|
-
C.free(unsafe.Pointer(estr))
|
|
2624
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2625
|
-
}
|
|
2626
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2538
|
+
//export whatsapp_Location_Address_Set
|
|
2539
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2540
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2541
|
+
op.Address = C.GoString(val)
|
|
2627
2542
|
}
|
|
2628
2543
|
|
|
2629
|
-
//export
|
|
2630
|
-
func
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
if __err != nil {
|
|
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))
|
|
2637
|
-
|
|
2638
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2639
|
-
if __err != nil {
|
|
2640
|
-
estr := C.CString(__err.Error())
|
|
2641
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2642
|
-
C.free(unsafe.Pointer(estr))
|
|
2643
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
2644
|
-
}
|
|
2645
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
2544
|
+
//export whatsapp_Location_URL_Get
|
|
2545
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2546
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2547
|
+
return C.CString(op.URL)
|
|
2646
2548
|
}
|
|
2647
2549
|
|
|
2648
|
-
//export
|
|
2649
|
-
func
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
if __err != nil {
|
|
2653
|
-
return errorGoToPy(nil)
|
|
2654
|
-
}
|
|
2655
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2656
|
-
|
|
2657
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2658
|
-
if __err != nil {
|
|
2659
|
-
estr := C.CString(__err.Error())
|
|
2660
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2661
|
-
return estr
|
|
2662
|
-
}
|
|
2663
|
-
return C.CString("")
|
|
2550
|
+
//export whatsapp_Location_URL_Set
|
|
2551
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2552
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2553
|
+
op.URL = C.GoString(val)
|
|
2664
2554
|
}
|
|
2665
2555
|
|
|
2666
|
-
//
|
|
2667
|
-
|
|
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))
|
|
2674
|
-
|
|
2675
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2676
|
-
if __err != nil {
|
|
2677
|
-
estr := C.CString(__err.Error())
|
|
2678
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2679
|
-
C.free(unsafe.Pointer(estr))
|
|
2680
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2681
|
-
}
|
|
2682
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2556
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2557
|
+
//
|
|
2558
|
+
//export whatsapp_PollOption_CTor
|
|
2559
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2560
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2683
2561
|
}
|
|
2684
2562
|
|
|
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)
|
|
2563
|
+
//export whatsapp_PollOption_Title_Get
|
|
2564
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2565
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2566
|
+
return C.CString(op.Title)
|
|
2702
2567
|
}
|
|
2703
2568
|
|
|
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("")
|
|
2569
|
+
//export whatsapp_PollOption_Title_Set
|
|
2570
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2571
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2572
|
+
op.Title = C.GoString(val)
|
|
2720
2573
|
}
|
|
2721
2574
|
|
|
2722
|
-
//
|
|
2723
|
-
|
|
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))
|
|
2730
|
-
|
|
2731
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2732
|
-
if __err != nil {
|
|
2733
|
-
estr := C.CString(__err.Error())
|
|
2734
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2735
|
-
return estr
|
|
2736
|
-
}
|
|
2737
|
-
return C.CString("")
|
|
2575
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
2576
|
+
//
|
|
2577
|
+
//export whatsapp_LoggedOut_CTor
|
|
2578
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
2579
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2738
2580
|
}
|
|
2739
2581
|
|
|
2740
|
-
//export
|
|
2741
|
-
func
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
if __err != nil {
|
|
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))
|
|
2748
|
-
|
|
2749
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2750
|
-
if __err != nil {
|
|
2751
|
-
estr := C.CString(__err.Error())
|
|
2752
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2753
|
-
C.free(unsafe.Pointer(estr))
|
|
2754
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2755
|
-
}
|
|
2756
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2582
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
2583
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
2584
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2585
|
+
return C.CString(op.Reason)
|
|
2757
2586
|
}
|
|
2758
2587
|
|
|
2759
|
-
//export
|
|
2760
|
-
func
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
if __err != nil {
|
|
2764
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
2765
|
-
}
|
|
2766
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2767
|
-
|
|
2768
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2769
|
-
if __err != nil {
|
|
2770
|
-
estr := C.CString(__err.Error())
|
|
2771
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2772
|
-
C.free(unsafe.Pointer(estr))
|
|
2773
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
2774
|
-
}
|
|
2775
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2588
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
2589
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
2590
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2591
|
+
op.Reason = C.GoString(val)
|
|
2776
2592
|
}
|
|
2777
2593
|
|
|
2778
|
-
//
|
|
2779
|
-
|
|
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))
|
|
2786
|
-
|
|
2787
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2788
|
-
if __err != nil {
|
|
2789
|
-
estr := C.CString(__err.Error())
|
|
2790
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2791
|
-
return estr
|
|
2792
|
-
}
|
|
2793
|
-
return C.CString("")
|
|
2594
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
2595
|
+
//
|
|
2596
|
+
//export whatsapp_Message_CTor
|
|
2597
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
2598
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2794
2599
|
}
|
|
2795
2600
|
|
|
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
|
-
}
|
|
2601
|
+
//export whatsapp_Message_Kind_Get
|
|
2602
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2603
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2604
|
+
return C.longlong(int(op.Kind))
|
|
2834
2605
|
}
|
|
2835
2606
|
|
|
2836
|
-
//
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2607
|
+
//export whatsapp_Message_Kind_Set
|
|
2608
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2609
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2610
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
2841
2611
|
}
|
|
2842
2612
|
|
|
2843
|
-
//export
|
|
2844
|
-
func
|
|
2845
|
-
op :=
|
|
2846
|
-
return C.
|
|
2613
|
+
//export whatsapp_Message_ID_Get
|
|
2614
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
2615
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2616
|
+
return C.CString(op.ID)
|
|
2847
2617
|
}
|
|
2848
2618
|
|
|
2849
|
-
//export
|
|
2850
|
-
func
|
|
2851
|
-
op :=
|
|
2852
|
-
op.
|
|
2619
|
+
//export whatsapp_Message_ID_Set
|
|
2620
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
2621
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2622
|
+
op.ID = C.GoString(val)
|
|
2853
2623
|
}
|
|
2854
2624
|
|
|
2855
|
-
//export
|
|
2856
|
-
func
|
|
2857
|
-
op :=
|
|
2625
|
+
//export whatsapp_Message_JID_Get
|
|
2626
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
2627
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2858
2628
|
return C.CString(op.JID)
|
|
2859
2629
|
}
|
|
2860
2630
|
|
|
2861
|
-
//export
|
|
2862
|
-
func
|
|
2863
|
-
op :=
|
|
2631
|
+
//export whatsapp_Message_JID_Set
|
|
2632
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
2633
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2864
2634
|
op.JID = C.GoString(val)
|
|
2865
2635
|
}
|
|
2866
2636
|
|
|
2867
|
-
//export
|
|
2868
|
-
func
|
|
2869
|
-
op :=
|
|
2870
|
-
return C.
|
|
2637
|
+
//export whatsapp_Message_GroupJID_Get
|
|
2638
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2639
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2640
|
+
return C.CString(op.GroupJID)
|
|
2871
2641
|
}
|
|
2872
2642
|
|
|
2873
|
-
//export
|
|
2874
|
-
func
|
|
2875
|
-
op :=
|
|
2876
|
-
op.
|
|
2643
|
+
//export whatsapp_Message_GroupJID_Set
|
|
2644
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2645
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2646
|
+
op.GroupJID = C.GoString(val)
|
|
2877
2647
|
}
|
|
2878
2648
|
|
|
2879
|
-
//
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2649
|
+
//export whatsapp_Message_OriginJID_Get
|
|
2650
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
2651
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2652
|
+
return C.CString(op.OriginJID)
|
|
2884
2653
|
}
|
|
2885
2654
|
|
|
2886
|
-
//export
|
|
2887
|
-
func
|
|
2888
|
-
op :=
|
|
2889
|
-
|
|
2655
|
+
//export whatsapp_Message_OriginJID_Set
|
|
2656
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
2657
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2658
|
+
op.OriginJID = C.GoString(val)
|
|
2890
2659
|
}
|
|
2891
2660
|
|
|
2892
|
-
//export
|
|
2893
|
-
func
|
|
2894
|
-
op :=
|
|
2895
|
-
|
|
2661
|
+
//export whatsapp_Message_Body_Get
|
|
2662
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
2663
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2664
|
+
return C.CString(op.Body)
|
|
2896
2665
|
}
|
|
2897
2666
|
|
|
2898
|
-
//export
|
|
2899
|
-
func
|
|
2900
|
-
op :=
|
|
2901
|
-
|
|
2667
|
+
//export whatsapp_Message_Body_Set
|
|
2668
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
2669
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2670
|
+
op.Body = C.GoString(val)
|
|
2902
2671
|
}
|
|
2903
2672
|
|
|
2904
|
-
//export
|
|
2905
|
-
func
|
|
2906
|
-
op :=
|
|
2907
|
-
|
|
2673
|
+
//export whatsapp_Message_Timestamp_Get
|
|
2674
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2675
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2676
|
+
return C.longlong(op.Timestamp)
|
|
2908
2677
|
}
|
|
2909
2678
|
|
|
2910
|
-
//export
|
|
2911
|
-
func
|
|
2912
|
-
op :=
|
|
2913
|
-
|
|
2679
|
+
//export whatsapp_Message_Timestamp_Set
|
|
2680
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2681
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2682
|
+
op.Timestamp = int64(val)
|
|
2914
2683
|
}
|
|
2915
2684
|
|
|
2916
|
-
//export
|
|
2917
|
-
func
|
|
2918
|
-
op :=
|
|
2919
|
-
op.
|
|
2685
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
2686
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2687
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2688
|
+
return boolGoToPy(op.IsCarbon)
|
|
2920
2689
|
}
|
|
2921
2690
|
|
|
2922
|
-
//
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
2691
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
2692
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2693
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2694
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2927
2695
|
}
|
|
2928
2696
|
|
|
2929
|
-
//export
|
|
2930
|
-
func
|
|
2931
|
-
op :=
|
|
2932
|
-
return
|
|
2697
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
2698
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
2699
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2700
|
+
return boolGoToPy(op.IsForwarded)
|
|
2933
2701
|
}
|
|
2934
2702
|
|
|
2935
|
-
//export
|
|
2936
|
-
func
|
|
2937
|
-
op :=
|
|
2938
|
-
op.
|
|
2703
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
2704
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
2705
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2706
|
+
op.IsForwarded = boolPyToGo(val)
|
|
2939
2707
|
}
|
|
2940
2708
|
|
|
2941
|
-
//export
|
|
2942
|
-
func
|
|
2943
|
-
op :=
|
|
2944
|
-
return C.CString(op.
|
|
2709
|
+
//export whatsapp_Message_ReplyID_Get
|
|
2710
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
2711
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2712
|
+
return C.CString(op.ReplyID)
|
|
2945
2713
|
}
|
|
2946
2714
|
|
|
2947
|
-
//export
|
|
2948
|
-
func
|
|
2949
|
-
op :=
|
|
2950
|
-
op.
|
|
2715
|
+
//export whatsapp_Message_ReplyID_Set
|
|
2716
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
2717
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2718
|
+
op.ReplyID = C.GoString(val)
|
|
2951
2719
|
}
|
|
2952
2720
|
|
|
2953
|
-
//
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2721
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
2722
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
2723
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2724
|
+
return C.CString(op.ReplyBody)
|
|
2958
2725
|
}
|
|
2959
2726
|
|
|
2960
|
-
//export
|
|
2961
|
-
func
|
|
2962
|
-
op :=
|
|
2963
|
-
|
|
2727
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
2728
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
2729
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2730
|
+
op.ReplyBody = C.GoString(val)
|
|
2964
2731
|
}
|
|
2965
2732
|
|
|
2966
|
-
//export
|
|
2967
|
-
func
|
|
2968
|
-
op :=
|
|
2969
|
-
op.
|
|
2733
|
+
//export whatsapp_Message_Attachments_Get
|
|
2734
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
2735
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2736
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
2970
2737
|
}
|
|
2971
2738
|
|
|
2972
|
-
//export
|
|
2973
|
-
func
|
|
2974
|
-
op :=
|
|
2975
|
-
|
|
2739
|
+
//export whatsapp_Message_Attachments_Set
|
|
2740
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
2741
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2742
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2976
2743
|
}
|
|
2977
2744
|
|
|
2978
|
-
//export
|
|
2979
|
-
func
|
|
2980
|
-
op :=
|
|
2981
|
-
op.
|
|
2745
|
+
//export whatsapp_Message_Preview_Get
|
|
2746
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
2747
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2748
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
2982
2749
|
}
|
|
2983
2750
|
|
|
2984
|
-
//export
|
|
2985
|
-
func
|
|
2986
|
-
op :=
|
|
2987
|
-
|
|
2751
|
+
//export whatsapp_Message_Preview_Set
|
|
2752
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
2753
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2754
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
2988
2755
|
}
|
|
2989
2756
|
|
|
2990
|
-
//export
|
|
2991
|
-
func
|
|
2992
|
-
op :=
|
|
2993
|
-
op.
|
|
2757
|
+
//export whatsapp_Message_Location_Get
|
|
2758
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
2759
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2760
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
2994
2761
|
}
|
|
2995
2762
|
|
|
2996
|
-
//export
|
|
2997
|
-
func
|
|
2998
|
-
op :=
|
|
2999
|
-
|
|
2763
|
+
//export whatsapp_Message_Location_Set
|
|
2764
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
2765
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2766
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3000
2767
|
}
|
|
3001
2768
|
|
|
3002
|
-
//export
|
|
3003
|
-
func
|
|
3004
|
-
op :=
|
|
3005
|
-
op.
|
|
2769
|
+
//export whatsapp_Message_Poll_Get
|
|
2770
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
2771
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2772
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3006
2773
|
}
|
|
3007
2774
|
|
|
3008
|
-
//export
|
|
3009
|
-
func
|
|
3010
|
-
op :=
|
|
3011
|
-
|
|
2775
|
+
//export whatsapp_Message_Poll_Set
|
|
2776
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
2777
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2778
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3012
2779
|
}
|
|
3013
2780
|
|
|
3014
|
-
//export
|
|
3015
|
-
func
|
|
3016
|
-
op :=
|
|
3017
|
-
op.
|
|
2781
|
+
//export whatsapp_Message_Album_Get
|
|
2782
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
2783
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2784
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3018
2785
|
}
|
|
3019
2786
|
|
|
3020
|
-
//
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2787
|
+
//export whatsapp_Message_Album_Set
|
|
2788
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
2789
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2790
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3025
2791
|
}
|
|
3026
2792
|
|
|
3027
|
-
//export
|
|
3028
|
-
func
|
|
3029
|
-
op :=
|
|
3030
|
-
return
|
|
2793
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
2794
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
2795
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2796
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3031
2797
|
}
|
|
3032
2798
|
|
|
3033
|
-
//export
|
|
3034
|
-
func
|
|
3035
|
-
op :=
|
|
3036
|
-
op.
|
|
2799
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
2800
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
2801
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2802
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3037
2803
|
}
|
|
3038
2804
|
|
|
3039
|
-
//export
|
|
3040
|
-
func
|
|
3041
|
-
op :=
|
|
3042
|
-
return
|
|
2805
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
2806
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
2807
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2808
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3043
2809
|
}
|
|
3044
2810
|
|
|
3045
|
-
//export
|
|
3046
|
-
func
|
|
3047
|
-
op :=
|
|
3048
|
-
op.
|
|
2811
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
2812
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2813
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2814
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3049
2815
|
}
|
|
3050
2816
|
|
|
3051
|
-
//export
|
|
3052
|
-
func
|
|
3053
|
-
op :=
|
|
3054
|
-
return
|
|
2817
|
+
//export whatsapp_Message_Receipts_Get
|
|
2818
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
2819
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2820
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3055
2821
|
}
|
|
3056
2822
|
|
|
3057
|
-
//export
|
|
3058
|
-
func
|
|
3059
|
-
op :=
|
|
3060
|
-
op.
|
|
2823
|
+
//export whatsapp_Message_Receipts_Set
|
|
2824
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
2825
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2826
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3061
2827
|
}
|
|
3062
2828
|
|
|
3063
|
-
//
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2829
|
+
//export whatsapp_Message_Reactions_Get
|
|
2830
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
2831
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2832
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3068
2833
|
}
|
|
3069
2834
|
|
|
3070
|
-
//export
|
|
3071
|
-
func
|
|
3072
|
-
op :=
|
|
3073
|
-
|
|
2835
|
+
//export whatsapp_Message_Reactions_Set
|
|
2836
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
2837
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2838
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3074
2839
|
}
|
|
3075
2840
|
|
|
3076
|
-
//export
|
|
3077
|
-
func
|
|
3078
|
-
op :=
|
|
3079
|
-
op.
|
|
2841
|
+
//export whatsapp_Message_IsHistory_Get
|
|
2842
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
2843
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2844
|
+
return boolGoToPy(op.IsHistory)
|
|
3080
2845
|
}
|
|
3081
2846
|
|
|
3082
|
-
//export
|
|
3083
|
-
func
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3087
|
-
if __err != nil {
|
|
3088
|
-
return handleFromPtr_types_JID(nil)
|
|
3089
|
-
}
|
|
3090
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3091
|
-
|
|
3092
|
-
return handleFromPtr_types_JID(&cret)
|
|
2847
|
+
//export whatsapp_Message_IsHistory_Set
|
|
2848
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
2849
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2850
|
+
op.IsHistory = boolPyToGo(val)
|
|
3093
2851
|
}
|
|
3094
2852
|
|
|
3095
2853
|
// --- wrapping struct: whatsapp.Poll ---
|
|
@@ -3123,389 +2881,573 @@ func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3123
2881
|
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3124
2882
|
}
|
|
3125
2883
|
|
|
3126
|
-
// --- wrapping struct: whatsapp.
|
|
2884
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
3127
2885
|
//
|
|
3128
|
-
//export
|
|
3129
|
-
func
|
|
3130
|
-
return CGoHandle(
|
|
2886
|
+
//export whatsapp_Session_CTor
|
|
2887
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2888
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3131
2889
|
}
|
|
3132
2890
|
|
|
3133
|
-
//export
|
|
3134
|
-
func
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
2891
|
+
//export whatsapp_Session_Login
|
|
2892
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2893
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2894
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2895
|
+
if __err != nil {
|
|
2896
|
+
return errorGoToPy(nil)
|
|
2897
|
+
}
|
|
2898
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3138
2899
|
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
2900
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2901
|
+
if __err != nil {
|
|
2902
|
+
estr := C.CString(__err.Error())
|
|
2903
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2904
|
+
return estr
|
|
2905
|
+
}
|
|
2906
|
+
return C.CString("")
|
|
3143
2907
|
}
|
|
3144
2908
|
|
|
3145
|
-
//
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
2909
|
+
//export whatsapp_Session_Logout
|
|
2910
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2911
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2912
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2913
|
+
if __err != nil {
|
|
2914
|
+
return errorGoToPy(nil)
|
|
2915
|
+
}
|
|
2916
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3151
2917
|
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
2918
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2919
|
+
if __err != nil {
|
|
2920
|
+
estr := C.CString(__err.Error())
|
|
2921
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2922
|
+
return estr
|
|
2923
|
+
}
|
|
2924
|
+
return C.CString("")
|
|
3156
2925
|
}
|
|
3157
2926
|
|
|
3158
|
-
//export
|
|
3159
|
-
func
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
2927
|
+
//export whatsapp_Session_Disconnect
|
|
2928
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2929
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2930
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2931
|
+
if __err != nil {
|
|
2932
|
+
return errorGoToPy(nil)
|
|
2933
|
+
}
|
|
2934
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3163
2935
|
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
2936
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2937
|
+
if __err != nil {
|
|
2938
|
+
estr := C.CString(__err.Error())
|
|
2939
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2940
|
+
return estr
|
|
2941
|
+
}
|
|
2942
|
+
return C.CString("")
|
|
3168
2943
|
}
|
|
3169
2944
|
|
|
3170
|
-
//export
|
|
3171
|
-
func
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
2945
|
+
//export whatsapp_Session_PairPhone
|
|
2946
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2947
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2948
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2949
|
+
if __err != nil {
|
|
2950
|
+
return C.CString("")
|
|
2951
|
+
}
|
|
2952
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3175
2953
|
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
2954
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2955
|
+
if __err != nil {
|
|
2956
|
+
estr := C.CString(__err.Error())
|
|
2957
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2958
|
+
C.free(unsafe.Pointer(estr))
|
|
2959
|
+
return C.CString("")
|
|
2960
|
+
}
|
|
2961
|
+
return C.CString(cret)
|
|
3180
2962
|
}
|
|
3181
2963
|
|
|
3182
|
-
//export
|
|
3183
|
-
func
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
2964
|
+
//export whatsapp_Session_SendMessage
|
|
2965
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2966
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2967
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2968
|
+
if __err != nil {
|
|
2969
|
+
return errorGoToPy(nil)
|
|
2970
|
+
}
|
|
2971
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3187
2972
|
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
2973
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2974
|
+
if __err != nil {
|
|
2975
|
+
estr := C.CString(__err.Error())
|
|
2976
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2977
|
+
return estr
|
|
2978
|
+
}
|
|
2979
|
+
return C.CString("")
|
|
3193
2980
|
}
|
|
3194
2981
|
|
|
3195
|
-
//export
|
|
3196
|
-
func
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
2982
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2983
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2984
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2985
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2986
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2987
|
+
if __err != nil {
|
|
2988
|
+
return C.CString("")
|
|
2989
|
+
}
|
|
2990
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3200
2991
|
|
|
3201
|
-
//export whatsapp_Attachment_MIME_Set
|
|
3202
|
-
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3203
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3204
|
-
op.MIME = C.GoString(val)
|
|
3205
2992
|
}
|
|
3206
2993
|
|
|
3207
|
-
//export
|
|
3208
|
-
func
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
2994
|
+
//export whatsapp_Session_SendChatState
|
|
2995
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2996
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2997
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2998
|
+
if __err != nil {
|
|
2999
|
+
return errorGoToPy(nil)
|
|
3000
|
+
}
|
|
3001
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3212
3002
|
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3003
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3004
|
+
if __err != nil {
|
|
3005
|
+
estr := C.CString(__err.Error())
|
|
3006
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3007
|
+
return estr
|
|
3008
|
+
}
|
|
3009
|
+
return C.CString("")
|
|
3217
3010
|
}
|
|
3218
3011
|
|
|
3219
|
-
//export
|
|
3220
|
-
func
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3012
|
+
//export whatsapp_Session_SendReceipt
|
|
3013
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
3014
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3015
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3016
|
+
if __err != nil {
|
|
3017
|
+
return errorGoToPy(nil)
|
|
3018
|
+
}
|
|
3019
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3224
3020
|
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3021
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3022
|
+
if __err != nil {
|
|
3023
|
+
estr := C.CString(__err.Error())
|
|
3024
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3025
|
+
return estr
|
|
3026
|
+
}
|
|
3027
|
+
return C.CString("")
|
|
3229
3028
|
}
|
|
3230
3029
|
|
|
3231
|
-
//export
|
|
3232
|
-
func
|
|
3233
|
-
|
|
3234
|
-
|
|
3030
|
+
//export whatsapp_Session_SendPresence
|
|
3031
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
3032
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3033
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3034
|
+
if __err != nil {
|
|
3035
|
+
return errorGoToPy(nil)
|
|
3036
|
+
}
|
|
3037
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3038
|
+
|
|
3039
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3040
|
+
if __err != nil {
|
|
3041
|
+
estr := C.CString(__err.Error())
|
|
3042
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3043
|
+
return estr
|
|
3044
|
+
}
|
|
3045
|
+
return C.CString("")
|
|
3235
3046
|
}
|
|
3236
3047
|
|
|
3237
|
-
//export
|
|
3238
|
-
func
|
|
3239
|
-
|
|
3240
|
-
|
|
3048
|
+
//export whatsapp_Session_GetContacts
|
|
3049
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
3050
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3051
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3052
|
+
if __err != nil {
|
|
3053
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3054
|
+
}
|
|
3055
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3056
|
+
|
|
3057
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3058
|
+
if __err != nil {
|
|
3059
|
+
estr := C.CString(__err.Error())
|
|
3060
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3061
|
+
C.free(unsafe.Pointer(estr))
|
|
3062
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3063
|
+
}
|
|
3064
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3241
3065
|
}
|
|
3242
3066
|
|
|
3243
|
-
//export
|
|
3244
|
-
func
|
|
3067
|
+
//export whatsapp_Session_GetGroups
|
|
3068
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
3245
3069
|
_saved_thread := C.PyEval_SaveThread()
|
|
3246
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3070
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3247
3071
|
if __err != nil {
|
|
3248
|
-
return
|
|
3072
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3249
3073
|
}
|
|
3250
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
3074
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3251
3075
|
|
|
3252
3076
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3253
3077
|
if __err != nil {
|
|
3254
3078
|
estr := C.CString(__err.Error())
|
|
3255
3079
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3256
3080
|
C.free(unsafe.Pointer(estr))
|
|
3257
|
-
return
|
|
3081
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3258
3082
|
}
|
|
3259
|
-
return
|
|
3083
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3260
3084
|
}
|
|
3261
3085
|
|
|
3262
|
-
//
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3086
|
+
//export whatsapp_Session_CreateGroup
|
|
3087
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
3088
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3089
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3090
|
+
if __err != nil {
|
|
3091
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3092
|
+
}
|
|
3093
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3268
3094
|
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3095
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3096
|
+
if __err != nil {
|
|
3097
|
+
estr := C.CString(__err.Error())
|
|
3098
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3099
|
+
C.free(unsafe.Pointer(estr))
|
|
3100
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3101
|
+
}
|
|
3102
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
3273
3103
|
}
|
|
3274
3104
|
|
|
3275
|
-
//export
|
|
3276
|
-
func
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3105
|
+
//export whatsapp_Session_LeaveGroup
|
|
3106
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
3107
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3108
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3109
|
+
if __err != nil {
|
|
3110
|
+
return errorGoToPy(nil)
|
|
3111
|
+
}
|
|
3112
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3280
3113
|
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3114
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3115
|
+
if __err != nil {
|
|
3116
|
+
estr := C.CString(__err.Error())
|
|
3117
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3118
|
+
return estr
|
|
3119
|
+
}
|
|
3120
|
+
return C.CString("")
|
|
3285
3121
|
}
|
|
3286
3122
|
|
|
3287
|
-
//export
|
|
3288
|
-
func
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3123
|
+
//export whatsapp_Session_GetAvatar
|
|
3124
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
3125
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3126
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3127
|
+
if __err != nil {
|
|
3128
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3129
|
+
}
|
|
3130
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3292
3131
|
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3132
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3133
|
+
if __err != nil {
|
|
3134
|
+
estr := C.CString(__err.Error())
|
|
3135
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3136
|
+
C.free(unsafe.Pointer(estr))
|
|
3137
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3138
|
+
}
|
|
3139
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3298
3140
|
}
|
|
3299
3141
|
|
|
3300
|
-
//export
|
|
3301
|
-
func
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3142
|
+
//export whatsapp_Session_SetAvatar
|
|
3143
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
3144
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3145
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3146
|
+
if __err != nil {
|
|
3147
|
+
return C.CString("")
|
|
3148
|
+
}
|
|
3149
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3305
3150
|
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3151
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3152
|
+
if __err != nil {
|
|
3153
|
+
estr := C.CString(__err.Error())
|
|
3154
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3155
|
+
C.free(unsafe.Pointer(estr))
|
|
3156
|
+
return C.CString("")
|
|
3157
|
+
}
|
|
3158
|
+
return C.CString(cret)
|
|
3310
3159
|
}
|
|
3311
3160
|
|
|
3312
|
-
//export
|
|
3313
|
-
func
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3161
|
+
//export whatsapp_Session_SetGroupName
|
|
3162
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
3163
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3164
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3165
|
+
if __err != nil {
|
|
3166
|
+
return errorGoToPy(nil)
|
|
3167
|
+
}
|
|
3168
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3317
3169
|
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3170
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3171
|
+
if __err != nil {
|
|
3172
|
+
estr := C.CString(__err.Error())
|
|
3173
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3174
|
+
return estr
|
|
3175
|
+
}
|
|
3176
|
+
return C.CString("")
|
|
3322
3177
|
}
|
|
3323
3178
|
|
|
3324
|
-
//export
|
|
3325
|
-
func
|
|
3326
|
-
|
|
3327
|
-
|
|
3179
|
+
//export whatsapp_Session_SetGroupTopic
|
|
3180
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
3181
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3182
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3183
|
+
if __err != nil {
|
|
3184
|
+
return errorGoToPy(nil)
|
|
3185
|
+
}
|
|
3186
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3187
|
+
|
|
3188
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3189
|
+
if __err != nil {
|
|
3190
|
+
estr := C.CString(__err.Error())
|
|
3191
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3192
|
+
return estr
|
|
3193
|
+
}
|
|
3194
|
+
return C.CString("")
|
|
3328
3195
|
}
|
|
3329
3196
|
|
|
3330
|
-
//export
|
|
3331
|
-
func
|
|
3332
|
-
|
|
3333
|
-
|
|
3197
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
3198
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
3199
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3200
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3201
|
+
if __err != nil {
|
|
3202
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3203
|
+
}
|
|
3204
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3205
|
+
|
|
3206
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3207
|
+
if __err != nil {
|
|
3208
|
+
estr := C.CString(__err.Error())
|
|
3209
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3210
|
+
C.free(unsafe.Pointer(estr))
|
|
3211
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3212
|
+
}
|
|
3213
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3334
3214
|
}
|
|
3335
3215
|
|
|
3336
|
-
//export
|
|
3337
|
-
func
|
|
3338
|
-
|
|
3339
|
-
|
|
3216
|
+
//export whatsapp_Session_FindContact
|
|
3217
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
3218
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3219
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3220
|
+
if __err != nil {
|
|
3221
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3222
|
+
}
|
|
3223
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3224
|
+
|
|
3225
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3226
|
+
if __err != nil {
|
|
3227
|
+
estr := C.CString(__err.Error())
|
|
3228
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3229
|
+
C.free(unsafe.Pointer(estr))
|
|
3230
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3231
|
+
}
|
|
3232
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3340
3233
|
}
|
|
3341
3234
|
|
|
3342
|
-
//export
|
|
3343
|
-
func
|
|
3344
|
-
|
|
3345
|
-
|
|
3235
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
3236
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
3237
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3238
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3239
|
+
if __err != nil {
|
|
3240
|
+
return errorGoToPy(nil)
|
|
3241
|
+
}
|
|
3242
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3243
|
+
|
|
3244
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3245
|
+
if __err != nil {
|
|
3246
|
+
estr := C.CString(__err.Error())
|
|
3247
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3248
|
+
return estr
|
|
3249
|
+
}
|
|
3250
|
+
return C.CString("")
|
|
3346
3251
|
}
|
|
3347
3252
|
|
|
3348
|
-
//export
|
|
3349
|
-
func
|
|
3350
|
-
|
|
3351
|
-
|
|
3253
|
+
//export whatsapp_Session_SetEventHandler
|
|
3254
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
3255
|
+
_fun_arg := h
|
|
3256
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3257
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3258
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3259
|
+
if __err != nil {
|
|
3260
|
+
return
|
|
3261
|
+
}
|
|
3262
|
+
if boolPyToGo(goRun) {
|
|
3263
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3264
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3265
|
+
return
|
|
3266
|
+
}
|
|
3267
|
+
_gstate := C.PyGILState_Ensure()
|
|
3268
|
+
_fcargs := C.PyTuple_New(2)
|
|
3269
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3270
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3271
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3272
|
+
C.gopy_decref(_fcargs)
|
|
3273
|
+
C.gopy_err_handle()
|
|
3274
|
+
C.PyGILState_Release(_gstate)
|
|
3275
|
+
})
|
|
3276
|
+
} else {
|
|
3277
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3278
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3279
|
+
return
|
|
3280
|
+
}
|
|
3281
|
+
_gstate := C.PyGILState_Ensure()
|
|
3282
|
+
_fcargs := C.PyTuple_New(2)
|
|
3283
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3284
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3285
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3286
|
+
C.gopy_decref(_fcargs)
|
|
3287
|
+
C.gopy_err_handle()
|
|
3288
|
+
C.PyGILState_Release(_gstate)
|
|
3289
|
+
})
|
|
3290
|
+
}
|
|
3352
3291
|
}
|
|
3353
3292
|
|
|
3354
|
-
//
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3293
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
3294
|
+
//
|
|
3295
|
+
//export whatsapp_Call_CTor
|
|
3296
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
3297
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3358
3298
|
}
|
|
3359
3299
|
|
|
3360
|
-
//export
|
|
3361
|
-
func
|
|
3362
|
-
op :=
|
|
3363
|
-
return
|
|
3300
|
+
//export whatsapp_Call_State_Get
|
|
3301
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3303
|
+
return C.longlong(int(op.State))
|
|
3364
3304
|
}
|
|
3365
3305
|
|
|
3366
|
-
//export
|
|
3367
|
-
func
|
|
3368
|
-
op :=
|
|
3369
|
-
op.
|
|
3306
|
+
//export whatsapp_Call_State_Set
|
|
3307
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3308
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3309
|
+
op.State = whatsapp.CallState(int(val))
|
|
3370
3310
|
}
|
|
3371
3311
|
|
|
3372
|
-
//export
|
|
3373
|
-
func
|
|
3374
|
-
op :=
|
|
3375
|
-
return
|
|
3312
|
+
//export whatsapp_Call_JID_Get
|
|
3313
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3314
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3315
|
+
return C.CString(op.JID)
|
|
3376
3316
|
}
|
|
3377
3317
|
|
|
3378
|
-
//export
|
|
3379
|
-
func
|
|
3380
|
-
op :=
|
|
3381
|
-
op.
|
|
3318
|
+
//export whatsapp_Call_JID_Set
|
|
3319
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3320
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3321
|
+
op.JID = C.GoString(val)
|
|
3382
3322
|
}
|
|
3383
3323
|
|
|
3384
|
-
//export
|
|
3385
|
-
func
|
|
3386
|
-
op :=
|
|
3387
|
-
return
|
|
3324
|
+
//export whatsapp_Call_Timestamp_Get
|
|
3325
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3326
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3327
|
+
return C.longlong(op.Timestamp)
|
|
3388
3328
|
}
|
|
3389
3329
|
|
|
3390
|
-
//export
|
|
3391
|
-
func
|
|
3392
|
-
op :=
|
|
3393
|
-
op.
|
|
3330
|
+
//export whatsapp_Call_Timestamp_Set
|
|
3331
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3332
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3333
|
+
op.Timestamp = int64(val)
|
|
3394
3334
|
}
|
|
3395
3335
|
|
|
3396
|
-
//
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3336
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
3337
|
+
//
|
|
3338
|
+
//export whatsapp_ChatState_CTor
|
|
3339
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
3340
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3400
3341
|
}
|
|
3401
3342
|
|
|
3402
|
-
//export
|
|
3403
|
-
func
|
|
3404
|
-
op :=
|
|
3405
|
-
op.
|
|
3343
|
+
//export whatsapp_ChatState_Kind_Get
|
|
3344
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
3345
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3346
|
+
return C.longlong(int(op.Kind))
|
|
3406
3347
|
}
|
|
3407
3348
|
|
|
3408
|
-
//export
|
|
3409
|
-
func
|
|
3410
|
-
op :=
|
|
3411
|
-
|
|
3349
|
+
//export whatsapp_ChatState_Kind_Set
|
|
3350
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3351
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3352
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
3412
3353
|
}
|
|
3413
3354
|
|
|
3414
|
-
//export
|
|
3415
|
-
func
|
|
3416
|
-
op :=
|
|
3417
|
-
op.
|
|
3355
|
+
//export whatsapp_ChatState_JID_Get
|
|
3356
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
3357
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3358
|
+
return C.CString(op.JID)
|
|
3418
3359
|
}
|
|
3419
3360
|
|
|
3420
|
-
//
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3361
|
+
//export whatsapp_ChatState_JID_Set
|
|
3362
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
3363
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3364
|
+
op.JID = C.GoString(val)
|
|
3425
3365
|
}
|
|
3426
3366
|
|
|
3427
|
-
//export
|
|
3428
|
-
func
|
|
3429
|
-
op :=
|
|
3430
|
-
return C.
|
|
3367
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
3368
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3369
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3370
|
+
return C.CString(op.GroupJID)
|
|
3431
3371
|
}
|
|
3432
3372
|
|
|
3433
|
-
//export
|
|
3434
|
-
func
|
|
3435
|
-
op :=
|
|
3436
|
-
op.
|
|
3373
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
3374
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3375
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3376
|
+
op.GroupJID = C.GoString(val)
|
|
3437
3377
|
}
|
|
3438
3378
|
|
|
3439
|
-
//
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3379
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3380
|
+
//
|
|
3381
|
+
//export whatsapp_Connect_CTor
|
|
3382
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3383
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3443
3384
|
}
|
|
3444
3385
|
|
|
3445
|
-
//export
|
|
3446
|
-
func
|
|
3447
|
-
op :=
|
|
3448
|
-
op.
|
|
3386
|
+
//export whatsapp_Connect_JID_Get
|
|
3387
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3388
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3389
|
+
return C.CString(op.JID)
|
|
3449
3390
|
}
|
|
3450
3391
|
|
|
3451
|
-
//export
|
|
3452
|
-
func
|
|
3453
|
-
op :=
|
|
3454
|
-
|
|
3392
|
+
//export whatsapp_Connect_JID_Set
|
|
3393
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3394
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3395
|
+
op.JID = C.GoString(val)
|
|
3455
3396
|
}
|
|
3456
3397
|
|
|
3457
|
-
//export
|
|
3458
|
-
func
|
|
3459
|
-
op :=
|
|
3460
|
-
op.
|
|
3398
|
+
//export whatsapp_Connect_Error_Get
|
|
3399
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3400
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3401
|
+
return C.CString(op.Error)
|
|
3461
3402
|
}
|
|
3462
3403
|
|
|
3463
|
-
//export
|
|
3464
|
-
func
|
|
3465
|
-
op :=
|
|
3466
|
-
|
|
3404
|
+
//export whatsapp_Connect_Error_Set
|
|
3405
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3406
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3407
|
+
op.Error = C.GoString(val)
|
|
3467
3408
|
}
|
|
3468
3409
|
|
|
3469
|
-
//
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3410
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3411
|
+
//
|
|
3412
|
+
//export whatsapp_GroupSubject_CTor
|
|
3413
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3414
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3473
3415
|
}
|
|
3474
3416
|
|
|
3475
|
-
//export
|
|
3476
|
-
func
|
|
3477
|
-
op :=
|
|
3478
|
-
return C.CString(op.
|
|
3417
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3418
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3419
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3420
|
+
return C.CString(op.Subject)
|
|
3479
3421
|
}
|
|
3480
3422
|
|
|
3481
|
-
//export
|
|
3482
|
-
func
|
|
3483
|
-
op :=
|
|
3484
|
-
op.
|
|
3423
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3424
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3425
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3426
|
+
op.Subject = C.GoString(val)
|
|
3485
3427
|
}
|
|
3486
3428
|
|
|
3487
|
-
//export
|
|
3488
|
-
func
|
|
3489
|
-
op :=
|
|
3490
|
-
return C.
|
|
3429
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3430
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3431
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3432
|
+
return C.longlong(op.SetAt)
|
|
3491
3433
|
}
|
|
3492
3434
|
|
|
3493
|
-
//export
|
|
3494
|
-
func
|
|
3495
|
-
op :=
|
|
3496
|
-
op.
|
|
3435
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3436
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3437
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3438
|
+
op.SetAt = int64(val)
|
|
3497
3439
|
}
|
|
3498
3440
|
|
|
3499
|
-
//export
|
|
3500
|
-
func
|
|
3501
|
-
op :=
|
|
3502
|
-
return C.CString(op.
|
|
3441
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
3442
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
3443
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3444
|
+
return C.CString(op.SetBy)
|
|
3503
3445
|
}
|
|
3504
3446
|
|
|
3505
|
-
//export
|
|
3506
|
-
func
|
|
3507
|
-
op :=
|
|
3508
|
-
op.
|
|
3447
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
3448
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
3449
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3450
|
+
op.SetBy = C.GoString(val)
|
|
3509
3451
|
}
|
|
3510
3452
|
|
|
3511
3453
|
// --- wrapping struct: whatsapp.Receipt ---
|
|
@@ -3581,10 +3523,53 @@ func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
|
3581
3523
|
return boolGoToPy(op.IsCarbon)
|
|
3582
3524
|
}
|
|
3583
3525
|
|
|
3584
|
-
//export whatsapp_Receipt_IsCarbon_Set
|
|
3585
|
-
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3586
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3587
|
-
op.IsCarbon = boolPyToGo(val)
|
|
3526
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3527
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3528
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3529
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
3533
|
+
//
|
|
3534
|
+
//export whatsapp_Album_CTor
|
|
3535
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
3536
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
3540
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
3541
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3542
|
+
return boolGoToPy(op.IsAlbum)
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
3546
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
3547
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3548
|
+
op.IsAlbum = boolPyToGo(val)
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
//export whatsapp_Album_ImageCount_Get
|
|
3552
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
3553
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3554
|
+
return C.longlong(op.ImageCount)
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
//export whatsapp_Album_ImageCount_Set
|
|
3558
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
3559
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3560
|
+
op.ImageCount = int(val)
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
//export whatsapp_Album_VideoCount_Get
|
|
3564
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
3565
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3566
|
+
return C.longlong(op.VideoCount)
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
//export whatsapp_Album_VideoCount_Set
|
|
3570
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
3571
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3572
|
+
op.VideoCount = int(val)
|
|
3588
3573
|
}
|
|
3589
3574
|
|
|
3590
3575
|
// --- wrapping struct: whatsapp.Gateway ---
|
|
@@ -3690,114 +3675,232 @@ func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.cha
|
|
|
3690
3675
|
return C.CString("")
|
|
3691
3676
|
}
|
|
3692
3677
|
|
|
3693
|
-
// --- wrapping struct: whatsapp.
|
|
3678
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3694
3679
|
//
|
|
3695
|
-
//export
|
|
3696
|
-
func
|
|
3697
|
-
return CGoHandle(
|
|
3680
|
+
//export whatsapp_Group_CTor
|
|
3681
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3682
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3698
3683
|
}
|
|
3699
3684
|
|
|
3700
|
-
//export
|
|
3701
|
-
func
|
|
3702
|
-
op :=
|
|
3703
|
-
return C.CString(op.
|
|
3685
|
+
//export whatsapp_Group_JID_Get
|
|
3686
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3687
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3688
|
+
return C.CString(op.JID)
|
|
3704
3689
|
}
|
|
3705
3690
|
|
|
3706
|
-
//export
|
|
3707
|
-
func
|
|
3708
|
-
op :=
|
|
3709
|
-
op.
|
|
3691
|
+
//export whatsapp_Group_JID_Set
|
|
3692
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3693
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3694
|
+
op.JID = C.GoString(val)
|
|
3710
3695
|
}
|
|
3711
3696
|
|
|
3712
|
-
//export
|
|
3713
|
-
func
|
|
3714
|
-
op :=
|
|
3715
|
-
return C.
|
|
3697
|
+
//export whatsapp_Group_Name_Get
|
|
3698
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3699
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3700
|
+
return C.CString(op.Name)
|
|
3716
3701
|
}
|
|
3717
3702
|
|
|
3718
|
-
//export
|
|
3719
|
-
func
|
|
3720
|
-
op :=
|
|
3721
|
-
op.
|
|
3703
|
+
//export whatsapp_Group_Name_Set
|
|
3704
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3705
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3706
|
+
op.Name = C.GoString(val)
|
|
3722
3707
|
}
|
|
3723
3708
|
|
|
3724
|
-
//export
|
|
3725
|
-
func
|
|
3726
|
-
op :=
|
|
3727
|
-
return
|
|
3709
|
+
//export whatsapp_Group_Subject_Get
|
|
3710
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3711
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3712
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3728
3713
|
}
|
|
3729
3714
|
|
|
3730
|
-
//export
|
|
3731
|
-
func
|
|
3732
|
-
op :=
|
|
3733
|
-
op.
|
|
3715
|
+
//export whatsapp_Group_Subject_Set
|
|
3716
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3717
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3718
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3734
3719
|
}
|
|
3735
3720
|
|
|
3736
|
-
//
|
|
3721
|
+
//export whatsapp_Group_Nickname_Get
|
|
3722
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3723
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3724
|
+
return C.CString(op.Nickname)
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
//export whatsapp_Group_Nickname_Set
|
|
3728
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3729
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3730
|
+
op.Nickname = C.GoString(val)
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
//export whatsapp_Group_Participants_Get
|
|
3734
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3735
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3736
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3737
|
+
}
|
|
3738
|
+
|
|
3739
|
+
//export whatsapp_Group_Participants_Set
|
|
3740
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3741
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3742
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3746
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3747
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3748
|
+
return C.CString(op.InviteCode)
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3752
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3753
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3754
|
+
op.InviteCode = C.GoString(val)
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3737
3758
|
//
|
|
3738
|
-
//export
|
|
3739
|
-
func
|
|
3740
|
-
return CGoHandle(
|
|
3759
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3760
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3761
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3741
3762
|
}
|
|
3742
3763
|
|
|
3743
|
-
//export
|
|
3744
|
-
func
|
|
3745
|
-
op :=
|
|
3746
|
-
return C.
|
|
3764
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3765
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3766
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3767
|
+
return C.CString(op.JID)
|
|
3747
3768
|
}
|
|
3748
3769
|
|
|
3749
|
-
//export
|
|
3750
|
-
func
|
|
3751
|
-
op :=
|
|
3752
|
-
op.
|
|
3770
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3771
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3772
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3773
|
+
op.JID = C.GoString(val)
|
|
3753
3774
|
}
|
|
3754
3775
|
|
|
3755
|
-
//export
|
|
3756
|
-
func
|
|
3757
|
-
op :=
|
|
3776
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
3777
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
3778
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3779
|
+
return C.CString(op.Nickname)
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
3783
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3784
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3785
|
+
op.Nickname = C.GoString(val)
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3789
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3790
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3791
|
+
return C.longlong(int(op.Affiliation))
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3795
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3796
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3797
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3801
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3802
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3803
|
+
return C.longlong(int(op.Action))
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3807
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3808
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3809
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3813
|
+
//
|
|
3814
|
+
//export whatsapp_Avatar_CTor
|
|
3815
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3816
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
//export whatsapp_Avatar_ID_Get
|
|
3820
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3821
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3822
|
+
return C.CString(op.ID)
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
//export whatsapp_Avatar_ID_Set
|
|
3826
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3827
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3828
|
+
op.ID = C.GoString(val)
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
//export whatsapp_Avatar_URL_Get
|
|
3832
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3833
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3758
3834
|
return C.CString(op.URL)
|
|
3759
3835
|
}
|
|
3760
3836
|
|
|
3761
|
-
//export
|
|
3762
|
-
func
|
|
3763
|
-
op :=
|
|
3837
|
+
//export whatsapp_Avatar_URL_Set
|
|
3838
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3839
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3764
3840
|
op.URL = C.GoString(val)
|
|
3765
3841
|
}
|
|
3766
3842
|
|
|
3767
|
-
//
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3843
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3844
|
+
//
|
|
3845
|
+
//export whatsapp_Contact_CTor
|
|
3846
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3847
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3771
3848
|
}
|
|
3772
3849
|
|
|
3773
|
-
//export
|
|
3774
|
-
func
|
|
3775
|
-
op :=
|
|
3776
|
-
|
|
3850
|
+
//export whatsapp_Contact_JID_Get
|
|
3851
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3852
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3853
|
+
return C.CString(op.JID)
|
|
3777
3854
|
}
|
|
3778
3855
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3782
|
-
|
|
3856
|
+
//export whatsapp_Contact_JID_Set
|
|
3857
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3858
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3859
|
+
op.JID = C.GoString(val)
|
|
3783
3860
|
}
|
|
3784
3861
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3788
|
-
|
|
3862
|
+
//export whatsapp_Contact_Name_Get
|
|
3863
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3864
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3865
|
+
return C.CString(op.Name)
|
|
3789
3866
|
}
|
|
3790
3867
|
|
|
3791
|
-
//export
|
|
3792
|
-
func
|
|
3793
|
-
op :=
|
|
3794
|
-
|
|
3868
|
+
//export whatsapp_Contact_Name_Set
|
|
3869
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3870
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3871
|
+
op.Name = C.GoString(val)
|
|
3795
3872
|
}
|
|
3796
3873
|
|
|
3797
|
-
//
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3874
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3875
|
+
//
|
|
3876
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3877
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3878
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3882
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3883
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3884
|
+
return C.CString(op.ID)
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3888
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3889
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3890
|
+
op.ID = C.GoString(val)
|
|
3891
|
+
}
|
|
3892
|
+
|
|
3893
|
+
//export whatsapp_LinkedDevice_JID
|
|
3894
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3895
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3896
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3897
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3898
|
+
if __err != nil {
|
|
3899
|
+
return handleFromPtr_types_JID(nil)
|
|
3900
|
+
}
|
|
3901
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3902
|
+
|
|
3903
|
+
return handleFromPtr_types_JID(&cret)
|
|
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
|
+
}
|