slidge-whatsapp 0.2.7__cp311-cp311-manylinux_2_36_aarch64.whl → 0.3.0b0__cp311-cp311-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/contact.py +13 -3
- slidge_whatsapp/event.go +107 -37
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +175 -158
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +135 -121
- slidge_whatsapp/generated/whatsapp.c +1699 -1427
- slidge_whatsapp/generated/whatsapp.go +846 -735
- slidge_whatsapp/generated/whatsapp.py +1216 -1091
- slidge_whatsapp/generated/whatsapp_go.h +175 -158
- slidge_whatsapp/go.mod +18 -15
- slidge_whatsapp/go.sum +38 -26
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +1 -1
- slidge_whatsapp/session.go +33 -16
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +15 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +97 -25
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +22 -10
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +10 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +30 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8532 -11526
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +132 -438
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +225 -73
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +21 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +884 -441
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +40 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +8 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +12 -8
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +10 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
- slidge_whatsapp/vendor/modules.txt +43 -23
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +208 -161
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +0 -0
- {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
|
@@ -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,73 +2139,6 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.Group ---
|
|
2119
|
-
//
|
|
2120
|
-
//export whatsapp_Group_CTor
|
|
2121
|
-
func whatsapp_Group_CTor() CGoHandle {
|
|
2122
|
-
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
//export whatsapp_Group_JID_Get
|
|
2126
|
-
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2128
|
-
return C.CString(op.JID)
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
//export whatsapp_Group_JID_Set
|
|
2132
|
-
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2134
|
-
op.JID = C.GoString(val)
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
//export whatsapp_Group_Name_Get
|
|
2138
|
-
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2139
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2140
|
-
return C.CString(op.Name)
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
//export whatsapp_Group_Name_Set
|
|
2144
|
-
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2145
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2146
|
-
op.Name = C.GoString(val)
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
//export whatsapp_Group_Subject_Get
|
|
2150
|
-
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2151
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2152
|
-
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
//export whatsapp_Group_Subject_Set
|
|
2156
|
-
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2157
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2158
|
-
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
//export whatsapp_Group_Nickname_Get
|
|
2162
|
-
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2163
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2164
|
-
return C.CString(op.Nickname)
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
//export whatsapp_Group_Nickname_Set
|
|
2168
|
-
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2170
|
-
op.Nickname = C.GoString(val)
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
//export whatsapp_Group_Participants_Get
|
|
2174
|
-
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2175
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2176
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
//export whatsapp_Group_Participants_Set
|
|
2180
|
-
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2181
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2182
|
-
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
2142
|
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2186
2143
|
//
|
|
2187
2144
|
//export whatsapp_GroupParticipant_CTor
|
|
@@ -2201,6 +2158,18 @@ func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
|
2201
2158
|
op.JID = C.GoString(val)
|
|
2202
2159
|
}
|
|
2203
2160
|
|
|
2161
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
2162
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2164
|
+
return C.CString(op.Nickname)
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
2168
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2170
|
+
op.Nickname = C.GoString(val)
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2204
2173
|
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2205
2174
|
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2206
2175
|
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
@@ -2225,95 +2194,47 @@ func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
|
2225
2194
|
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2226
2195
|
}
|
|
2227
2196
|
|
|
2228
|
-
// --- wrapping struct: whatsapp.
|
|
2197
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2229
2198
|
//
|
|
2230
|
-
//export
|
|
2231
|
-
func
|
|
2232
|
-
return CGoHandle(
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
//export whatsapp_Location_Latitude_Get
|
|
2236
|
-
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2237
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2238
|
-
return C.double(op.Latitude)
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
//export whatsapp_Location_Latitude_Set
|
|
2242
|
-
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2243
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2244
|
-
op.Latitude = float64(val)
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
//export whatsapp_Location_Longitude_Get
|
|
2248
|
-
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2249
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2250
|
-
return C.double(op.Longitude)
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
//export whatsapp_Location_Longitude_Set
|
|
2254
|
-
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2255
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2256
|
-
op.Longitude = float64(val)
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
//export whatsapp_Location_Accuracy_Get
|
|
2260
|
-
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2261
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2262
|
-
return C.longlong(op.Accuracy)
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2265
|
-
//export whatsapp_Location_Accuracy_Set
|
|
2266
|
-
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2267
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2268
|
-
op.Accuracy = int(val)
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
//export whatsapp_Location_IsLive_Get
|
|
2272
|
-
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2273
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2274
|
-
return boolGoToPy(op.IsLive)
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
//export whatsapp_Location_IsLive_Set
|
|
2278
|
-
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2279
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2280
|
-
op.IsLive = boolPyToGo(val)
|
|
2199
|
+
//export whatsapp_GroupSubject_CTor
|
|
2200
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2201
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2281
2202
|
}
|
|
2282
2203
|
|
|
2283
|
-
//export
|
|
2284
|
-
func
|
|
2285
|
-
op :=
|
|
2286
|
-
return C.CString(op.
|
|
2204
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2205
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2207
|
+
return C.CString(op.Subject)
|
|
2287
2208
|
}
|
|
2288
2209
|
|
|
2289
|
-
//export
|
|
2290
|
-
func
|
|
2291
|
-
op :=
|
|
2292
|
-
op.
|
|
2210
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2211
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2213
|
+
op.Subject = C.GoString(val)
|
|
2293
2214
|
}
|
|
2294
2215
|
|
|
2295
|
-
//export
|
|
2296
|
-
func
|
|
2297
|
-
op :=
|
|
2298
|
-
return C.
|
|
2216
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2217
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2219
|
+
return C.longlong(op.SetAt)
|
|
2299
2220
|
}
|
|
2300
2221
|
|
|
2301
|
-
//export
|
|
2302
|
-
func
|
|
2303
|
-
op :=
|
|
2304
|
-
op.
|
|
2222
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2223
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2225
|
+
op.SetAt = int64(val)
|
|
2305
2226
|
}
|
|
2306
2227
|
|
|
2307
|
-
//export
|
|
2308
|
-
func
|
|
2309
|
-
op :=
|
|
2310
|
-
return C.CString(op.
|
|
2228
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
2229
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2231
|
+
return C.CString(op.SetBy)
|
|
2311
2232
|
}
|
|
2312
2233
|
|
|
2313
|
-
//export
|
|
2314
|
-
func
|
|
2315
|
-
op :=
|
|
2316
|
-
op.
|
|
2234
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
2235
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2237
|
+
op.SetBy = C.GoString(val)
|
|
2317
2238
|
}
|
|
2318
2239
|
|
|
2319
2240
|
// --- wrapping struct: whatsapp.Session ---
|
|
@@ -2725,303 +2646,475 @@ func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.
|
|
|
2725
2646
|
}
|
|
2726
2647
|
}
|
|
2727
2648
|
|
|
2728
|
-
// --- wrapping struct: whatsapp.
|
|
2649
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2729
2650
|
//
|
|
2730
|
-
//export
|
|
2731
|
-
func
|
|
2732
|
-
return CGoHandle(
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
//export whatsapp_Album_IsAlbum_Get
|
|
2736
|
-
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2737
|
-
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2738
|
-
return boolGoToPy(op.IsAlbum)
|
|
2651
|
+
//export whatsapp_Attachment_CTor
|
|
2652
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2653
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2739
2654
|
}
|
|
2740
2655
|
|
|
2741
|
-
//export
|
|
2742
|
-
func
|
|
2743
|
-
op :=
|
|
2744
|
-
op.
|
|
2656
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2657
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2658
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2659
|
+
return C.CString(op.MIME)
|
|
2745
2660
|
}
|
|
2746
2661
|
|
|
2747
|
-
//export
|
|
2748
|
-
func
|
|
2749
|
-
op :=
|
|
2750
|
-
|
|
2662
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2663
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2664
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2665
|
+
op.MIME = C.GoString(val)
|
|
2751
2666
|
}
|
|
2752
2667
|
|
|
2753
|
-
//export
|
|
2754
|
-
func
|
|
2755
|
-
op :=
|
|
2756
|
-
op.
|
|
2668
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2669
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2670
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2671
|
+
return C.CString(op.Filename)
|
|
2757
2672
|
}
|
|
2758
2673
|
|
|
2759
|
-
//export
|
|
2760
|
-
func
|
|
2761
|
-
op :=
|
|
2762
|
-
|
|
2674
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2675
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2676
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2677
|
+
op.Filename = C.GoString(val)
|
|
2763
2678
|
}
|
|
2764
2679
|
|
|
2765
|
-
//export
|
|
2766
|
-
func
|
|
2767
|
-
op :=
|
|
2768
|
-
op.
|
|
2680
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2681
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2682
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2683
|
+
return C.CString(op.Caption)
|
|
2769
2684
|
}
|
|
2770
2685
|
|
|
2771
|
-
//
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2686
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2687
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2688
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2689
|
+
op.Caption = C.GoString(val)
|
|
2776
2690
|
}
|
|
2777
2691
|
|
|
2778
|
-
//export
|
|
2779
|
-
func
|
|
2780
|
-
op :=
|
|
2781
|
-
return
|
|
2692
|
+
//export whatsapp_Attachment_Data_Get
|
|
2693
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2694
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2695
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2782
2696
|
}
|
|
2783
2697
|
|
|
2784
|
-
//export
|
|
2785
|
-
func
|
|
2786
|
-
op :=
|
|
2787
|
-
op.
|
|
2698
|
+
//export whatsapp_Attachment_Data_Set
|
|
2699
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2700
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2701
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2788
2702
|
}
|
|
2789
2703
|
|
|
2790
|
-
//export
|
|
2791
|
-
func
|
|
2792
|
-
|
|
2793
|
-
|
|
2704
|
+
//export whatsapp_Attachment_GetSpec
|
|
2705
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2706
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2707
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2708
|
+
if __err != nil {
|
|
2709
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2710
|
+
}
|
|
2711
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
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
|
+
C.free(unsafe.Pointer(estr))
|
|
2718
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2719
|
+
}
|
|
2720
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2794
2721
|
}
|
|
2795
2722
|
|
|
2796
|
-
//
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2723
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2724
|
+
//
|
|
2725
|
+
//export whatsapp_Call_CTor
|
|
2726
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2727
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2800
2728
|
}
|
|
2801
2729
|
|
|
2802
|
-
//export
|
|
2803
|
-
func
|
|
2804
|
-
op :=
|
|
2805
|
-
return C.
|
|
2730
|
+
//export whatsapp_Call_State_Get
|
|
2731
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2732
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2733
|
+
return C.longlong(int(op.State))
|
|
2806
2734
|
}
|
|
2807
2735
|
|
|
2808
|
-
//export
|
|
2809
|
-
func
|
|
2810
|
-
op :=
|
|
2811
|
-
op.
|
|
2736
|
+
//export whatsapp_Call_State_Set
|
|
2737
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2738
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2739
|
+
op.State = whatsapp.CallState(int(val))
|
|
2812
2740
|
}
|
|
2813
2741
|
|
|
2814
|
-
//export
|
|
2815
|
-
func
|
|
2816
|
-
op :=
|
|
2817
|
-
return C.CString(op.
|
|
2742
|
+
//export whatsapp_Call_JID_Get
|
|
2743
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2744
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2745
|
+
return C.CString(op.JID)
|
|
2818
2746
|
}
|
|
2819
2747
|
|
|
2820
|
-
//export
|
|
2821
|
-
func
|
|
2822
|
-
op :=
|
|
2823
|
-
op.
|
|
2748
|
+
//export whatsapp_Call_JID_Set
|
|
2749
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2750
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2751
|
+
op.JID = C.GoString(val)
|
|
2824
2752
|
}
|
|
2825
2753
|
|
|
2826
|
-
//export
|
|
2827
|
-
func
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
return errorGoToPy(nil)
|
|
2832
|
-
}
|
|
2833
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2754
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2755
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2756
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2757
|
+
return C.longlong(op.Timestamp)
|
|
2758
|
+
}
|
|
2834
2759
|
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
return estr
|
|
2840
|
-
}
|
|
2841
|
-
return C.CString("")
|
|
2760
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2761
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2762
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2763
|
+
op.Timestamp = int64(val)
|
|
2842
2764
|
}
|
|
2843
2765
|
|
|
2844
|
-
//
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2851
|
-
}
|
|
2852
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2766
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
2767
|
+
//
|
|
2768
|
+
//export whatsapp_Avatar_CTor
|
|
2769
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
2770
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2771
|
+
}
|
|
2853
2772
|
|
|
2773
|
+
//export whatsapp_Avatar_ID_Get
|
|
2774
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
2775
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2776
|
+
return C.CString(op.ID)
|
|
2854
2777
|
}
|
|
2855
2778
|
|
|
2856
|
-
//export
|
|
2857
|
-
func
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
return errorGoToPy(nil)
|
|
2862
|
-
}
|
|
2863
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2779
|
+
//export whatsapp_Avatar_ID_Set
|
|
2780
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
2781
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2782
|
+
op.ID = C.GoString(val)
|
|
2783
|
+
}
|
|
2864
2784
|
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
return estr
|
|
2870
|
-
}
|
|
2871
|
-
return C.CString("")
|
|
2785
|
+
//export whatsapp_Avatar_URL_Get
|
|
2786
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
2787
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2788
|
+
return C.CString(op.URL)
|
|
2872
2789
|
}
|
|
2873
2790
|
|
|
2874
|
-
//
|
|
2791
|
+
//export whatsapp_Avatar_URL_Set
|
|
2792
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2793
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2794
|
+
op.URL = C.GoString(val)
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2875
2798
|
//
|
|
2876
|
-
//export
|
|
2877
|
-
func
|
|
2878
|
-
return CGoHandle(
|
|
2799
|
+
//export whatsapp_EventPayload_CTor
|
|
2800
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2801
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2879
2802
|
}
|
|
2880
2803
|
|
|
2881
|
-
//export
|
|
2882
|
-
func
|
|
2883
|
-
op :=
|
|
2884
|
-
return C.
|
|
2804
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2805
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2806
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2807
|
+
return C.CString(op.QRCode)
|
|
2885
2808
|
}
|
|
2886
2809
|
|
|
2887
|
-
//export
|
|
2888
|
-
func
|
|
2889
|
-
op :=
|
|
2890
|
-
op.
|
|
2810
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2811
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2812
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2813
|
+
op.QRCode = C.GoString(val)
|
|
2891
2814
|
}
|
|
2892
2815
|
|
|
2893
|
-
//export
|
|
2894
|
-
func
|
|
2895
|
-
op :=
|
|
2896
|
-
return C.CString(op.
|
|
2816
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2817
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2818
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2819
|
+
return C.CString(op.PairDeviceID)
|
|
2897
2820
|
}
|
|
2898
2821
|
|
|
2899
|
-
//export
|
|
2900
|
-
func
|
|
2901
|
-
op :=
|
|
2902
|
-
op.
|
|
2822
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2823
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2824
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2825
|
+
op.PairDeviceID = C.GoString(val)
|
|
2903
2826
|
}
|
|
2904
2827
|
|
|
2905
|
-
//export
|
|
2906
|
-
func
|
|
2907
|
-
op :=
|
|
2908
|
-
return
|
|
2828
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2829
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2830
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2831
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2909
2832
|
}
|
|
2910
2833
|
|
|
2911
|
-
//export
|
|
2912
|
-
func
|
|
2913
|
-
op :=
|
|
2914
|
-
op.
|
|
2834
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2835
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2836
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2837
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2915
2838
|
}
|
|
2916
2839
|
|
|
2917
|
-
//export
|
|
2918
|
-
func
|
|
2919
|
-
op :=
|
|
2920
|
-
return
|
|
2840
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2841
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2842
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2843
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2921
2844
|
}
|
|
2922
2845
|
|
|
2923
|
-
//export
|
|
2924
|
-
func
|
|
2925
|
-
op :=
|
|
2926
|
-
op.
|
|
2846
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2847
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2848
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2849
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2927
2850
|
}
|
|
2928
2851
|
|
|
2929
|
-
//export
|
|
2930
|
-
func
|
|
2931
|
-
op :=
|
|
2932
|
-
return
|
|
2852
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2853
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2854
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2855
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2933
2856
|
}
|
|
2934
2857
|
|
|
2935
|
-
//export
|
|
2936
|
-
func
|
|
2937
|
-
op :=
|
|
2938
|
-
op.
|
|
2858
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2859
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2860
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2861
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2939
2862
|
}
|
|
2940
2863
|
|
|
2941
|
-
//
|
|
2864
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2865
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2866
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2867
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2871
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2872
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2873
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2877
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2878
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2879
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2883
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2884
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2885
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2889
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2890
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2891
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2895
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2896
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2897
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2901
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2902
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2903
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2907
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2908
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2909
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2913
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2914
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2915
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2919
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2920
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2921
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2925
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2926
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2927
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2931
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2932
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2933
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2942
2937
|
//
|
|
2943
|
-
//export
|
|
2944
|
-
func
|
|
2945
|
-
return CGoHandle(
|
|
2938
|
+
//export whatsapp_Location_CTor
|
|
2939
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2940
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2946
2941
|
}
|
|
2947
2942
|
|
|
2948
|
-
//export
|
|
2949
|
-
func
|
|
2950
|
-
op :=
|
|
2951
|
-
return C.
|
|
2943
|
+
//export whatsapp_Location_Latitude_Get
|
|
2944
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2945
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2946
|
+
return C.double(op.Latitude)
|
|
2952
2947
|
}
|
|
2953
2948
|
|
|
2954
|
-
//export
|
|
2955
|
-
func
|
|
2956
|
-
op :=
|
|
2957
|
-
op.
|
|
2949
|
+
//export whatsapp_Location_Latitude_Set
|
|
2950
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2951
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2952
|
+
op.Latitude = float64(val)
|
|
2958
2953
|
}
|
|
2959
2954
|
|
|
2960
|
-
//export
|
|
2961
|
-
func
|
|
2962
|
-
op :=
|
|
2963
|
-
return C.
|
|
2955
|
+
//export whatsapp_Location_Longitude_Get
|
|
2956
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2957
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2958
|
+
return C.double(op.Longitude)
|
|
2964
2959
|
}
|
|
2965
2960
|
|
|
2966
|
-
//export
|
|
2967
|
-
func
|
|
2968
|
-
op :=
|
|
2969
|
-
op.
|
|
2961
|
+
//export whatsapp_Location_Longitude_Set
|
|
2962
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2963
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2964
|
+
op.Longitude = float64(val)
|
|
2970
2965
|
}
|
|
2971
2966
|
|
|
2972
|
-
//export
|
|
2973
|
-
func
|
|
2974
|
-
op :=
|
|
2975
|
-
return C.
|
|
2967
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2968
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2969
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2970
|
+
return C.longlong(op.Accuracy)
|
|
2976
2971
|
}
|
|
2977
2972
|
|
|
2978
|
-
//export
|
|
2979
|
-
func
|
|
2980
|
-
op :=
|
|
2981
|
-
op.
|
|
2973
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2974
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2975
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2976
|
+
op.Accuracy = int(val)
|
|
2982
2977
|
}
|
|
2983
2978
|
|
|
2984
|
-
//
|
|
2979
|
+
//export whatsapp_Location_IsLive_Get
|
|
2980
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2981
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2982
|
+
return boolGoToPy(op.IsLive)
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
//export whatsapp_Location_IsLive_Set
|
|
2986
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2987
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2988
|
+
op.IsLive = boolPyToGo(val)
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
//export whatsapp_Location_Name_Get
|
|
2992
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2993
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2994
|
+
return C.CString(op.Name)
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
//export whatsapp_Location_Name_Set
|
|
2998
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2999
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3000
|
+
op.Name = C.GoString(val)
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
//export whatsapp_Location_Address_Get
|
|
3004
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3006
|
+
return C.CString(op.Address)
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
//export whatsapp_Location_Address_Set
|
|
3010
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3012
|
+
op.Address = C.GoString(val)
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
//export whatsapp_Location_URL_Get
|
|
3016
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
3017
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3018
|
+
return C.CString(op.URL)
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
//export whatsapp_Location_URL_Set
|
|
3022
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
3023
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3024
|
+
op.URL = C.GoString(val)
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
2985
3028
|
//
|
|
2986
|
-
//export
|
|
2987
|
-
func
|
|
2988
|
-
return CGoHandle(
|
|
3029
|
+
//export whatsapp_Poll_CTor
|
|
3030
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3031
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
2989
3032
|
}
|
|
2990
3033
|
|
|
2991
|
-
//export
|
|
2992
|
-
func
|
|
2993
|
-
op :=
|
|
2994
|
-
return C.CString(op.
|
|
3034
|
+
//export whatsapp_Poll_Title_Get
|
|
3035
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3036
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3037
|
+
return C.CString(op.Title)
|
|
2995
3038
|
}
|
|
2996
3039
|
|
|
2997
|
-
//export
|
|
2998
|
-
func
|
|
2999
|
-
op :=
|
|
3000
|
-
op.
|
|
3040
|
+
//export whatsapp_Poll_Title_Set
|
|
3041
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3042
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3043
|
+
op.Title = C.GoString(val)
|
|
3001
3044
|
}
|
|
3002
3045
|
|
|
3003
|
-
//export
|
|
3004
|
-
func
|
|
3005
|
-
op :=
|
|
3006
|
-
return
|
|
3046
|
+
//export whatsapp_Poll_Options_Get
|
|
3047
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3048
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3049
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3007
3050
|
}
|
|
3008
3051
|
|
|
3009
|
-
//export
|
|
3010
|
-
func
|
|
3011
|
-
op :=
|
|
3012
|
-
op.
|
|
3052
|
+
//export whatsapp_Poll_Options_Set
|
|
3053
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3054
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3055
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
3059
|
+
//
|
|
3060
|
+
//export whatsapp_PollOption_CTor
|
|
3061
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3062
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
//export whatsapp_PollOption_Title_Get
|
|
3066
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3067
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3068
|
+
return C.CString(op.Title)
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
//export whatsapp_PollOption_Title_Set
|
|
3072
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3073
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3074
|
+
op.Title = C.GoString(val)
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
3078
|
+
//
|
|
3079
|
+
//export whatsapp_Album_CTor
|
|
3080
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
3081
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
3085
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3087
|
+
return boolGoToPy(op.IsAlbum)
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
3091
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3093
|
+
op.IsAlbum = boolPyToGo(val)
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
//export whatsapp_Album_ImageCount_Get
|
|
3097
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3099
|
+
return C.longlong(op.ImageCount)
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
//export whatsapp_Album_ImageCount_Set
|
|
3103
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3105
|
+
op.ImageCount = int(val)
|
|
3013
3106
|
}
|
|
3014
3107
|
|
|
3015
|
-
//export
|
|
3016
|
-
func
|
|
3017
|
-
op :=
|
|
3018
|
-
return C.longlong(op.
|
|
3108
|
+
//export whatsapp_Album_VideoCount_Get
|
|
3109
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3111
|
+
return C.longlong(op.VideoCount)
|
|
3019
3112
|
}
|
|
3020
3113
|
|
|
3021
|
-
//export
|
|
3022
|
-
func
|
|
3023
|
-
op :=
|
|
3024
|
-
op.
|
|
3114
|
+
//export whatsapp_Album_VideoCount_Set
|
|
3115
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
3116
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3117
|
+
op.VideoCount = int(val)
|
|
3025
3118
|
}
|
|
3026
3119
|
|
|
3027
3120
|
// --- wrapping struct: whatsapp.Connect ---
|
|
@@ -3055,131 +3148,268 @@ func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
|
3055
3148
|
op.Error = C.GoString(val)
|
|
3056
3149
|
}
|
|
3057
3150
|
|
|
3058
|
-
// --- wrapping struct: whatsapp.
|
|
3151
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3059
3152
|
//
|
|
3060
|
-
//export
|
|
3061
|
-
func
|
|
3062
|
-
return CGoHandle(
|
|
3153
|
+
//export whatsapp_Contact_CTor
|
|
3154
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3155
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3063
3156
|
}
|
|
3064
3157
|
|
|
3065
|
-
//export
|
|
3066
|
-
func
|
|
3067
|
-
op :=
|
|
3068
|
-
return C.CString(op.
|
|
3158
|
+
//export whatsapp_Contact_JID_Get
|
|
3159
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3160
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3161
|
+
return C.CString(op.JID)
|
|
3069
3162
|
}
|
|
3070
3163
|
|
|
3071
|
-
//export
|
|
3072
|
-
func
|
|
3073
|
-
op :=
|
|
3074
|
-
op.
|
|
3164
|
+
//export whatsapp_Contact_JID_Set
|
|
3165
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3166
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3167
|
+
op.JID = C.GoString(val)
|
|
3075
3168
|
}
|
|
3076
3169
|
|
|
3077
|
-
//export
|
|
3078
|
-
func
|
|
3079
|
-
op :=
|
|
3080
|
-
return C.CString(op.
|
|
3170
|
+
//export whatsapp_Contact_Name_Get
|
|
3171
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3172
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3173
|
+
return C.CString(op.Name)
|
|
3081
3174
|
}
|
|
3082
3175
|
|
|
3083
|
-
//export
|
|
3084
|
-
func
|
|
3085
|
-
op :=
|
|
3086
|
-
op.
|
|
3176
|
+
//export whatsapp_Contact_Name_Set
|
|
3177
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3178
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3179
|
+
op.Name = C.GoString(val)
|
|
3087
3180
|
}
|
|
3088
3181
|
|
|
3089
|
-
//
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3182
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
3183
|
+
//
|
|
3184
|
+
//export whatsapp_Gateway_CTor
|
|
3185
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
3186
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
3093
3187
|
}
|
|
3094
3188
|
|
|
3095
|
-
//export
|
|
3096
|
-
func
|
|
3097
|
-
op :=
|
|
3098
|
-
op.
|
|
3189
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
3190
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
3191
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3192
|
+
return C.CString(op.DBPath)
|
|
3099
3193
|
}
|
|
3100
3194
|
|
|
3101
|
-
//export
|
|
3102
|
-
func
|
|
3103
|
-
op :=
|
|
3104
|
-
|
|
3195
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
3196
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
3197
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3198
|
+
op.DBPath = C.GoString(val)
|
|
3105
3199
|
}
|
|
3106
3200
|
|
|
3107
|
-
//export
|
|
3108
|
-
func
|
|
3109
|
-
op :=
|
|
3110
|
-
op.
|
|
3201
|
+
//export whatsapp_Gateway_Name_Get
|
|
3202
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
3203
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3204
|
+
return C.CString(op.Name)
|
|
3111
3205
|
}
|
|
3112
3206
|
|
|
3113
|
-
//export
|
|
3114
|
-
func
|
|
3115
|
-
op :=
|
|
3116
|
-
|
|
3207
|
+
//export whatsapp_Gateway_Name_Set
|
|
3208
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
3209
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3210
|
+
op.Name = C.GoString(val)
|
|
3117
3211
|
}
|
|
3118
3212
|
|
|
3119
|
-
//export
|
|
3120
|
-
func
|
|
3121
|
-
op :=
|
|
3122
|
-
op.
|
|
3213
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
3214
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
3215
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3216
|
+
return C.CString(op.LogLevel)
|
|
3123
3217
|
}
|
|
3124
3218
|
|
|
3125
|
-
//export
|
|
3126
|
-
func
|
|
3127
|
-
op :=
|
|
3128
|
-
|
|
3219
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
3220
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
3221
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3222
|
+
op.LogLevel = C.GoString(val)
|
|
3129
3223
|
}
|
|
3130
3224
|
|
|
3131
|
-
//export
|
|
3132
|
-
func
|
|
3133
|
-
op :=
|
|
3134
|
-
op.
|
|
3225
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
3226
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
3227
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3228
|
+
return C.CString(op.TempDir)
|
|
3135
3229
|
}
|
|
3136
3230
|
|
|
3137
|
-
//export
|
|
3138
|
-
func
|
|
3139
|
-
op :=
|
|
3140
|
-
|
|
3231
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
3232
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
3233
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3234
|
+
op.TempDir = C.GoString(val)
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
//export whatsapp_Gateway_Init
|
|
3238
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
3239
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3240
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3241
|
+
if __err != nil {
|
|
3242
|
+
return errorGoToPy(nil)
|
|
3243
|
+
}
|
|
3244
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
3245
|
+
|
|
3246
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3247
|
+
if __err != nil {
|
|
3248
|
+
estr := C.CString(__err.Error())
|
|
3249
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3250
|
+
return estr
|
|
3251
|
+
}
|
|
3252
|
+
return C.CString("")
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
//export whatsapp_Gateway_NewSession
|
|
3256
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
3257
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3258
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3259
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3260
|
+
if __err != nil {
|
|
3261
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
3262
|
+
}
|
|
3263
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3264
|
+
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
//export whatsapp_Gateway_CleanupSession
|
|
3268
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3269
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3270
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3271
|
+
if __err != nil {
|
|
3272
|
+
return errorGoToPy(nil)
|
|
3273
|
+
}
|
|
3274
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3275
|
+
|
|
3276
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3277
|
+
if __err != nil {
|
|
3278
|
+
estr := C.CString(__err.Error())
|
|
3279
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3280
|
+
return estr
|
|
3281
|
+
}
|
|
3282
|
+
return C.CString("")
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3286
|
+
//
|
|
3287
|
+
//export whatsapp_Group_CTor
|
|
3288
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3289
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
//export whatsapp_Group_JID_Get
|
|
3293
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3294
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3295
|
+
return C.CString(op.JID)
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
//export whatsapp_Group_JID_Set
|
|
3299
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3300
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3301
|
+
op.JID = C.GoString(val)
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
//export whatsapp_Group_Name_Get
|
|
3305
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3306
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3307
|
+
return C.CString(op.Name)
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
//export whatsapp_Group_Name_Set
|
|
3311
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3312
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3313
|
+
op.Name = C.GoString(val)
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
//export whatsapp_Group_Subject_Get
|
|
3317
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3318
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3319
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
//export whatsapp_Group_Subject_Set
|
|
3323
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3324
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3325
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
//export whatsapp_Group_Nickname_Get
|
|
3329
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3330
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3331
|
+
return C.CString(op.Nickname)
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
//export whatsapp_Group_Nickname_Set
|
|
3335
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3336
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3337
|
+
op.Nickname = C.GoString(val)
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
//export whatsapp_Group_Participants_Get
|
|
3341
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3342
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3343
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
//export whatsapp_Group_Participants_Set
|
|
3347
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3348
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3349
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3353
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3354
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3355
|
+
return C.CString(op.InviteCode)
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3359
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3360
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3361
|
+
op.InviteCode = C.GoString(val)
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3365
|
+
//
|
|
3366
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3367
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3368
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3141
3369
|
}
|
|
3142
3370
|
|
|
3143
|
-
//export
|
|
3144
|
-
func
|
|
3145
|
-
op :=
|
|
3146
|
-
op.
|
|
3371
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3372
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3373
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3374
|
+
return C.CString(op.ID)
|
|
3147
3375
|
}
|
|
3148
3376
|
|
|
3149
|
-
//export
|
|
3150
|
-
func
|
|
3151
|
-
op :=
|
|
3152
|
-
|
|
3377
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3378
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3379
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3380
|
+
op.ID = C.GoString(val)
|
|
3153
3381
|
}
|
|
3154
3382
|
|
|
3155
|
-
//export
|
|
3156
|
-
func
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3383
|
+
//export whatsapp_LinkedDevice_JID
|
|
3384
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3385
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3386
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3387
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3388
|
+
if __err != nil {
|
|
3389
|
+
return handleFromPtr_types_JID(nil)
|
|
3390
|
+
}
|
|
3391
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3160
3392
|
|
|
3161
|
-
|
|
3162
|
-
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
3163
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3164
|
-
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
3393
|
+
return handleFromPtr_types_JID(&cret)
|
|
3165
3394
|
}
|
|
3166
3395
|
|
|
3167
|
-
//
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3396
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
3397
|
+
//
|
|
3398
|
+
//export whatsapp_LoggedOut_CTor
|
|
3399
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
3400
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
3171
3401
|
}
|
|
3172
3402
|
|
|
3173
|
-
//export
|
|
3174
|
-
func
|
|
3175
|
-
op :=
|
|
3176
|
-
return
|
|
3403
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
3404
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
3405
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3406
|
+
return C.CString(op.Reason)
|
|
3177
3407
|
}
|
|
3178
3408
|
|
|
3179
|
-
//export
|
|
3180
|
-
func
|
|
3181
|
-
op :=
|
|
3182
|
-
op.
|
|
3409
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
3410
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
3411
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3412
|
+
op.Reason = C.GoString(val)
|
|
3183
3413
|
}
|
|
3184
3414
|
|
|
3185
3415
|
// --- wrapping struct: whatsapp.Message ---
|
|
@@ -3381,6 +3611,18 @@ func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3381
3611
|
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3382
3612
|
}
|
|
3383
3613
|
|
|
3614
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3615
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3616
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3617
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3621
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3622
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3623
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3384
3626
|
//export whatsapp_Message_MentionJIDs_Get
|
|
3385
3627
|
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3386
3628
|
op := ptrFromHandle_whatsapp_Message(handle)
|
|
@@ -3417,387 +3659,248 @@ func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3417
3659
|
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3418
3660
|
}
|
|
3419
3661
|
|
|
3420
|
-
//
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3425
|
-
}
|
|
3426
|
-
|
|
3427
|
-
//export whatsapp_Receipt_Kind_Get
|
|
3428
|
-
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3429
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3430
|
-
return C.longlong(int(op.Kind))
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
|
-
//export whatsapp_Receipt_Kind_Set
|
|
3434
|
-
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3435
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3436
|
-
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
//export whatsapp_Receipt_MessageIDs_Get
|
|
3440
|
-
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3441
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3442
|
-
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3443
|
-
}
|
|
3444
|
-
|
|
3445
|
-
//export whatsapp_Receipt_MessageIDs_Set
|
|
3446
|
-
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3447
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3448
|
-
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
//export whatsapp_Receipt_JID_Get
|
|
3452
|
-
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3453
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3454
|
-
return C.CString(op.JID)
|
|
3455
|
-
}
|
|
3456
|
-
|
|
3457
|
-
//export whatsapp_Receipt_JID_Set
|
|
3458
|
-
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3459
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3460
|
-
op.JID = C.GoString(val)
|
|
3461
|
-
}
|
|
3462
|
-
|
|
3463
|
-
//export whatsapp_Receipt_GroupJID_Get
|
|
3464
|
-
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3465
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3466
|
-
return C.CString(op.GroupJID)
|
|
3467
|
-
}
|
|
3468
|
-
|
|
3469
|
-
//export whatsapp_Receipt_GroupJID_Set
|
|
3470
|
-
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3471
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3472
|
-
op.GroupJID = C.GoString(val)
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
//export whatsapp_Receipt_Timestamp_Get
|
|
3476
|
-
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3477
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3478
|
-
return C.longlong(op.Timestamp)
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
|
-
//export whatsapp_Receipt_Timestamp_Set
|
|
3482
|
-
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3483
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3484
|
-
op.Timestamp = int64(val)
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
//export whatsapp_Receipt_IsCarbon_Get
|
|
3488
|
-
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3489
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3490
|
-
return boolGoToPy(op.IsCarbon)
|
|
3491
|
-
}
|
|
3492
|
-
|
|
3493
|
-
//export whatsapp_Receipt_IsCarbon_Set
|
|
3494
|
-
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3495
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3496
|
-
op.IsCarbon = boolPyToGo(val)
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
// --- wrapping struct: whatsapp.Attachment ---
|
|
3500
|
-
//
|
|
3501
|
-
//export whatsapp_Attachment_CTor
|
|
3502
|
-
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3503
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
//export whatsapp_Attachment_MIME_Get
|
|
3507
|
-
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3508
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3509
|
-
return C.CString(op.MIME)
|
|
3510
|
-
}
|
|
3511
|
-
|
|
3512
|
-
//export whatsapp_Attachment_MIME_Set
|
|
3513
|
-
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3514
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3515
|
-
op.MIME = C.GoString(val)
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
//export whatsapp_Attachment_Filename_Get
|
|
3519
|
-
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3520
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3521
|
-
return C.CString(op.Filename)
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
|
-
//export whatsapp_Attachment_Filename_Set
|
|
3525
|
-
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3526
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3527
|
-
op.Filename = C.GoString(val)
|
|
3528
|
-
}
|
|
3529
|
-
|
|
3530
|
-
//export whatsapp_Attachment_Caption_Get
|
|
3531
|
-
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3532
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3533
|
-
return C.CString(op.Caption)
|
|
3534
|
-
}
|
|
3535
|
-
|
|
3536
|
-
//export whatsapp_Attachment_Caption_Set
|
|
3537
|
-
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3538
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3539
|
-
op.Caption = C.GoString(val)
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3542
|
-
//export whatsapp_Attachment_Data_Get
|
|
3543
|
-
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3544
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3545
|
-
return handleFromPtr_Slice_byte(&op.Data)
|
|
3546
|
-
}
|
|
3547
|
-
|
|
3548
|
-
//export whatsapp_Attachment_Data_Set
|
|
3549
|
-
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3550
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3551
|
-
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3662
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3663
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3664
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3665
|
+
return boolGoToPy(op.IsHistory)
|
|
3552
3666
|
}
|
|
3553
3667
|
|
|
3554
|
-
//export
|
|
3555
|
-
func
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
if __err != nil {
|
|
3559
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3560
|
-
}
|
|
3561
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3562
|
-
|
|
3563
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3564
|
-
if __err != nil {
|
|
3565
|
-
estr := C.CString(__err.Error())
|
|
3566
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3567
|
-
C.free(unsafe.Pointer(estr))
|
|
3568
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3569
|
-
}
|
|
3570
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3668
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3669
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3670
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3671
|
+
op.IsHistory = boolPyToGo(val)
|
|
3571
3672
|
}
|
|
3572
3673
|
|
|
3573
|
-
// --- wrapping struct: whatsapp.
|
|
3674
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
3574
3675
|
//
|
|
3575
|
-
//export
|
|
3576
|
-
func
|
|
3577
|
-
return CGoHandle(
|
|
3676
|
+
//export whatsapp_ChatState_CTor
|
|
3677
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
3678
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3578
3679
|
}
|
|
3579
3680
|
|
|
3580
|
-
//export
|
|
3581
|
-
func
|
|
3582
|
-
op :=
|
|
3583
|
-
return C.longlong(int(op.
|
|
3681
|
+
//export whatsapp_ChatState_Kind_Get
|
|
3682
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
3683
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3684
|
+
return C.longlong(int(op.Kind))
|
|
3584
3685
|
}
|
|
3585
3686
|
|
|
3586
|
-
//export
|
|
3587
|
-
func
|
|
3588
|
-
op :=
|
|
3589
|
-
op.
|
|
3687
|
+
//export whatsapp_ChatState_Kind_Set
|
|
3688
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3689
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3690
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
3590
3691
|
}
|
|
3591
3692
|
|
|
3592
|
-
//export
|
|
3593
|
-
func
|
|
3594
|
-
op :=
|
|
3693
|
+
//export whatsapp_ChatState_JID_Get
|
|
3694
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
3695
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3595
3696
|
return C.CString(op.JID)
|
|
3596
3697
|
}
|
|
3597
3698
|
|
|
3598
|
-
//export
|
|
3599
|
-
func
|
|
3600
|
-
op :=
|
|
3699
|
+
//export whatsapp_ChatState_JID_Set
|
|
3700
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
3701
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3601
3702
|
op.JID = C.GoString(val)
|
|
3602
3703
|
}
|
|
3603
3704
|
|
|
3604
|
-
//export
|
|
3605
|
-
func
|
|
3606
|
-
op :=
|
|
3607
|
-
return C.
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
|
-
//export whatsapp_Call_Timestamp_Set
|
|
3611
|
-
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3612
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3613
|
-
op.Timestamp = int64(val)
|
|
3705
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
3706
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3707
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3708
|
+
return C.CString(op.GroupJID)
|
|
3614
3709
|
}
|
|
3615
3710
|
|
|
3616
|
-
//
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3711
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
3712
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3713
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3714
|
+
op.GroupJID = C.GoString(val)
|
|
3621
3715
|
}
|
|
3622
3716
|
|
|
3623
|
-
//
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3717
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
3718
|
+
//
|
|
3719
|
+
//export whatsapp_Preview_CTor
|
|
3720
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
3721
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
3627
3722
|
}
|
|
3628
3723
|
|
|
3629
|
-
//export
|
|
3630
|
-
func
|
|
3631
|
-
op :=
|
|
3632
|
-
|
|
3724
|
+
//export whatsapp_Preview_Kind_Get
|
|
3725
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
3726
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3727
|
+
return C.longlong(int(op.Kind))
|
|
3633
3728
|
}
|
|
3634
3729
|
|
|
3635
|
-
//export
|
|
3636
|
-
func
|
|
3637
|
-
op :=
|
|
3638
|
-
|
|
3730
|
+
//export whatsapp_Preview_Kind_Set
|
|
3731
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3732
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3733
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
3639
3734
|
}
|
|
3640
3735
|
|
|
3641
|
-
//export
|
|
3642
|
-
func
|
|
3643
|
-
op :=
|
|
3644
|
-
op.
|
|
3736
|
+
//export whatsapp_Preview_URL_Get
|
|
3737
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
3738
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3739
|
+
return C.CString(op.URL)
|
|
3645
3740
|
}
|
|
3646
3741
|
|
|
3647
|
-
//export
|
|
3648
|
-
func
|
|
3649
|
-
op :=
|
|
3650
|
-
|
|
3742
|
+
//export whatsapp_Preview_URL_Set
|
|
3743
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
3744
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3745
|
+
op.URL = C.GoString(val)
|
|
3651
3746
|
}
|
|
3652
3747
|
|
|
3653
|
-
//export
|
|
3654
|
-
func
|
|
3655
|
-
op :=
|
|
3656
|
-
|
|
3748
|
+
//export whatsapp_Preview_Title_Get
|
|
3749
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
3750
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3751
|
+
return C.CString(op.Title)
|
|
3657
3752
|
}
|
|
3658
3753
|
|
|
3659
|
-
//
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3754
|
+
//export whatsapp_Preview_Title_Set
|
|
3755
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
3756
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3757
|
+
op.Title = C.GoString(val)
|
|
3664
3758
|
}
|
|
3665
3759
|
|
|
3666
|
-
//export
|
|
3667
|
-
func
|
|
3668
|
-
op :=
|
|
3669
|
-
return C.CString(op.
|
|
3760
|
+
//export whatsapp_Preview_Description_Get
|
|
3761
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
3762
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3763
|
+
return C.CString(op.Description)
|
|
3670
3764
|
}
|
|
3671
3765
|
|
|
3672
|
-
//export
|
|
3673
|
-
func
|
|
3674
|
-
op :=
|
|
3675
|
-
op.
|
|
3766
|
+
//export whatsapp_Preview_Description_Set
|
|
3767
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
3768
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3769
|
+
op.Description = C.GoString(val)
|
|
3676
3770
|
}
|
|
3677
3771
|
|
|
3678
|
-
//export
|
|
3679
|
-
func
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
if __err != nil {
|
|
3684
|
-
return handleFromPtr_types_JID(nil)
|
|
3685
|
-
}
|
|
3686
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3772
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
3773
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
3774
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3775
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
3776
|
+
}
|
|
3687
3777
|
|
|
3688
|
-
|
|
3778
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
3779
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
3780
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3781
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3689
3782
|
}
|
|
3690
3783
|
|
|
3691
|
-
// --- wrapping struct: whatsapp.
|
|
3784
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3692
3785
|
//
|
|
3693
|
-
//export
|
|
3694
|
-
func
|
|
3695
|
-
return CGoHandle(
|
|
3786
|
+
//export whatsapp_Receipt_CTor
|
|
3787
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3788
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3696
3789
|
}
|
|
3697
3790
|
|
|
3698
|
-
//export
|
|
3699
|
-
func
|
|
3700
|
-
op :=
|
|
3701
|
-
return C.
|
|
3791
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3792
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3794
|
+
return C.longlong(int(op.Kind))
|
|
3702
3795
|
}
|
|
3703
3796
|
|
|
3704
|
-
//export
|
|
3705
|
-
func
|
|
3706
|
-
op :=
|
|
3707
|
-
op.
|
|
3797
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3798
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3800
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3708
3801
|
}
|
|
3709
3802
|
|
|
3710
|
-
//export
|
|
3711
|
-
func
|
|
3712
|
-
op :=
|
|
3713
|
-
return
|
|
3803
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3804
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3805
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3806
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3714
3807
|
}
|
|
3715
3808
|
|
|
3716
|
-
//export
|
|
3717
|
-
func
|
|
3718
|
-
op :=
|
|
3719
|
-
op.
|
|
3809
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3810
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3811
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3812
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3720
3813
|
}
|
|
3721
3814
|
|
|
3722
|
-
//
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3815
|
+
//export whatsapp_Receipt_JID_Get
|
|
3816
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3817
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3818
|
+
return C.CString(op.JID)
|
|
3727
3819
|
}
|
|
3728
3820
|
|
|
3729
|
-
//export
|
|
3730
|
-
func
|
|
3731
|
-
op :=
|
|
3732
|
-
|
|
3821
|
+
//export whatsapp_Receipt_JID_Set
|
|
3822
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3823
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3824
|
+
op.JID = C.GoString(val)
|
|
3733
3825
|
}
|
|
3734
3826
|
|
|
3735
|
-
//export
|
|
3736
|
-
func
|
|
3737
|
-
op :=
|
|
3738
|
-
|
|
3827
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3828
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3829
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3830
|
+
return C.CString(op.GroupJID)
|
|
3739
3831
|
}
|
|
3740
3832
|
|
|
3741
|
-
//
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3833
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3834
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3835
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3836
|
+
op.GroupJID = C.GoString(val)
|
|
3746
3837
|
}
|
|
3747
3838
|
|
|
3748
|
-
//export
|
|
3749
|
-
func
|
|
3750
|
-
op :=
|
|
3751
|
-
return C.
|
|
3839
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3840
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3841
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3842
|
+
return C.longlong(op.Timestamp)
|
|
3752
3843
|
}
|
|
3753
3844
|
|
|
3754
|
-
//export
|
|
3755
|
-
func
|
|
3756
|
-
op :=
|
|
3757
|
-
op.
|
|
3845
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3846
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3847
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3848
|
+
op.Timestamp = int64(val)
|
|
3758
3849
|
}
|
|
3759
3850
|
|
|
3760
|
-
//export
|
|
3761
|
-
func
|
|
3762
|
-
op :=
|
|
3763
|
-
return
|
|
3851
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3852
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3853
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3854
|
+
return boolGoToPy(op.IsCarbon)
|
|
3764
3855
|
}
|
|
3765
3856
|
|
|
3766
|
-
//export
|
|
3767
|
-
func
|
|
3768
|
-
op :=
|
|
3769
|
-
op.
|
|
3857
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3858
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3859
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3860
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3770
3861
|
}
|
|
3771
3862
|
|
|
3772
|
-
// --- wrapping struct: whatsapp.
|
|
3863
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3773
3864
|
//
|
|
3774
|
-
//export
|
|
3775
|
-
func
|
|
3776
|
-
return CGoHandle(
|
|
3865
|
+
//export whatsapp_Presence_CTor
|
|
3866
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3867
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3777
3868
|
}
|
|
3778
3869
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3870
|
+
//export whatsapp_Presence_JID_Get
|
|
3871
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3872
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3782
3873
|
return C.CString(op.JID)
|
|
3783
3874
|
}
|
|
3784
3875
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3876
|
+
//export whatsapp_Presence_JID_Set
|
|
3877
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3878
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3788
3879
|
op.JID = C.GoString(val)
|
|
3789
3880
|
}
|
|
3790
3881
|
|
|
3791
|
-
//export
|
|
3792
|
-
func
|
|
3793
|
-
op :=
|
|
3794
|
-
return C.
|
|
3882
|
+
//export whatsapp_Presence_Kind_Get
|
|
3883
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3884
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3885
|
+
return C.longlong(int(op.Kind))
|
|
3795
3886
|
}
|
|
3796
3887
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3888
|
+
//export whatsapp_Presence_Kind_Set
|
|
3889
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3890
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3891
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3895
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3896
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3897
|
+
return C.longlong(op.LastSeen)
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3901
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3902
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3903
|
+
op.LastSeen = int64(val)
|
|
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
|
+
}
|