slidge-whatsapp 0.2.7__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.0b0__cp312-cp312-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.
- 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-312-aarch64-linux-gnu.h +186 -169
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +148 -134
- slidge_whatsapp/generated/whatsapp.c +1652 -1380
- slidge_whatsapp/generated/whatsapp.go +798 -687
- slidge_whatsapp/generated/whatsapp.py +1169 -1044
- slidge_whatsapp/generated/whatsapp_go.h +186 -169
- 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
|
@@ -1013,9 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
|
|
|
1013
1013
|
|
|
1014
1014
|
# ---- Structs ---
|
|
1015
1015
|
|
|
1016
|
-
# Python type for struct whatsapp.
|
|
1017
|
-
class
|
|
1018
|
-
"""A
|
|
1016
|
+
# Python type for struct whatsapp.ChatState
|
|
1017
|
+
class ChatState(go.GoClass):
|
|
1018
|
+
"""A ChatState represents the activity of a contact within a certain discussion, for instance,\nwhether the contact is currently composing a message. This is separate to the concept of a\nPresence, which is the contact's general state across all discussions.\n"""
|
|
1019
1019
|
def __init__(self, *args, **kwargs):
|
|
1020
1020
|
"""
|
|
1021
1021
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1029,29 +1029,25 @@ class Gateway(go.GoClass):
|
|
|
1029
1029
|
self.handle = args[0].handle
|
|
1030
1030
|
_whatsapp.IncRef(self.handle)
|
|
1031
1031
|
else:
|
|
1032
|
-
self.handle = _whatsapp.
|
|
1032
|
+
self.handle = _whatsapp.whatsapp_ChatState_CTor()
|
|
1033
1033
|
_whatsapp.IncRef(self.handle)
|
|
1034
1034
|
if 0 < len(args):
|
|
1035
|
-
self.
|
|
1036
|
-
if "
|
|
1037
|
-
self.
|
|
1035
|
+
self.Kind = args[0]
|
|
1036
|
+
if "Kind" in kwargs:
|
|
1037
|
+
self.Kind = kwargs["Kind"]
|
|
1038
1038
|
if 1 < len(args):
|
|
1039
|
-
self.
|
|
1040
|
-
if "
|
|
1041
|
-
self.
|
|
1039
|
+
self.JID = args[1]
|
|
1040
|
+
if "JID" in kwargs:
|
|
1041
|
+
self.JID = kwargs["JID"]
|
|
1042
1042
|
if 2 < len(args):
|
|
1043
|
-
self.
|
|
1044
|
-
if "
|
|
1045
|
-
self.
|
|
1046
|
-
if 3 < len(args):
|
|
1047
|
-
self.TempDir = args[3]
|
|
1048
|
-
if "TempDir" in kwargs:
|
|
1049
|
-
self.TempDir = kwargs["TempDir"]
|
|
1043
|
+
self.GroupJID = args[2]
|
|
1044
|
+
if "GroupJID" in kwargs:
|
|
1045
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
1050
1046
|
def __del__(self):
|
|
1051
1047
|
_whatsapp.DecRef(self.handle)
|
|
1052
1048
|
def __str__(self):
|
|
1053
1049
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1054
|
-
sv = 'whatsapp.
|
|
1050
|
+
sv = 'whatsapp.ChatState{'
|
|
1055
1051
|
first = True
|
|
1056
1052
|
for v in pr:
|
|
1057
1053
|
if callable(v[1]):
|
|
@@ -1064,72 +1060,42 @@ class Gateway(go.GoClass):
|
|
|
1064
1060
|
return sv + '}'
|
|
1065
1061
|
def __repr__(self):
|
|
1066
1062
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1067
|
-
sv = 'whatsapp.
|
|
1063
|
+
sv = 'whatsapp.ChatState ( '
|
|
1068
1064
|
for v in pr:
|
|
1069
1065
|
if not callable(v[1]):
|
|
1070
1066
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1071
1067
|
return sv + ')'
|
|
1072
1068
|
@property
|
|
1073
|
-
def
|
|
1074
|
-
return _whatsapp.
|
|
1075
|
-
@
|
|
1076
|
-
def
|
|
1077
|
-
if isinstance(value, go.GoClass):
|
|
1078
|
-
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
|
|
1079
|
-
else:
|
|
1080
|
-
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
|
|
1081
|
-
@property
|
|
1082
|
-
def Name(self):
|
|
1083
|
-
return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
|
|
1084
|
-
@Name.setter
|
|
1085
|
-
def Name(self, value):
|
|
1069
|
+
def Kind(self):
|
|
1070
|
+
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
1071
|
+
@Kind.setter
|
|
1072
|
+
def Kind(self, value):
|
|
1086
1073
|
if isinstance(value, go.GoClass):
|
|
1087
|
-
_whatsapp.
|
|
1074
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
1088
1075
|
else:
|
|
1089
|
-
_whatsapp.
|
|
1076
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
1090
1077
|
@property
|
|
1091
|
-
def
|
|
1092
|
-
return _whatsapp.
|
|
1093
|
-
@
|
|
1094
|
-
def
|
|
1078
|
+
def JID(self):
|
|
1079
|
+
return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
|
|
1080
|
+
@JID.setter
|
|
1081
|
+
def JID(self, value):
|
|
1095
1082
|
if isinstance(value, go.GoClass):
|
|
1096
|
-
_whatsapp.
|
|
1083
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
|
|
1097
1084
|
else:
|
|
1098
|
-
_whatsapp.
|
|
1085
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
|
|
1099
1086
|
@property
|
|
1100
|
-
def
|
|
1101
|
-
return _whatsapp.
|
|
1102
|
-
@
|
|
1103
|
-
def
|
|
1087
|
+
def GroupJID(self):
|
|
1088
|
+
return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
|
|
1089
|
+
@GroupJID.setter
|
|
1090
|
+
def GroupJID(self, value):
|
|
1104
1091
|
if isinstance(value, go.GoClass):
|
|
1105
|
-
_whatsapp.
|
|
1092
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
|
|
1106
1093
|
else:
|
|
1107
|
-
_whatsapp.
|
|
1108
|
-
def Init(self):
|
|
1109
|
-
"""Init() str
|
|
1110
|
-
|
|
1111
|
-
Init performs initialization procedures for the Gateway, and is expected to be run before any
|
|
1112
|
-
calls to [Gateway.Session].
|
|
1113
|
-
"""
|
|
1114
|
-
return _whatsapp.whatsapp_Gateway_Init(self.handle)
|
|
1115
|
-
def NewSession(self, device):
|
|
1116
|
-
"""NewSession(object device) object
|
|
1117
|
-
|
|
1118
|
-
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
1119
|
-
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
1120
|
-
"""
|
|
1121
|
-
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
1122
|
-
def CleanupSession(self, device):
|
|
1123
|
-
"""CleanupSession(object device) str
|
|
1124
|
-
|
|
1125
|
-
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
1126
|
-
used when pairing a new device or unregistering from the Gateway.
|
|
1127
|
-
"""
|
|
1128
|
-
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
1094
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
|
|
1129
1095
|
|
|
1130
|
-
# Python type for struct whatsapp.
|
|
1131
|
-
class
|
|
1132
|
-
"""
|
|
1096
|
+
# Python type for struct whatsapp.Connect
|
|
1097
|
+
class Connect(go.GoClass):
|
|
1098
|
+
"""Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
|
|
1133
1099
|
def __init__(self, *args, **kwargs):
|
|
1134
1100
|
"""
|
|
1135
1101
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1143,41 +1109,21 @@ class Location(go.GoClass):
|
|
|
1143
1109
|
self.handle = args[0].handle
|
|
1144
1110
|
_whatsapp.IncRef(self.handle)
|
|
1145
1111
|
else:
|
|
1146
|
-
self.handle = _whatsapp.
|
|
1112
|
+
self.handle = _whatsapp.whatsapp_Connect_CTor()
|
|
1147
1113
|
_whatsapp.IncRef(self.handle)
|
|
1148
1114
|
if 0 < len(args):
|
|
1149
|
-
self.
|
|
1150
|
-
if "
|
|
1151
|
-
self.
|
|
1115
|
+
self.JID = args[0]
|
|
1116
|
+
if "JID" in kwargs:
|
|
1117
|
+
self.JID = kwargs["JID"]
|
|
1152
1118
|
if 1 < len(args):
|
|
1153
|
-
self.
|
|
1154
|
-
if "
|
|
1155
|
-
self.
|
|
1156
|
-
if 2 < len(args):
|
|
1157
|
-
self.Accuracy = args[2]
|
|
1158
|
-
if "Accuracy" in kwargs:
|
|
1159
|
-
self.Accuracy = kwargs["Accuracy"]
|
|
1160
|
-
if 3 < len(args):
|
|
1161
|
-
self.IsLive = args[3]
|
|
1162
|
-
if "IsLive" in kwargs:
|
|
1163
|
-
self.IsLive = kwargs["IsLive"]
|
|
1164
|
-
if 4 < len(args):
|
|
1165
|
-
self.Name = args[4]
|
|
1166
|
-
if "Name" in kwargs:
|
|
1167
|
-
self.Name = kwargs["Name"]
|
|
1168
|
-
if 5 < len(args):
|
|
1169
|
-
self.Address = args[5]
|
|
1170
|
-
if "Address" in kwargs:
|
|
1171
|
-
self.Address = kwargs["Address"]
|
|
1172
|
-
if 6 < len(args):
|
|
1173
|
-
self.URL = args[6]
|
|
1174
|
-
if "URL" in kwargs:
|
|
1175
|
-
self.URL = kwargs["URL"]
|
|
1119
|
+
self.Error = args[1]
|
|
1120
|
+
if "Error" in kwargs:
|
|
1121
|
+
self.Error = kwargs["Error"]
|
|
1176
1122
|
def __del__(self):
|
|
1177
1123
|
_whatsapp.DecRef(self.handle)
|
|
1178
1124
|
def __str__(self):
|
|
1179
1125
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1180
|
-
sv = 'whatsapp.
|
|
1126
|
+
sv = 'whatsapp.Connect{'
|
|
1181
1127
|
first = True
|
|
1182
1128
|
for v in pr:
|
|
1183
1129
|
if callable(v[1]):
|
|
@@ -1190,80 +1136,33 @@ class Location(go.GoClass):
|
|
|
1190
1136
|
return sv + '}'
|
|
1191
1137
|
def __repr__(self):
|
|
1192
1138
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1193
|
-
sv = 'whatsapp.
|
|
1139
|
+
sv = 'whatsapp.Connect ( '
|
|
1194
1140
|
for v in pr:
|
|
1195
1141
|
if not callable(v[1]):
|
|
1196
1142
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1197
1143
|
return sv + ')'
|
|
1198
1144
|
@property
|
|
1199
|
-
def
|
|
1200
|
-
return _whatsapp.
|
|
1201
|
-
@
|
|
1202
|
-
def
|
|
1203
|
-
if isinstance(value, go.GoClass):
|
|
1204
|
-
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
1205
|
-
else:
|
|
1206
|
-
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
1207
|
-
@property
|
|
1208
|
-
def Longitude(self):
|
|
1209
|
-
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
1210
|
-
@Longitude.setter
|
|
1211
|
-
def Longitude(self, value):
|
|
1212
|
-
if isinstance(value, go.GoClass):
|
|
1213
|
-
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
|
|
1214
|
-
else:
|
|
1215
|
-
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
|
|
1216
|
-
@property
|
|
1217
|
-
def Accuracy(self):
|
|
1218
|
-
return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
|
|
1219
|
-
@Accuracy.setter
|
|
1220
|
-
def Accuracy(self, value):
|
|
1221
|
-
if isinstance(value, go.GoClass):
|
|
1222
|
-
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
|
|
1223
|
-
else:
|
|
1224
|
-
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
|
|
1225
|
-
@property
|
|
1226
|
-
def IsLive(self):
|
|
1227
|
-
return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
|
|
1228
|
-
@IsLive.setter
|
|
1229
|
-
def IsLive(self, value):
|
|
1230
|
-
if isinstance(value, go.GoClass):
|
|
1231
|
-
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
|
|
1232
|
-
else:
|
|
1233
|
-
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
|
|
1234
|
-
@property
|
|
1235
|
-
def Name(self):
|
|
1236
|
-
"""Optional fields given for named locations.
|
|
1237
|
-
"""
|
|
1238
|
-
return _whatsapp.whatsapp_Location_Name_Get(self.handle)
|
|
1239
|
-
@Name.setter
|
|
1240
|
-
def Name(self, value):
|
|
1241
|
-
if isinstance(value, go.GoClass):
|
|
1242
|
-
_whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
|
|
1243
|
-
else:
|
|
1244
|
-
_whatsapp.whatsapp_Location_Name_Set(self.handle, value)
|
|
1245
|
-
@property
|
|
1246
|
-
def Address(self):
|
|
1247
|
-
return _whatsapp.whatsapp_Location_Address_Get(self.handle)
|
|
1248
|
-
@Address.setter
|
|
1249
|
-
def Address(self, value):
|
|
1145
|
+
def JID(self):
|
|
1146
|
+
return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
|
|
1147
|
+
@JID.setter
|
|
1148
|
+
def JID(self, value):
|
|
1250
1149
|
if isinstance(value, go.GoClass):
|
|
1251
|
-
_whatsapp.
|
|
1150
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
|
|
1252
1151
|
else:
|
|
1253
|
-
_whatsapp.
|
|
1152
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
|
|
1254
1153
|
@property
|
|
1255
|
-
def
|
|
1256
|
-
return _whatsapp.
|
|
1257
|
-
@
|
|
1258
|
-
def
|
|
1154
|
+
def Error(self):
|
|
1155
|
+
return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
|
|
1156
|
+
@Error.setter
|
|
1157
|
+
def Error(self, value):
|
|
1259
1158
|
if isinstance(value, go.GoClass):
|
|
1260
|
-
_whatsapp.
|
|
1159
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
|
|
1261
1160
|
else:
|
|
1262
|
-
_whatsapp.
|
|
1161
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
|
|
1263
1162
|
|
|
1264
|
-
# Python type for struct whatsapp.
|
|
1265
|
-
class
|
|
1266
|
-
"""
|
|
1163
|
+
# Python type for struct whatsapp.EventPayload
|
|
1164
|
+
class EventPayload(go.GoClass):
|
|
1165
|
+
"""EventPayload represents the collected payloads for all event types handled by the overarching\nsession adapter handler. Only specific fields will be populated in events emitted by internal\nhandlers, see documentation for specific types for more information.\n"""
|
|
1267
1166
|
def __init__(self, *args, **kwargs):
|
|
1268
1167
|
"""
|
|
1269
1168
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1277,43 +1176,333 @@ class PollOption(go.GoClass):
|
|
|
1277
1176
|
self.handle = args[0].handle
|
|
1278
1177
|
_whatsapp.IncRef(self.handle)
|
|
1279
1178
|
else:
|
|
1280
|
-
self.handle = _whatsapp.
|
|
1179
|
+
self.handle = _whatsapp.whatsapp_EventPayload_CTor()
|
|
1281
1180
|
_whatsapp.IncRef(self.handle)
|
|
1282
1181
|
if 0 < len(args):
|
|
1283
|
-
self.
|
|
1284
|
-
if "
|
|
1285
|
-
self.
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1182
|
+
self.QRCode = args[0]
|
|
1183
|
+
if "QRCode" in kwargs:
|
|
1184
|
+
self.QRCode = kwargs["QRCode"]
|
|
1185
|
+
if 1 < len(args):
|
|
1186
|
+
self.PairDeviceID = args[1]
|
|
1187
|
+
if "PairDeviceID" in kwargs:
|
|
1188
|
+
self.PairDeviceID = kwargs["PairDeviceID"]
|
|
1189
|
+
if 2 < len(args):
|
|
1190
|
+
self.Connect = args[2]
|
|
1191
|
+
if "Connect" in kwargs:
|
|
1192
|
+
self.Connect = kwargs["Connect"]
|
|
1193
|
+
if 3 < len(args):
|
|
1194
|
+
self.LoggedOut = args[3]
|
|
1195
|
+
if "LoggedOut" in kwargs:
|
|
1196
|
+
self.LoggedOut = kwargs["LoggedOut"]
|
|
1197
|
+
if 4 < len(args):
|
|
1198
|
+
self.Contact = args[4]
|
|
1199
|
+
if "Contact" in kwargs:
|
|
1200
|
+
self.Contact = kwargs["Contact"]
|
|
1201
|
+
if 5 < len(args):
|
|
1202
|
+
self.Presence = args[5]
|
|
1203
|
+
if "Presence" in kwargs:
|
|
1204
|
+
self.Presence = kwargs["Presence"]
|
|
1205
|
+
if 6 < len(args):
|
|
1206
|
+
self.Message = args[6]
|
|
1207
|
+
if "Message" in kwargs:
|
|
1208
|
+
self.Message = kwargs["Message"]
|
|
1209
|
+
if 7 < len(args):
|
|
1210
|
+
self.ChatState = args[7]
|
|
1211
|
+
if "ChatState" in kwargs:
|
|
1212
|
+
self.ChatState = kwargs["ChatState"]
|
|
1213
|
+
if 8 < len(args):
|
|
1214
|
+
self.Receipt = args[8]
|
|
1215
|
+
if "Receipt" in kwargs:
|
|
1216
|
+
self.Receipt = kwargs["Receipt"]
|
|
1217
|
+
if 9 < len(args):
|
|
1218
|
+
self.Group = args[9]
|
|
1219
|
+
if "Group" in kwargs:
|
|
1220
|
+
self.Group = kwargs["Group"]
|
|
1221
|
+
if 10 < len(args):
|
|
1222
|
+
self.Call = args[10]
|
|
1223
|
+
if "Call" in kwargs:
|
|
1224
|
+
self.Call = kwargs["Call"]
|
|
1225
|
+
def __del__(self):
|
|
1226
|
+
_whatsapp.DecRef(self.handle)
|
|
1227
|
+
def __str__(self):
|
|
1228
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1229
|
+
sv = 'whatsapp.EventPayload{'
|
|
1230
|
+
first = True
|
|
1231
|
+
for v in pr:
|
|
1232
|
+
if callable(v[1]):
|
|
1233
|
+
continue
|
|
1234
|
+
if first:
|
|
1235
|
+
first = False
|
|
1236
|
+
else:
|
|
1237
|
+
sv += ', '
|
|
1238
|
+
sv += v[0] + '=' + str(v[1])
|
|
1239
|
+
return sv + '}'
|
|
1240
|
+
def __repr__(self):
|
|
1241
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1242
|
+
sv = 'whatsapp.EventPayload ( '
|
|
1243
|
+
for v in pr:
|
|
1244
|
+
if not callable(v[1]):
|
|
1245
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1246
|
+
return sv + ')'
|
|
1247
|
+
@property
|
|
1248
|
+
def QRCode(self):
|
|
1249
|
+
return _whatsapp.whatsapp_EventPayload_QRCode_Get(self.handle)
|
|
1250
|
+
@QRCode.setter
|
|
1251
|
+
def QRCode(self, value):
|
|
1252
|
+
if isinstance(value, go.GoClass):
|
|
1253
|
+
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value.handle)
|
|
1254
|
+
else:
|
|
1255
|
+
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value)
|
|
1256
|
+
@property
|
|
1257
|
+
def PairDeviceID(self):
|
|
1258
|
+
return _whatsapp.whatsapp_EventPayload_PairDeviceID_Get(self.handle)
|
|
1259
|
+
@PairDeviceID.setter
|
|
1260
|
+
def PairDeviceID(self, value):
|
|
1261
|
+
if isinstance(value, go.GoClass):
|
|
1262
|
+
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value.handle)
|
|
1263
|
+
else:
|
|
1264
|
+
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value)
|
|
1265
|
+
@property
|
|
1266
|
+
def Connect(self):
|
|
1267
|
+
return Connect(handle=_whatsapp.whatsapp_EventPayload_Connect_Get(self.handle))
|
|
1268
|
+
@Connect.setter
|
|
1269
|
+
def Connect(self, value):
|
|
1270
|
+
if isinstance(value, go.GoClass):
|
|
1271
|
+
_whatsapp.whatsapp_EventPayload_Connect_Set(self.handle, value.handle)
|
|
1272
|
+
else:
|
|
1273
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1274
|
+
@property
|
|
1275
|
+
def LoggedOut(self):
|
|
1276
|
+
return LoggedOut(handle=_whatsapp.whatsapp_EventPayload_LoggedOut_Get(self.handle))
|
|
1277
|
+
@LoggedOut.setter
|
|
1278
|
+
def LoggedOut(self, value):
|
|
1279
|
+
if isinstance(value, go.GoClass):
|
|
1280
|
+
_whatsapp.whatsapp_EventPayload_LoggedOut_Set(self.handle, value.handle)
|
|
1281
|
+
else:
|
|
1282
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1283
|
+
@property
|
|
1284
|
+
def Contact(self):
|
|
1285
|
+
return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
|
|
1286
|
+
@Contact.setter
|
|
1287
|
+
def Contact(self, value):
|
|
1288
|
+
if isinstance(value, go.GoClass):
|
|
1289
|
+
_whatsapp.whatsapp_EventPayload_Contact_Set(self.handle, value.handle)
|
|
1290
|
+
else:
|
|
1291
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1292
|
+
@property
|
|
1293
|
+
def Presence(self):
|
|
1294
|
+
return Presence(handle=_whatsapp.whatsapp_EventPayload_Presence_Get(self.handle))
|
|
1295
|
+
@Presence.setter
|
|
1296
|
+
def Presence(self, value):
|
|
1297
|
+
if isinstance(value, go.GoClass):
|
|
1298
|
+
_whatsapp.whatsapp_EventPayload_Presence_Set(self.handle, value.handle)
|
|
1299
|
+
else:
|
|
1300
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1301
|
+
@property
|
|
1302
|
+
def Message(self):
|
|
1303
|
+
return Message(handle=_whatsapp.whatsapp_EventPayload_Message_Get(self.handle))
|
|
1304
|
+
@Message.setter
|
|
1305
|
+
def Message(self, value):
|
|
1306
|
+
if isinstance(value, go.GoClass):
|
|
1307
|
+
_whatsapp.whatsapp_EventPayload_Message_Set(self.handle, value.handle)
|
|
1308
|
+
else:
|
|
1309
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1310
|
+
@property
|
|
1311
|
+
def ChatState(self):
|
|
1312
|
+
return ChatState(handle=_whatsapp.whatsapp_EventPayload_ChatState_Get(self.handle))
|
|
1313
|
+
@ChatState.setter
|
|
1314
|
+
def ChatState(self, value):
|
|
1315
|
+
if isinstance(value, go.GoClass):
|
|
1316
|
+
_whatsapp.whatsapp_EventPayload_ChatState_Set(self.handle, value.handle)
|
|
1317
|
+
else:
|
|
1318
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1319
|
+
@property
|
|
1320
|
+
def Receipt(self):
|
|
1321
|
+
return Receipt(handle=_whatsapp.whatsapp_EventPayload_Receipt_Get(self.handle))
|
|
1322
|
+
@Receipt.setter
|
|
1323
|
+
def Receipt(self, value):
|
|
1324
|
+
if isinstance(value, go.GoClass):
|
|
1325
|
+
_whatsapp.whatsapp_EventPayload_Receipt_Set(self.handle, value.handle)
|
|
1326
|
+
else:
|
|
1327
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1328
|
+
@property
|
|
1329
|
+
def Group(self):
|
|
1330
|
+
return Group(handle=_whatsapp.whatsapp_EventPayload_Group_Get(self.handle))
|
|
1331
|
+
@Group.setter
|
|
1332
|
+
def Group(self, value):
|
|
1333
|
+
if isinstance(value, go.GoClass):
|
|
1334
|
+
_whatsapp.whatsapp_EventPayload_Group_Set(self.handle, value.handle)
|
|
1335
|
+
else:
|
|
1336
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1337
|
+
@property
|
|
1338
|
+
def Call(self):
|
|
1339
|
+
return Call(handle=_whatsapp.whatsapp_EventPayload_Call_Get(self.handle))
|
|
1340
|
+
@Call.setter
|
|
1341
|
+
def Call(self, value):
|
|
1342
|
+
if isinstance(value, go.GoClass):
|
|
1343
|
+
_whatsapp.whatsapp_EventPayload_Call_Set(self.handle, value.handle)
|
|
1344
|
+
else:
|
|
1345
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1346
|
+
|
|
1347
|
+
# Python type for struct whatsapp.LoggedOut
|
|
1348
|
+
class LoggedOut(go.GoClass):
|
|
1349
|
+
"""LoggedOut repreents event data related to an explicit or implicit log-out event.\n"""
|
|
1350
|
+
def __init__(self, *args, **kwargs):
|
|
1351
|
+
"""
|
|
1352
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1353
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1354
|
+
in which case a new Go object is constructed first
|
|
1355
|
+
"""
|
|
1356
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1357
|
+
self.handle = kwargs['handle']
|
|
1358
|
+
_whatsapp.IncRef(self.handle)
|
|
1359
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1360
|
+
self.handle = args[0].handle
|
|
1361
|
+
_whatsapp.IncRef(self.handle)
|
|
1362
|
+
else:
|
|
1363
|
+
self.handle = _whatsapp.whatsapp_LoggedOut_CTor()
|
|
1364
|
+
_whatsapp.IncRef(self.handle)
|
|
1365
|
+
if 0 < len(args):
|
|
1366
|
+
self.Reason = args[0]
|
|
1367
|
+
if "Reason" in kwargs:
|
|
1368
|
+
self.Reason = kwargs["Reason"]
|
|
1369
|
+
def __del__(self):
|
|
1370
|
+
_whatsapp.DecRef(self.handle)
|
|
1371
|
+
def __str__(self):
|
|
1372
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1373
|
+
sv = 'whatsapp.LoggedOut{'
|
|
1374
|
+
first = True
|
|
1375
|
+
for v in pr:
|
|
1376
|
+
if callable(v[1]):
|
|
1377
|
+
continue
|
|
1378
|
+
if first:
|
|
1379
|
+
first = False
|
|
1380
|
+
else:
|
|
1381
|
+
sv += ', '
|
|
1382
|
+
sv += v[0] + '=' + str(v[1])
|
|
1383
|
+
return sv + '}'
|
|
1384
|
+
def __repr__(self):
|
|
1385
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1386
|
+
sv = 'whatsapp.LoggedOut ( '
|
|
1387
|
+
for v in pr:
|
|
1388
|
+
if not callable(v[1]):
|
|
1389
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1390
|
+
return sv + ')'
|
|
1391
|
+
@property
|
|
1392
|
+
def Reason(self):
|
|
1393
|
+
return _whatsapp.whatsapp_LoggedOut_Reason_Get(self.handle)
|
|
1394
|
+
@Reason.setter
|
|
1395
|
+
def Reason(self, value):
|
|
1396
|
+
if isinstance(value, go.GoClass):
|
|
1397
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value.handle)
|
|
1398
|
+
else:
|
|
1399
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value)
|
|
1400
|
+
|
|
1401
|
+
# Python type for struct whatsapp.Preview
|
|
1402
|
+
class Preview(go.GoClass):
|
|
1403
|
+
"""A Preview represents a short description for a URL provided in a message body, as usually derived\nfrom the content of the page pointed at.\n"""
|
|
1404
|
+
def __init__(self, *args, **kwargs):
|
|
1405
|
+
"""
|
|
1406
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1407
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1408
|
+
in which case a new Go object is constructed first
|
|
1409
|
+
"""
|
|
1410
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1411
|
+
self.handle = kwargs['handle']
|
|
1412
|
+
_whatsapp.IncRef(self.handle)
|
|
1413
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1414
|
+
self.handle = args[0].handle
|
|
1415
|
+
_whatsapp.IncRef(self.handle)
|
|
1416
|
+
else:
|
|
1417
|
+
self.handle = _whatsapp.whatsapp_Preview_CTor()
|
|
1418
|
+
_whatsapp.IncRef(self.handle)
|
|
1419
|
+
if 0 < len(args):
|
|
1420
|
+
self.Kind = args[0]
|
|
1421
|
+
if "Kind" in kwargs:
|
|
1422
|
+
self.Kind = kwargs["Kind"]
|
|
1423
|
+
if 1 < len(args):
|
|
1424
|
+
self.URL = args[1]
|
|
1425
|
+
if "URL" in kwargs:
|
|
1426
|
+
self.URL = kwargs["URL"]
|
|
1427
|
+
if 2 < len(args):
|
|
1428
|
+
self.Title = args[2]
|
|
1429
|
+
if "Title" in kwargs:
|
|
1430
|
+
self.Title = kwargs["Title"]
|
|
1431
|
+
if 3 < len(args):
|
|
1432
|
+
self.Description = args[3]
|
|
1433
|
+
if "Description" in kwargs:
|
|
1434
|
+
self.Description = kwargs["Description"]
|
|
1435
|
+
if 4 < len(args):
|
|
1436
|
+
self.Thumbnail = args[4]
|
|
1437
|
+
if "Thumbnail" in kwargs:
|
|
1438
|
+
self.Thumbnail = kwargs["Thumbnail"]
|
|
1439
|
+
def __del__(self):
|
|
1440
|
+
_whatsapp.DecRef(self.handle)
|
|
1441
|
+
def __str__(self):
|
|
1442
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1443
|
+
sv = 'whatsapp.Preview{'
|
|
1444
|
+
first = True
|
|
1445
|
+
for v in pr:
|
|
1446
|
+
if callable(v[1]):
|
|
1447
|
+
continue
|
|
1448
|
+
if first:
|
|
1449
|
+
first = False
|
|
1450
|
+
else:
|
|
1451
|
+
sv += ', '
|
|
1452
|
+
sv += v[0] + '=' + str(v[1])
|
|
1453
|
+
return sv + '}'
|
|
1454
|
+
def __repr__(self):
|
|
1455
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1456
|
+
sv = 'whatsapp.Preview ( '
|
|
1457
|
+
for v in pr:
|
|
1458
|
+
if not callable(v[1]):
|
|
1459
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1460
|
+
return sv + ')'
|
|
1461
|
+
@property
|
|
1462
|
+
def Kind(self):
|
|
1463
|
+
return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
|
|
1464
|
+
@Kind.setter
|
|
1465
|
+
def Kind(self, value):
|
|
1466
|
+
if isinstance(value, go.GoClass):
|
|
1467
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
|
|
1468
|
+
else:
|
|
1469
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
|
|
1470
|
+
@property
|
|
1471
|
+
def URL(self):
|
|
1472
|
+
return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
|
|
1473
|
+
@URL.setter
|
|
1474
|
+
def URL(self, value):
|
|
1475
|
+
if isinstance(value, go.GoClass):
|
|
1476
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
|
|
1477
|
+
else:
|
|
1478
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
|
|
1479
|
+
@property
|
|
1480
|
+
def Title(self):
|
|
1481
|
+
return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
|
|
1482
|
+
@Title.setter
|
|
1483
|
+
def Title(self, value):
|
|
1484
|
+
if isinstance(value, go.GoClass):
|
|
1485
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
|
|
1486
|
+
else:
|
|
1487
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
|
|
1488
|
+
@property
|
|
1489
|
+
def Description(self):
|
|
1490
|
+
return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
|
|
1491
|
+
@Description.setter
|
|
1492
|
+
def Description(self, value):
|
|
1493
|
+
if isinstance(value, go.GoClass):
|
|
1494
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
|
|
1495
|
+
else:
|
|
1496
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
|
|
1497
|
+
@property
|
|
1498
|
+
def Thumbnail(self):
|
|
1499
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
|
|
1500
|
+
@Thumbnail.setter
|
|
1501
|
+
def Thumbnail(self, value):
|
|
1502
|
+
if isinstance(value, go.GoClass):
|
|
1503
|
+
_whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
|
|
1504
|
+
else:
|
|
1505
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1317
1506
|
|
|
1318
1507
|
# Python type for struct whatsapp.Session
|
|
1319
1508
|
class Session(go.GoClass):
|
|
@@ -1498,19 +1687,166 @@ class Session(go.GoClass):
|
|
|
1498
1687
|
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
1499
1688
|
event handler. An error will be returned if requesting history fails for any reason.
|
|
1500
1689
|
"""
|
|
1501
|
-
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
1502
|
-
def SetEventHandler(self, h, goRun=False):
|
|
1503
|
-
"""SetEventHandler(callable h)
|
|
1504
|
-
|
|
1505
|
-
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
1506
|
-
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
1507
|
-
should instead be sent to the [Gateway] via its internal call channel.
|
|
1690
|
+
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
1691
|
+
def SetEventHandler(self, h, goRun=False):
|
|
1692
|
+
"""SetEventHandler(callable h)
|
|
1693
|
+
|
|
1694
|
+
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
1695
|
+
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
1696
|
+
should instead be sent to the [Gateway] via its internal call channel.
|
|
1697
|
+
"""
|
|
1698
|
+
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
1699
|
+
|
|
1700
|
+
# Python type for struct whatsapp.Avatar
|
|
1701
|
+
class Avatar(go.GoClass):
|
|
1702
|
+
"""A Avatar represents a small image set for a Contact or Group.\n"""
|
|
1703
|
+
def __init__(self, *args, **kwargs):
|
|
1704
|
+
"""
|
|
1705
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1706
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1707
|
+
in which case a new Go object is constructed first
|
|
1708
|
+
"""
|
|
1709
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1710
|
+
self.handle = kwargs['handle']
|
|
1711
|
+
_whatsapp.IncRef(self.handle)
|
|
1712
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1713
|
+
self.handle = args[0].handle
|
|
1714
|
+
_whatsapp.IncRef(self.handle)
|
|
1715
|
+
else:
|
|
1716
|
+
self.handle = _whatsapp.whatsapp_Avatar_CTor()
|
|
1717
|
+
_whatsapp.IncRef(self.handle)
|
|
1718
|
+
if 0 < len(args):
|
|
1719
|
+
self.ID = args[0]
|
|
1720
|
+
if "ID" in kwargs:
|
|
1721
|
+
self.ID = kwargs["ID"]
|
|
1722
|
+
if 1 < len(args):
|
|
1723
|
+
self.URL = args[1]
|
|
1724
|
+
if "URL" in kwargs:
|
|
1725
|
+
self.URL = kwargs["URL"]
|
|
1726
|
+
def __del__(self):
|
|
1727
|
+
_whatsapp.DecRef(self.handle)
|
|
1728
|
+
def __str__(self):
|
|
1729
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1730
|
+
sv = 'whatsapp.Avatar{'
|
|
1731
|
+
first = True
|
|
1732
|
+
for v in pr:
|
|
1733
|
+
if callable(v[1]):
|
|
1734
|
+
continue
|
|
1735
|
+
if first:
|
|
1736
|
+
first = False
|
|
1737
|
+
else:
|
|
1738
|
+
sv += ', '
|
|
1739
|
+
sv += v[0] + '=' + str(v[1])
|
|
1740
|
+
return sv + '}'
|
|
1741
|
+
def __repr__(self):
|
|
1742
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1743
|
+
sv = 'whatsapp.Avatar ( '
|
|
1744
|
+
for v in pr:
|
|
1745
|
+
if not callable(v[1]):
|
|
1746
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1747
|
+
return sv + ')'
|
|
1748
|
+
@property
|
|
1749
|
+
def ID(self):
|
|
1750
|
+
return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
|
|
1751
|
+
@ID.setter
|
|
1752
|
+
def ID(self, value):
|
|
1753
|
+
if isinstance(value, go.GoClass):
|
|
1754
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
1755
|
+
else:
|
|
1756
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
1757
|
+
@property
|
|
1758
|
+
def URL(self):
|
|
1759
|
+
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
1760
|
+
@URL.setter
|
|
1761
|
+
def URL(self, value):
|
|
1762
|
+
if isinstance(value, go.GoClass):
|
|
1763
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
|
|
1764
|
+
else:
|
|
1765
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
1766
|
+
|
|
1767
|
+
# Python type for struct whatsapp.GroupSubject
|
|
1768
|
+
class GroupSubject(go.GoClass):
|
|
1769
|
+
"""A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
|
|
1770
|
+
def __init__(self, *args, **kwargs):
|
|
1771
|
+
"""
|
|
1772
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1773
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1774
|
+
in which case a new Go object is constructed first
|
|
1508
1775
|
"""
|
|
1509
|
-
|
|
1776
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1777
|
+
self.handle = kwargs['handle']
|
|
1778
|
+
_whatsapp.IncRef(self.handle)
|
|
1779
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1780
|
+
self.handle = args[0].handle
|
|
1781
|
+
_whatsapp.IncRef(self.handle)
|
|
1782
|
+
else:
|
|
1783
|
+
self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
|
|
1784
|
+
_whatsapp.IncRef(self.handle)
|
|
1785
|
+
if 0 < len(args):
|
|
1786
|
+
self.Subject = args[0]
|
|
1787
|
+
if "Subject" in kwargs:
|
|
1788
|
+
self.Subject = kwargs["Subject"]
|
|
1789
|
+
if 1 < len(args):
|
|
1790
|
+
self.SetAt = args[1]
|
|
1791
|
+
if "SetAt" in kwargs:
|
|
1792
|
+
self.SetAt = kwargs["SetAt"]
|
|
1793
|
+
if 2 < len(args):
|
|
1794
|
+
self.SetBy = args[2]
|
|
1795
|
+
if "SetBy" in kwargs:
|
|
1796
|
+
self.SetBy = kwargs["SetBy"]
|
|
1797
|
+
def __del__(self):
|
|
1798
|
+
_whatsapp.DecRef(self.handle)
|
|
1799
|
+
def __str__(self):
|
|
1800
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1801
|
+
sv = 'whatsapp.GroupSubject{'
|
|
1802
|
+
first = True
|
|
1803
|
+
for v in pr:
|
|
1804
|
+
if callable(v[1]):
|
|
1805
|
+
continue
|
|
1806
|
+
if first:
|
|
1807
|
+
first = False
|
|
1808
|
+
else:
|
|
1809
|
+
sv += ', '
|
|
1810
|
+
sv += v[0] + '=' + str(v[1])
|
|
1811
|
+
return sv + '}'
|
|
1812
|
+
def __repr__(self):
|
|
1813
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1814
|
+
sv = 'whatsapp.GroupSubject ( '
|
|
1815
|
+
for v in pr:
|
|
1816
|
+
if not callable(v[1]):
|
|
1817
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1818
|
+
return sv + ')'
|
|
1819
|
+
@property
|
|
1820
|
+
def Subject(self):
|
|
1821
|
+
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
1822
|
+
@Subject.setter
|
|
1823
|
+
def Subject(self, value):
|
|
1824
|
+
if isinstance(value, go.GoClass):
|
|
1825
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
1826
|
+
else:
|
|
1827
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
1828
|
+
@property
|
|
1829
|
+
def SetAt(self):
|
|
1830
|
+
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
1831
|
+
@SetAt.setter
|
|
1832
|
+
def SetAt(self, value):
|
|
1833
|
+
if isinstance(value, go.GoClass):
|
|
1834
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
1835
|
+
else:
|
|
1836
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
1837
|
+
@property
|
|
1838
|
+
def SetBy(self):
|
|
1839
|
+
return _whatsapp.whatsapp_GroupSubject_SetBy_Get(self.handle)
|
|
1840
|
+
@SetBy.setter
|
|
1841
|
+
def SetBy(self, value):
|
|
1842
|
+
if isinstance(value, go.GoClass):
|
|
1843
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value.handle)
|
|
1844
|
+
else:
|
|
1845
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value)
|
|
1510
1846
|
|
|
1511
|
-
# Python type for struct whatsapp.
|
|
1512
|
-
class
|
|
1513
|
-
"""A
|
|
1847
|
+
# Python type for struct whatsapp.Location
|
|
1848
|
+
class Location(go.GoClass):
|
|
1849
|
+
"""A Location represents additional metadata given to location messages.\n"""
|
|
1514
1850
|
def __init__(self, *args, **kwargs):
|
|
1515
1851
|
"""
|
|
1516
1852
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1524,25 +1860,41 @@ class Album(go.GoClass):
|
|
|
1524
1860
|
self.handle = args[0].handle
|
|
1525
1861
|
_whatsapp.IncRef(self.handle)
|
|
1526
1862
|
else:
|
|
1527
|
-
self.handle = _whatsapp.
|
|
1863
|
+
self.handle = _whatsapp.whatsapp_Location_CTor()
|
|
1528
1864
|
_whatsapp.IncRef(self.handle)
|
|
1529
1865
|
if 0 < len(args):
|
|
1530
|
-
self.
|
|
1531
|
-
if "
|
|
1532
|
-
self.
|
|
1866
|
+
self.Latitude = args[0]
|
|
1867
|
+
if "Latitude" in kwargs:
|
|
1868
|
+
self.Latitude = kwargs["Latitude"]
|
|
1533
1869
|
if 1 < len(args):
|
|
1534
|
-
self.
|
|
1535
|
-
if "
|
|
1536
|
-
self.
|
|
1870
|
+
self.Longitude = args[1]
|
|
1871
|
+
if "Longitude" in kwargs:
|
|
1872
|
+
self.Longitude = kwargs["Longitude"]
|
|
1537
1873
|
if 2 < len(args):
|
|
1538
|
-
self.
|
|
1539
|
-
if "
|
|
1540
|
-
self.
|
|
1874
|
+
self.Accuracy = args[2]
|
|
1875
|
+
if "Accuracy" in kwargs:
|
|
1876
|
+
self.Accuracy = kwargs["Accuracy"]
|
|
1877
|
+
if 3 < len(args):
|
|
1878
|
+
self.IsLive = args[3]
|
|
1879
|
+
if "IsLive" in kwargs:
|
|
1880
|
+
self.IsLive = kwargs["IsLive"]
|
|
1881
|
+
if 4 < len(args):
|
|
1882
|
+
self.Name = args[4]
|
|
1883
|
+
if "Name" in kwargs:
|
|
1884
|
+
self.Name = kwargs["Name"]
|
|
1885
|
+
if 5 < len(args):
|
|
1886
|
+
self.Address = args[5]
|
|
1887
|
+
if "Address" in kwargs:
|
|
1888
|
+
self.Address = kwargs["Address"]
|
|
1889
|
+
if 6 < len(args):
|
|
1890
|
+
self.URL = args[6]
|
|
1891
|
+
if "URL" in kwargs:
|
|
1892
|
+
self.URL = kwargs["URL"]
|
|
1541
1893
|
def __del__(self):
|
|
1542
1894
|
_whatsapp.DecRef(self.handle)
|
|
1543
1895
|
def __str__(self):
|
|
1544
1896
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1545
|
-
sv = 'whatsapp.
|
|
1897
|
+
sv = 'whatsapp.Location{'
|
|
1546
1898
|
first = True
|
|
1547
1899
|
for v in pr:
|
|
1548
1900
|
if callable(v[1]):
|
|
@@ -1555,42 +1907,80 @@ class Album(go.GoClass):
|
|
|
1555
1907
|
return sv + '}'
|
|
1556
1908
|
def __repr__(self):
|
|
1557
1909
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1558
|
-
sv = 'whatsapp.
|
|
1910
|
+
sv = 'whatsapp.Location ( '
|
|
1559
1911
|
for v in pr:
|
|
1560
1912
|
if not callable(v[1]):
|
|
1561
1913
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1562
1914
|
return sv + ')'
|
|
1563
1915
|
@property
|
|
1564
|
-
def
|
|
1565
|
-
return _whatsapp.
|
|
1566
|
-
@
|
|
1567
|
-
def
|
|
1916
|
+
def Latitude(self):
|
|
1917
|
+
return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
|
|
1918
|
+
@Latitude.setter
|
|
1919
|
+
def Latitude(self, value):
|
|
1568
1920
|
if isinstance(value, go.GoClass):
|
|
1569
|
-
_whatsapp.
|
|
1921
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
1570
1922
|
else:
|
|
1571
|
-
_whatsapp.
|
|
1923
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
1572
1924
|
@property
|
|
1573
|
-
def
|
|
1574
|
-
return _whatsapp.
|
|
1575
|
-
@
|
|
1576
|
-
def
|
|
1925
|
+
def Longitude(self):
|
|
1926
|
+
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
1927
|
+
@Longitude.setter
|
|
1928
|
+
def Longitude(self, value):
|
|
1577
1929
|
if isinstance(value, go.GoClass):
|
|
1578
|
-
_whatsapp.
|
|
1930
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
|
|
1579
1931
|
else:
|
|
1580
|
-
_whatsapp.
|
|
1932
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
|
|
1581
1933
|
@property
|
|
1582
|
-
def
|
|
1583
|
-
return _whatsapp.
|
|
1584
|
-
@
|
|
1585
|
-
def
|
|
1934
|
+
def Accuracy(self):
|
|
1935
|
+
return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
|
|
1936
|
+
@Accuracy.setter
|
|
1937
|
+
def Accuracy(self, value):
|
|
1586
1938
|
if isinstance(value, go.GoClass):
|
|
1587
|
-
_whatsapp.
|
|
1939
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
|
|
1588
1940
|
else:
|
|
1589
|
-
_whatsapp.
|
|
1941
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
|
|
1942
|
+
@property
|
|
1943
|
+
def IsLive(self):
|
|
1944
|
+
return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
|
|
1945
|
+
@IsLive.setter
|
|
1946
|
+
def IsLive(self, value):
|
|
1947
|
+
if isinstance(value, go.GoClass):
|
|
1948
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
|
|
1949
|
+
else:
|
|
1950
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
|
|
1951
|
+
@property
|
|
1952
|
+
def Name(self):
|
|
1953
|
+
"""Optional fields given for named locations.
|
|
1954
|
+
"""
|
|
1955
|
+
return _whatsapp.whatsapp_Location_Name_Get(self.handle)
|
|
1956
|
+
@Name.setter
|
|
1957
|
+
def Name(self, value):
|
|
1958
|
+
if isinstance(value, go.GoClass):
|
|
1959
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
|
|
1960
|
+
else:
|
|
1961
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value)
|
|
1962
|
+
@property
|
|
1963
|
+
def Address(self):
|
|
1964
|
+
return _whatsapp.whatsapp_Location_Address_Get(self.handle)
|
|
1965
|
+
@Address.setter
|
|
1966
|
+
def Address(self, value):
|
|
1967
|
+
if isinstance(value, go.GoClass):
|
|
1968
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
|
|
1969
|
+
else:
|
|
1970
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value)
|
|
1971
|
+
@property
|
|
1972
|
+
def URL(self):
|
|
1973
|
+
return _whatsapp.whatsapp_Location_URL_Get(self.handle)
|
|
1974
|
+
@URL.setter
|
|
1975
|
+
def URL(self, value):
|
|
1976
|
+
if isinstance(value, go.GoClass):
|
|
1977
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
|
|
1978
|
+
else:
|
|
1979
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value)
|
|
1590
1980
|
|
|
1591
|
-
# Python type for struct whatsapp.
|
|
1592
|
-
class
|
|
1593
|
-
"""A
|
|
1981
|
+
# Python type for struct whatsapp.PollOption
|
|
1982
|
+
class PollOption(go.GoClass):
|
|
1983
|
+
"""A PollOption represents an individual choice within a broader poll.\n"""
|
|
1594
1984
|
def __init__(self, *args, **kwargs):
|
|
1595
1985
|
"""
|
|
1596
1986
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1604,21 +1994,17 @@ class Avatar(go.GoClass):
|
|
|
1604
1994
|
self.handle = args[0].handle
|
|
1605
1995
|
_whatsapp.IncRef(self.handle)
|
|
1606
1996
|
else:
|
|
1607
|
-
self.handle = _whatsapp.
|
|
1997
|
+
self.handle = _whatsapp.whatsapp_PollOption_CTor()
|
|
1608
1998
|
_whatsapp.IncRef(self.handle)
|
|
1609
1999
|
if 0 < len(args):
|
|
1610
|
-
self.
|
|
1611
|
-
if "
|
|
1612
|
-
self.
|
|
1613
|
-
if 1 < len(args):
|
|
1614
|
-
self.URL = args[1]
|
|
1615
|
-
if "URL" in kwargs:
|
|
1616
|
-
self.URL = kwargs["URL"]
|
|
2000
|
+
self.Title = args[0]
|
|
2001
|
+
if "Title" in kwargs:
|
|
2002
|
+
self.Title = kwargs["Title"]
|
|
1617
2003
|
def __del__(self):
|
|
1618
2004
|
_whatsapp.DecRef(self.handle)
|
|
1619
2005
|
def __str__(self):
|
|
1620
2006
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1621
|
-
sv = 'whatsapp.
|
|
2007
|
+
sv = 'whatsapp.PollOption{'
|
|
1622
2008
|
first = True
|
|
1623
2009
|
for v in pr:
|
|
1624
2010
|
if callable(v[1]):
|
|
@@ -1631,33 +2017,24 @@ class Avatar(go.GoClass):
|
|
|
1631
2017
|
return sv + '}'
|
|
1632
2018
|
def __repr__(self):
|
|
1633
2019
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1634
|
-
sv = 'whatsapp.
|
|
2020
|
+
sv = 'whatsapp.PollOption ( '
|
|
1635
2021
|
for v in pr:
|
|
1636
2022
|
if not callable(v[1]):
|
|
1637
2023
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1638
2024
|
return sv + ')'
|
|
1639
2025
|
@property
|
|
1640
|
-
def
|
|
1641
|
-
return _whatsapp.
|
|
1642
|
-
@
|
|
1643
|
-
def
|
|
1644
|
-
if isinstance(value, go.GoClass):
|
|
1645
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
1646
|
-
else:
|
|
1647
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
1648
|
-
@property
|
|
1649
|
-
def URL(self):
|
|
1650
|
-
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
1651
|
-
@URL.setter
|
|
1652
|
-
def URL(self, value):
|
|
2026
|
+
def Title(self):
|
|
2027
|
+
return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
|
|
2028
|
+
@Title.setter
|
|
2029
|
+
def Title(self, value):
|
|
1653
2030
|
if isinstance(value, go.GoClass):
|
|
1654
|
-
_whatsapp.
|
|
2031
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
|
|
1655
2032
|
else:
|
|
1656
|
-
_whatsapp.
|
|
2033
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
|
|
1657
2034
|
|
|
1658
|
-
# Python type for struct whatsapp.
|
|
1659
|
-
class
|
|
1660
|
-
"""
|
|
2035
|
+
# Python type for struct whatsapp.Presence
|
|
2036
|
+
class Presence(go.GoClass):
|
|
2037
|
+
"""Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
|
|
1661
2038
|
def __init__(self, *args, **kwargs):
|
|
1662
2039
|
"""
|
|
1663
2040
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1671,21 +2048,25 @@ class Contact(go.GoClass):
|
|
|
1671
2048
|
self.handle = args[0].handle
|
|
1672
2049
|
_whatsapp.IncRef(self.handle)
|
|
1673
2050
|
else:
|
|
1674
|
-
self.handle = _whatsapp.
|
|
2051
|
+
self.handle = _whatsapp.whatsapp_Presence_CTor()
|
|
1675
2052
|
_whatsapp.IncRef(self.handle)
|
|
1676
2053
|
if 0 < len(args):
|
|
1677
2054
|
self.JID = args[0]
|
|
1678
2055
|
if "JID" in kwargs:
|
|
1679
2056
|
self.JID = kwargs["JID"]
|
|
1680
2057
|
if 1 < len(args):
|
|
1681
|
-
self.
|
|
1682
|
-
if "
|
|
1683
|
-
self.
|
|
2058
|
+
self.Kind = args[1]
|
|
2059
|
+
if "Kind" in kwargs:
|
|
2060
|
+
self.Kind = kwargs["Kind"]
|
|
2061
|
+
if 2 < len(args):
|
|
2062
|
+
self.LastSeen = args[2]
|
|
2063
|
+
if "LastSeen" in kwargs:
|
|
2064
|
+
self.LastSeen = kwargs["LastSeen"]
|
|
1684
2065
|
def __del__(self):
|
|
1685
2066
|
_whatsapp.DecRef(self.handle)
|
|
1686
2067
|
def __str__(self):
|
|
1687
2068
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1688
|
-
sv = 'whatsapp.
|
|
2069
|
+
sv = 'whatsapp.Presence{'
|
|
1689
2070
|
first = True
|
|
1690
2071
|
for v in pr:
|
|
1691
2072
|
if callable(v[1]):
|
|
@@ -1698,33 +2079,42 @@ class Contact(go.GoClass):
|
|
|
1698
2079
|
return sv + '}'
|
|
1699
2080
|
def __repr__(self):
|
|
1700
2081
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1701
|
-
sv = 'whatsapp.
|
|
2082
|
+
sv = 'whatsapp.Presence ( '
|
|
1702
2083
|
for v in pr:
|
|
1703
2084
|
if not callable(v[1]):
|
|
1704
2085
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1705
2086
|
return sv + ')'
|
|
1706
2087
|
@property
|
|
1707
2088
|
def JID(self):
|
|
1708
|
-
return _whatsapp.
|
|
2089
|
+
return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
|
|
1709
2090
|
@JID.setter
|
|
1710
2091
|
def JID(self, value):
|
|
1711
2092
|
if isinstance(value, go.GoClass):
|
|
1712
|
-
_whatsapp.
|
|
2093
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
|
|
1713
2094
|
else:
|
|
1714
|
-
_whatsapp.
|
|
2095
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
|
|
1715
2096
|
@property
|
|
1716
|
-
def
|
|
1717
|
-
return _whatsapp.
|
|
1718
|
-
@
|
|
1719
|
-
def
|
|
2097
|
+
def Kind(self):
|
|
2098
|
+
return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
|
|
2099
|
+
@Kind.setter
|
|
2100
|
+
def Kind(self, value):
|
|
1720
2101
|
if isinstance(value, go.GoClass):
|
|
1721
|
-
_whatsapp.
|
|
2102
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
|
|
1722
2103
|
else:
|
|
1723
|
-
_whatsapp.
|
|
2104
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
|
|
2105
|
+
@property
|
|
2106
|
+
def LastSeen(self):
|
|
2107
|
+
return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
|
|
2108
|
+
@LastSeen.setter
|
|
2109
|
+
def LastSeen(self, value):
|
|
2110
|
+
if isinstance(value, go.GoClass):
|
|
2111
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
|
|
2112
|
+
else:
|
|
2113
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
|
|
1724
2114
|
|
|
1725
|
-
# Python type for struct whatsapp.
|
|
1726
|
-
class
|
|
1727
|
-
"""
|
|
2115
|
+
# Python type for struct whatsapp.Attachment
|
|
2116
|
+
class Attachment(go.GoClass):
|
|
2117
|
+
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
1728
2118
|
def __init__(self, *args, **kwargs):
|
|
1729
2119
|
"""
|
|
1730
2120
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1738,53 +2128,29 @@ class EventPayload(go.GoClass):
|
|
|
1738
2128
|
self.handle = args[0].handle
|
|
1739
2129
|
_whatsapp.IncRef(self.handle)
|
|
1740
2130
|
else:
|
|
1741
|
-
self.handle = _whatsapp.
|
|
2131
|
+
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
1742
2132
|
_whatsapp.IncRef(self.handle)
|
|
1743
2133
|
if 0 < len(args):
|
|
1744
|
-
self.
|
|
1745
|
-
if "
|
|
1746
|
-
self.
|
|
2134
|
+
self.MIME = args[0]
|
|
2135
|
+
if "MIME" in kwargs:
|
|
2136
|
+
self.MIME = kwargs["MIME"]
|
|
1747
2137
|
if 1 < len(args):
|
|
1748
|
-
self.
|
|
1749
|
-
if "
|
|
1750
|
-
self.
|
|
2138
|
+
self.Filename = args[1]
|
|
2139
|
+
if "Filename" in kwargs:
|
|
2140
|
+
self.Filename = kwargs["Filename"]
|
|
1751
2141
|
if 2 < len(args):
|
|
1752
|
-
self.
|
|
1753
|
-
if "
|
|
1754
|
-
self.
|
|
2142
|
+
self.Caption = args[2]
|
|
2143
|
+
if "Caption" in kwargs:
|
|
2144
|
+
self.Caption = kwargs["Caption"]
|
|
1755
2145
|
if 3 < len(args):
|
|
1756
|
-
self.
|
|
1757
|
-
if "
|
|
1758
|
-
self.
|
|
1759
|
-
if 4 < len(args):
|
|
1760
|
-
self.Presence = args[4]
|
|
1761
|
-
if "Presence" in kwargs:
|
|
1762
|
-
self.Presence = kwargs["Presence"]
|
|
1763
|
-
if 5 < len(args):
|
|
1764
|
-
self.Message = args[5]
|
|
1765
|
-
if "Message" in kwargs:
|
|
1766
|
-
self.Message = kwargs["Message"]
|
|
1767
|
-
if 6 < len(args):
|
|
1768
|
-
self.ChatState = args[6]
|
|
1769
|
-
if "ChatState" in kwargs:
|
|
1770
|
-
self.ChatState = kwargs["ChatState"]
|
|
1771
|
-
if 7 < len(args):
|
|
1772
|
-
self.Receipt = args[7]
|
|
1773
|
-
if "Receipt" in kwargs:
|
|
1774
|
-
self.Receipt = kwargs["Receipt"]
|
|
1775
|
-
if 8 < len(args):
|
|
1776
|
-
self.Group = args[8]
|
|
1777
|
-
if "Group" in kwargs:
|
|
1778
|
-
self.Group = kwargs["Group"]
|
|
1779
|
-
if 9 < len(args):
|
|
1780
|
-
self.Call = args[9]
|
|
1781
|
-
if "Call" in kwargs:
|
|
1782
|
-
self.Call = kwargs["Call"]
|
|
2146
|
+
self.Data = args[3]
|
|
2147
|
+
if "Data" in kwargs:
|
|
2148
|
+
self.Data = kwargs["Data"]
|
|
1783
2149
|
def __del__(self):
|
|
1784
2150
|
_whatsapp.DecRef(self.handle)
|
|
1785
2151
|
def __str__(self):
|
|
1786
2152
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1787
|
-
sv = 'whatsapp.
|
|
2153
|
+
sv = 'whatsapp.Attachment{'
|
|
1788
2154
|
first = True
|
|
1789
2155
|
for v in pr:
|
|
1790
2156
|
if callable(v[1]):
|
|
@@ -1797,105 +2163,137 @@ class EventPayload(go.GoClass):
|
|
|
1797
2163
|
return sv + '}'
|
|
1798
2164
|
def __repr__(self):
|
|
1799
2165
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1800
|
-
sv = 'whatsapp.
|
|
2166
|
+
sv = 'whatsapp.Attachment ( '
|
|
1801
2167
|
for v in pr:
|
|
1802
2168
|
if not callable(v[1]):
|
|
1803
2169
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1804
2170
|
return sv + ')'
|
|
1805
2171
|
@property
|
|
1806
|
-
def
|
|
1807
|
-
return _whatsapp.
|
|
1808
|
-
@
|
|
1809
|
-
def
|
|
1810
|
-
if isinstance(value, go.GoClass):
|
|
1811
|
-
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value.handle)
|
|
1812
|
-
else:
|
|
1813
|
-
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value)
|
|
1814
|
-
@property
|
|
1815
|
-
def PairDeviceID(self):
|
|
1816
|
-
return _whatsapp.whatsapp_EventPayload_PairDeviceID_Get(self.handle)
|
|
1817
|
-
@PairDeviceID.setter
|
|
1818
|
-
def PairDeviceID(self, value):
|
|
1819
|
-
if isinstance(value, go.GoClass):
|
|
1820
|
-
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value.handle)
|
|
1821
|
-
else:
|
|
1822
|
-
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value)
|
|
1823
|
-
@property
|
|
1824
|
-
def Connect(self):
|
|
1825
|
-
return Connect(handle=_whatsapp.whatsapp_EventPayload_Connect_Get(self.handle))
|
|
1826
|
-
@Connect.setter
|
|
1827
|
-
def Connect(self, value):
|
|
2172
|
+
def MIME(self):
|
|
2173
|
+
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
2174
|
+
@MIME.setter
|
|
2175
|
+
def MIME(self, value):
|
|
1828
2176
|
if isinstance(value, go.GoClass):
|
|
1829
|
-
_whatsapp.
|
|
2177
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
1830
2178
|
else:
|
|
1831
|
-
|
|
2179
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
1832
2180
|
@property
|
|
1833
|
-
def
|
|
1834
|
-
return
|
|
1835
|
-
@
|
|
1836
|
-
def
|
|
2181
|
+
def Filename(self):
|
|
2182
|
+
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
2183
|
+
@Filename.setter
|
|
2184
|
+
def Filename(self, value):
|
|
1837
2185
|
if isinstance(value, go.GoClass):
|
|
1838
|
-
_whatsapp.
|
|
2186
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
1839
2187
|
else:
|
|
1840
|
-
|
|
2188
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
1841
2189
|
@property
|
|
1842
|
-
def
|
|
1843
|
-
return
|
|
1844
|
-
@
|
|
1845
|
-
def
|
|
2190
|
+
def Caption(self):
|
|
2191
|
+
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
2192
|
+
@Caption.setter
|
|
2193
|
+
def Caption(self, value):
|
|
1846
2194
|
if isinstance(value, go.GoClass):
|
|
1847
|
-
_whatsapp.
|
|
2195
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
1848
2196
|
else:
|
|
1849
|
-
|
|
2197
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
1850
2198
|
@property
|
|
1851
|
-
def
|
|
1852
|
-
return
|
|
1853
|
-
@
|
|
1854
|
-
def
|
|
2199
|
+
def Data(self):
|
|
2200
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
2201
|
+
@Data.setter
|
|
2202
|
+
def Data(self, value):
|
|
1855
2203
|
if isinstance(value, go.GoClass):
|
|
1856
|
-
_whatsapp.
|
|
2204
|
+
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
1857
2205
|
else:
|
|
1858
2206
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
2207
|
+
def GetSpec(self, ctx):
|
|
2208
|
+
"""GetSpec(object ctx) object, str
|
|
2209
|
+
|
|
2210
|
+
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
2211
|
+
"""
|
|
2212
|
+
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
2213
|
+
|
|
2214
|
+
# Python type for struct whatsapp.Call
|
|
2215
|
+
class Call(go.GoClass):
|
|
2216
|
+
"""A Call represents an incoming or outgoing voice/video call made over WhatsApp. Full support for\ncalls is currently not implemented, and this structure contains the bare minimum data required\nfor notifying on missed calls.\n"""
|
|
2217
|
+
def __init__(self, *args, **kwargs):
|
|
2218
|
+
"""
|
|
2219
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2220
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2221
|
+
in which case a new Go object is constructed first
|
|
2222
|
+
"""
|
|
2223
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2224
|
+
self.handle = kwargs['handle']
|
|
2225
|
+
_whatsapp.IncRef(self.handle)
|
|
2226
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2227
|
+
self.handle = args[0].handle
|
|
2228
|
+
_whatsapp.IncRef(self.handle)
|
|
1866
2229
|
else:
|
|
1867
|
-
|
|
2230
|
+
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
2231
|
+
_whatsapp.IncRef(self.handle)
|
|
2232
|
+
if 0 < len(args):
|
|
2233
|
+
self.State = args[0]
|
|
2234
|
+
if "State" in kwargs:
|
|
2235
|
+
self.State = kwargs["State"]
|
|
2236
|
+
if 1 < len(args):
|
|
2237
|
+
self.JID = args[1]
|
|
2238
|
+
if "JID" in kwargs:
|
|
2239
|
+
self.JID = kwargs["JID"]
|
|
2240
|
+
if 2 < len(args):
|
|
2241
|
+
self.Timestamp = args[2]
|
|
2242
|
+
if "Timestamp" in kwargs:
|
|
2243
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2244
|
+
def __del__(self):
|
|
2245
|
+
_whatsapp.DecRef(self.handle)
|
|
2246
|
+
def __str__(self):
|
|
2247
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2248
|
+
sv = 'whatsapp.Call{'
|
|
2249
|
+
first = True
|
|
2250
|
+
for v in pr:
|
|
2251
|
+
if callable(v[1]):
|
|
2252
|
+
continue
|
|
2253
|
+
if first:
|
|
2254
|
+
first = False
|
|
2255
|
+
else:
|
|
2256
|
+
sv += ', '
|
|
2257
|
+
sv += v[0] + '=' + str(v[1])
|
|
2258
|
+
return sv + '}'
|
|
2259
|
+
def __repr__(self):
|
|
2260
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2261
|
+
sv = 'whatsapp.Call ( '
|
|
2262
|
+
for v in pr:
|
|
2263
|
+
if not callable(v[1]):
|
|
2264
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2265
|
+
return sv + ')'
|
|
1868
2266
|
@property
|
|
1869
|
-
def
|
|
1870
|
-
return
|
|
1871
|
-
@
|
|
1872
|
-
def
|
|
2267
|
+
def State(self):
|
|
2268
|
+
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
2269
|
+
@State.setter
|
|
2270
|
+
def State(self, value):
|
|
1873
2271
|
if isinstance(value, go.GoClass):
|
|
1874
|
-
_whatsapp.
|
|
2272
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
1875
2273
|
else:
|
|
1876
|
-
|
|
2274
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
1877
2275
|
@property
|
|
1878
|
-
def
|
|
1879
|
-
return
|
|
1880
|
-
@
|
|
1881
|
-
def
|
|
2276
|
+
def JID(self):
|
|
2277
|
+
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
2278
|
+
@JID.setter
|
|
2279
|
+
def JID(self, value):
|
|
1882
2280
|
if isinstance(value, go.GoClass):
|
|
1883
|
-
_whatsapp.
|
|
2281
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
1884
2282
|
else:
|
|
1885
|
-
|
|
2283
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
1886
2284
|
@property
|
|
1887
|
-
def
|
|
1888
|
-
return
|
|
1889
|
-
@
|
|
1890
|
-
def
|
|
2285
|
+
def Timestamp(self):
|
|
2286
|
+
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
2287
|
+
@Timestamp.setter
|
|
2288
|
+
def Timestamp(self, value):
|
|
1891
2289
|
if isinstance(value, go.GoClass):
|
|
1892
|
-
_whatsapp.
|
|
2290
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
1893
2291
|
else:
|
|
1894
|
-
|
|
2292
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
1895
2293
|
|
|
1896
|
-
# Python type for struct whatsapp.
|
|
1897
|
-
class
|
|
1898
|
-
"""A
|
|
2294
|
+
# Python type for struct whatsapp.Contact
|
|
2295
|
+
class Contact(go.GoClass):
|
|
2296
|
+
"""A Contact represents any entity that be communicated with directly in WhatsApp. This typically\nrepresents people, but may represent a business or bot as well, but not a group-chat.\n"""
|
|
1899
2297
|
def __init__(self, *args, **kwargs):
|
|
1900
2298
|
"""
|
|
1901
2299
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1909,7 +2307,7 @@ class Group(go.GoClass):
|
|
|
1909
2307
|
self.handle = args[0].handle
|
|
1910
2308
|
_whatsapp.IncRef(self.handle)
|
|
1911
2309
|
else:
|
|
1912
|
-
self.handle = _whatsapp.
|
|
2310
|
+
self.handle = _whatsapp.whatsapp_Contact_CTor()
|
|
1913
2311
|
_whatsapp.IncRef(self.handle)
|
|
1914
2312
|
if 0 < len(args):
|
|
1915
2313
|
self.JID = args[0]
|
|
@@ -1919,23 +2317,11 @@ class Group(go.GoClass):
|
|
|
1919
2317
|
self.Name = args[1]
|
|
1920
2318
|
if "Name" in kwargs:
|
|
1921
2319
|
self.Name = kwargs["Name"]
|
|
1922
|
-
if 2 < len(args):
|
|
1923
|
-
self.Subject = args[2]
|
|
1924
|
-
if "Subject" in kwargs:
|
|
1925
|
-
self.Subject = kwargs["Subject"]
|
|
1926
|
-
if 3 < len(args):
|
|
1927
|
-
self.Nickname = args[3]
|
|
1928
|
-
if "Nickname" in kwargs:
|
|
1929
|
-
self.Nickname = kwargs["Nickname"]
|
|
1930
|
-
if 4 < len(args):
|
|
1931
|
-
self.Participants = args[4]
|
|
1932
|
-
if "Participants" in kwargs:
|
|
1933
|
-
self.Participants = kwargs["Participants"]
|
|
1934
2320
|
def __del__(self):
|
|
1935
2321
|
_whatsapp.DecRef(self.handle)
|
|
1936
2322
|
def __str__(self):
|
|
1937
2323
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1938
|
-
sv = 'whatsapp.
|
|
2324
|
+
sv = 'whatsapp.Contact{'
|
|
1939
2325
|
first = True
|
|
1940
2326
|
for v in pr:
|
|
1941
2327
|
if callable(v[1]):
|
|
@@ -1948,60 +2334,33 @@ class Group(go.GoClass):
|
|
|
1948
2334
|
return sv + '}'
|
|
1949
2335
|
def __repr__(self):
|
|
1950
2336
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1951
|
-
sv = 'whatsapp.
|
|
2337
|
+
sv = 'whatsapp.Contact ( '
|
|
1952
2338
|
for v in pr:
|
|
1953
2339
|
if not callable(v[1]):
|
|
1954
2340
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1955
2341
|
return sv + ')'
|
|
1956
2342
|
@property
|
|
1957
2343
|
def JID(self):
|
|
1958
|
-
return _whatsapp.
|
|
2344
|
+
return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
|
|
1959
2345
|
@JID.setter
|
|
1960
2346
|
def JID(self, value):
|
|
1961
2347
|
if isinstance(value, go.GoClass):
|
|
1962
|
-
_whatsapp.
|
|
2348
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
|
|
1963
2349
|
else:
|
|
1964
|
-
_whatsapp.
|
|
2350
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
|
|
1965
2351
|
@property
|
|
1966
2352
|
def Name(self):
|
|
1967
|
-
return _whatsapp.
|
|
2353
|
+
return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
|
|
1968
2354
|
@Name.setter
|
|
1969
2355
|
def Name(self, value):
|
|
1970
2356
|
if isinstance(value, go.GoClass):
|
|
1971
|
-
_whatsapp.
|
|
1972
|
-
else:
|
|
1973
|
-
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
1974
|
-
@property
|
|
1975
|
-
def Subject(self):
|
|
1976
|
-
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
1977
|
-
@Subject.setter
|
|
1978
|
-
def Subject(self, value):
|
|
1979
|
-
if isinstance(value, go.GoClass):
|
|
1980
|
-
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
1981
|
-
else:
|
|
1982
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1983
|
-
@property
|
|
1984
|
-
def Nickname(self):
|
|
1985
|
-
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
1986
|
-
@Nickname.setter
|
|
1987
|
-
def Nickname(self, value):
|
|
1988
|
-
if isinstance(value, go.GoClass):
|
|
1989
|
-
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
1990
|
-
else:
|
|
1991
|
-
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
1992
|
-
@property
|
|
1993
|
-
def Participants(self):
|
|
1994
|
-
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
1995
|
-
@Participants.setter
|
|
1996
|
-
def Participants(self, value):
|
|
1997
|
-
if isinstance(value, go.GoClass):
|
|
1998
|
-
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
2357
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
|
|
1999
2358
|
else:
|
|
2000
|
-
|
|
2359
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
|
|
2001
2360
|
|
|
2002
|
-
# Python type for struct whatsapp.
|
|
2003
|
-
class
|
|
2004
|
-
"""A
|
|
2361
|
+
# Python type for struct whatsapp.Gateway
|
|
2362
|
+
class Gateway(go.GoClass):
|
|
2363
|
+
"""A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
|
|
2005
2364
|
def __init__(self, *args, **kwargs):
|
|
2006
2365
|
"""
|
|
2007
2366
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2015,25 +2374,29 @@ class GroupParticipant(go.GoClass):
|
|
|
2015
2374
|
self.handle = args[0].handle
|
|
2016
2375
|
_whatsapp.IncRef(self.handle)
|
|
2017
2376
|
else:
|
|
2018
|
-
self.handle = _whatsapp.
|
|
2377
|
+
self.handle = _whatsapp.whatsapp_Gateway_CTor()
|
|
2019
2378
|
_whatsapp.IncRef(self.handle)
|
|
2020
2379
|
if 0 < len(args):
|
|
2021
|
-
self.
|
|
2022
|
-
if "
|
|
2023
|
-
self.
|
|
2380
|
+
self.DBPath = args[0]
|
|
2381
|
+
if "DBPath" in kwargs:
|
|
2382
|
+
self.DBPath = kwargs["DBPath"]
|
|
2024
2383
|
if 1 < len(args):
|
|
2025
|
-
self.
|
|
2026
|
-
if "
|
|
2027
|
-
self.
|
|
2384
|
+
self.Name = args[1]
|
|
2385
|
+
if "Name" in kwargs:
|
|
2386
|
+
self.Name = kwargs["Name"]
|
|
2028
2387
|
if 2 < len(args):
|
|
2029
|
-
self.
|
|
2030
|
-
if "
|
|
2031
|
-
self.
|
|
2388
|
+
self.LogLevel = args[2]
|
|
2389
|
+
if "LogLevel" in kwargs:
|
|
2390
|
+
self.LogLevel = kwargs["LogLevel"]
|
|
2391
|
+
if 3 < len(args):
|
|
2392
|
+
self.TempDir = args[3]
|
|
2393
|
+
if "TempDir" in kwargs:
|
|
2394
|
+
self.TempDir = kwargs["TempDir"]
|
|
2032
2395
|
def __del__(self):
|
|
2033
2396
|
_whatsapp.DecRef(self.handle)
|
|
2034
2397
|
def __str__(self):
|
|
2035
2398
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2036
|
-
sv = 'whatsapp.
|
|
2399
|
+
sv = 'whatsapp.Gateway{'
|
|
2037
2400
|
first = True
|
|
2038
2401
|
for v in pr:
|
|
2039
2402
|
if callable(v[1]):
|
|
@@ -2046,42 +2409,72 @@ class GroupParticipant(go.GoClass):
|
|
|
2046
2409
|
return sv + '}'
|
|
2047
2410
|
def __repr__(self):
|
|
2048
2411
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2049
|
-
sv = 'whatsapp.
|
|
2412
|
+
sv = 'whatsapp.Gateway ( '
|
|
2050
2413
|
for v in pr:
|
|
2051
2414
|
if not callable(v[1]):
|
|
2052
2415
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2053
2416
|
return sv + ')'
|
|
2054
2417
|
@property
|
|
2055
|
-
def
|
|
2056
|
-
return _whatsapp.
|
|
2057
|
-
@
|
|
2058
|
-
def
|
|
2418
|
+
def DBPath(self):
|
|
2419
|
+
return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
|
|
2420
|
+
@DBPath.setter
|
|
2421
|
+
def DBPath(self, value):
|
|
2059
2422
|
if isinstance(value, go.GoClass):
|
|
2060
|
-
_whatsapp.
|
|
2423
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
|
|
2061
2424
|
else:
|
|
2062
|
-
_whatsapp.
|
|
2425
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
|
|
2063
2426
|
@property
|
|
2064
|
-
def
|
|
2065
|
-
return _whatsapp.
|
|
2066
|
-
@
|
|
2067
|
-
def
|
|
2427
|
+
def Name(self):
|
|
2428
|
+
return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
|
|
2429
|
+
@Name.setter
|
|
2430
|
+
def Name(self, value):
|
|
2068
2431
|
if isinstance(value, go.GoClass):
|
|
2069
|
-
_whatsapp.
|
|
2432
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
|
|
2070
2433
|
else:
|
|
2071
|
-
_whatsapp.
|
|
2434
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
|
|
2072
2435
|
@property
|
|
2073
|
-
def
|
|
2074
|
-
return _whatsapp.
|
|
2075
|
-
@
|
|
2076
|
-
def
|
|
2436
|
+
def LogLevel(self):
|
|
2437
|
+
return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
|
|
2438
|
+
@LogLevel.setter
|
|
2439
|
+
def LogLevel(self, value):
|
|
2077
2440
|
if isinstance(value, go.GoClass):
|
|
2078
|
-
_whatsapp.
|
|
2441
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
|
|
2079
2442
|
else:
|
|
2080
|
-
_whatsapp.
|
|
2443
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
|
|
2444
|
+
@property
|
|
2445
|
+
def TempDir(self):
|
|
2446
|
+
return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
|
|
2447
|
+
@TempDir.setter
|
|
2448
|
+
def TempDir(self, value):
|
|
2449
|
+
if isinstance(value, go.GoClass):
|
|
2450
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
|
|
2451
|
+
else:
|
|
2452
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
|
|
2453
|
+
def Init(self):
|
|
2454
|
+
"""Init() str
|
|
2455
|
+
|
|
2456
|
+
Init performs initialization procedures for the Gateway, and is expected to be run before any
|
|
2457
|
+
calls to [Gateway.Session].
|
|
2458
|
+
"""
|
|
2459
|
+
return _whatsapp.whatsapp_Gateway_Init(self.handle)
|
|
2460
|
+
def NewSession(self, device):
|
|
2461
|
+
"""NewSession(object device) object
|
|
2462
|
+
|
|
2463
|
+
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
2464
|
+
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
2465
|
+
"""
|
|
2466
|
+
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
2467
|
+
def CleanupSession(self, device):
|
|
2468
|
+
"""CleanupSession(object device) str
|
|
2469
|
+
|
|
2470
|
+
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
2471
|
+
used when pairing a new device or unregistering from the Gateway.
|
|
2472
|
+
"""
|
|
2473
|
+
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
2081
2474
|
|
|
2082
|
-
# Python type for struct whatsapp.
|
|
2083
|
-
class
|
|
2084
|
-
"""A
|
|
2475
|
+
# Python type for struct whatsapp.LinkedDevice
|
|
2476
|
+
class LinkedDevice(go.GoClass):
|
|
2477
|
+
"""A LinkedDevice represents a unique pairing session between the gateway and WhatsApp. It is not\nunique to the underlying \"main\" device (or phone number), as multiple linked devices may be paired\nwith any main device.\n"""
|
|
2085
2478
|
def __init__(self, *args, **kwargs):
|
|
2086
2479
|
"""
|
|
2087
2480
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2095,25 +2488,17 @@ class GroupSubject(go.GoClass):
|
|
|
2095
2488
|
self.handle = args[0].handle
|
|
2096
2489
|
_whatsapp.IncRef(self.handle)
|
|
2097
2490
|
else:
|
|
2098
|
-
self.handle = _whatsapp.
|
|
2491
|
+
self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
|
|
2099
2492
|
_whatsapp.IncRef(self.handle)
|
|
2100
2493
|
if 0 < len(args):
|
|
2101
|
-
self.
|
|
2102
|
-
if "
|
|
2103
|
-
self.
|
|
2104
|
-
if 1 < len(args):
|
|
2105
|
-
self.SetAt = args[1]
|
|
2106
|
-
if "SetAt" in kwargs:
|
|
2107
|
-
self.SetAt = kwargs["SetAt"]
|
|
2108
|
-
if 2 < len(args):
|
|
2109
|
-
self.SetByJID = args[2]
|
|
2110
|
-
if "SetByJID" in kwargs:
|
|
2111
|
-
self.SetByJID = kwargs["SetByJID"]
|
|
2494
|
+
self.ID = args[0]
|
|
2495
|
+
if "ID" in kwargs:
|
|
2496
|
+
self.ID = kwargs["ID"]
|
|
2112
2497
|
def __del__(self):
|
|
2113
2498
|
_whatsapp.DecRef(self.handle)
|
|
2114
2499
|
def __str__(self):
|
|
2115
2500
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2116
|
-
sv = 'whatsapp.
|
|
2501
|
+
sv = 'whatsapp.LinkedDevice{'
|
|
2117
2502
|
first = True
|
|
2118
2503
|
for v in pr:
|
|
2119
2504
|
if callable(v[1]):
|
|
@@ -2124,40 +2509,32 @@ class GroupSubject(go.GoClass):
|
|
|
2124
2509
|
sv += ', '
|
|
2125
2510
|
sv += v[0] + '=' + str(v[1])
|
|
2126
2511
|
return sv + '}'
|
|
2127
|
-
def __repr__(self):
|
|
2128
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2129
|
-
sv = 'whatsapp.
|
|
2130
|
-
for v in pr:
|
|
2131
|
-
if not callable(v[1]):
|
|
2132
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2133
|
-
return sv + ')'
|
|
2134
|
-
@property
|
|
2135
|
-
def Subject(self):
|
|
2136
|
-
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
2137
|
-
@Subject.setter
|
|
2138
|
-
def Subject(self, value):
|
|
2139
|
-
if isinstance(value, go.GoClass):
|
|
2140
|
-
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
2141
|
-
else:
|
|
2142
|
-
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
2143
|
-
@property
|
|
2144
|
-
def SetAt(self):
|
|
2145
|
-
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
2146
|
-
@SetAt.setter
|
|
2147
|
-
def SetAt(self, value):
|
|
2148
|
-
if isinstance(value, go.GoClass):
|
|
2149
|
-
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
2150
|
-
else:
|
|
2151
|
-
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
2512
|
+
def __repr__(self):
|
|
2513
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2514
|
+
sv = 'whatsapp.LinkedDevice ( '
|
|
2515
|
+
for v in pr:
|
|
2516
|
+
if not callable(v[1]):
|
|
2517
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2518
|
+
return sv + ')'
|
|
2152
2519
|
@property
|
|
2153
|
-
def
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2520
|
+
def ID(self):
|
|
2521
|
+
"""ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
|
|
2522
|
+
is currently equivalent to a password, and needs to be protected accordingly.
|
|
2523
|
+
"""
|
|
2524
|
+
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
2525
|
+
@ID.setter
|
|
2526
|
+
def ID(self, value):
|
|
2157
2527
|
if isinstance(value, go.GoClass):
|
|
2158
|
-
_whatsapp.
|
|
2528
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
|
|
2159
2529
|
else:
|
|
2160
|
-
_whatsapp.
|
|
2530
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
|
|
2531
|
+
def JID(self):
|
|
2532
|
+
"""JID() object
|
|
2533
|
+
|
|
2534
|
+
JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
|
|
2535
|
+
may return invalid JIDs, and this function does not handle errors.
|
|
2536
|
+
"""
|
|
2537
|
+
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
2161
2538
|
|
|
2162
2539
|
# Python type for struct whatsapp.Message
|
|
2163
2540
|
class Message(go.GoClass):
|
|
@@ -2242,17 +2619,25 @@ class Message(go.GoClass):
|
|
|
2242
2619
|
if "Album" in kwargs:
|
|
2243
2620
|
self.Album = kwargs["Album"]
|
|
2244
2621
|
if 16 < len(args):
|
|
2245
|
-
self.
|
|
2622
|
+
self.GroupInvite = args[16]
|
|
2623
|
+
if "GroupInvite" in kwargs:
|
|
2624
|
+
self.GroupInvite = kwargs["GroupInvite"]
|
|
2625
|
+
if 17 < len(args):
|
|
2626
|
+
self.MentionJIDs = args[17]
|
|
2246
2627
|
if "MentionJIDs" in kwargs:
|
|
2247
2628
|
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
2248
|
-
if
|
|
2249
|
-
self.Receipts = args[
|
|
2629
|
+
if 18 < len(args):
|
|
2630
|
+
self.Receipts = args[18]
|
|
2250
2631
|
if "Receipts" in kwargs:
|
|
2251
2632
|
self.Receipts = kwargs["Receipts"]
|
|
2252
|
-
if
|
|
2253
|
-
self.Reactions = args[
|
|
2633
|
+
if 19 < len(args):
|
|
2634
|
+
self.Reactions = args[19]
|
|
2254
2635
|
if "Reactions" in kwargs:
|
|
2255
2636
|
self.Reactions = kwargs["Reactions"]
|
|
2637
|
+
if 20 < len(args):
|
|
2638
|
+
self.IsHistory = args[20]
|
|
2639
|
+
if "IsHistory" in kwargs:
|
|
2640
|
+
self.IsHistory = kwargs["IsHistory"]
|
|
2256
2641
|
def __del__(self):
|
|
2257
2642
|
_whatsapp.DecRef(self.handle)
|
|
2258
2643
|
def __str__(self):
|
|
@@ -2369,372 +2754,105 @@ class Message(go.GoClass):
|
|
|
2369
2754
|
def ReplyBody(self):
|
|
2370
2755
|
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
2371
2756
|
@ReplyBody.setter
|
|
2372
|
-
def ReplyBody(self, value):
|
|
2373
|
-
if isinstance(value, go.GoClass):
|
|
2374
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2375
|
-
else:
|
|
2376
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2377
|
-
@property
|
|
2378
|
-
def Attachments(self):
|
|
2379
|
-
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2380
|
-
@Attachments.setter
|
|
2381
|
-
def Attachments(self, value):
|
|
2382
|
-
if isinstance(value, go.GoClass):
|
|
2383
|
-
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2384
|
-
else:
|
|
2385
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2386
|
-
@property
|
|
2387
|
-
def Preview(self):
|
|
2388
|
-
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2389
|
-
@Preview.setter
|
|
2390
|
-
def Preview(self, value):
|
|
2391
|
-
if isinstance(value, go.GoClass):
|
|
2392
|
-
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2393
|
-
else:
|
|
2394
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2395
|
-
@property
|
|
2396
|
-
def Location(self):
|
|
2397
|
-
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
2398
|
-
@Location.setter
|
|
2399
|
-
def Location(self, value):
|
|
2400
|
-
if isinstance(value, go.GoClass):
|
|
2401
|
-
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
2402
|
-
else:
|
|
2403
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2404
|
-
@property
|
|
2405
|
-
def Poll(self):
|
|
2406
|
-
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
2407
|
-
@Poll.setter
|
|
2408
|
-
def Poll(self, value):
|
|
2409
|
-
if isinstance(value, go.GoClass):
|
|
2410
|
-
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
2411
|
-
else:
|
|
2412
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2413
|
-
@property
|
|
2414
|
-
def Album(self):
|
|
2415
|
-
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
2416
|
-
@Album.setter
|
|
2417
|
-
def Album(self, value):
|
|
2418
|
-
if isinstance(value, go.GoClass):
|
|
2419
|
-
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
2420
|
-
else:
|
|
2421
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2422
|
-
@property
|
|
2423
|
-
def MentionJIDs(self):
|
|
2424
|
-
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2425
|
-
@MentionJIDs.setter
|
|
2426
|
-
def MentionJIDs(self, value):
|
|
2427
|
-
if isinstance(value, go.GoClass):
|
|
2428
|
-
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2429
|
-
else:
|
|
2430
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2431
|
-
@property
|
|
2432
|
-
def Receipts(self):
|
|
2433
|
-
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2434
|
-
@Receipts.setter
|
|
2435
|
-
def Receipts(self, value):
|
|
2436
|
-
if isinstance(value, go.GoClass):
|
|
2437
|
-
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2438
|
-
else:
|
|
2439
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2440
|
-
@property
|
|
2441
|
-
def Reactions(self):
|
|
2442
|
-
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2443
|
-
@Reactions.setter
|
|
2444
|
-
def Reactions(self, value):
|
|
2445
|
-
if isinstance(value, go.GoClass):
|
|
2446
|
-
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2447
|
-
else:
|
|
2448
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2449
|
-
|
|
2450
|
-
# Python type for struct whatsapp.Attachment
|
|
2451
|
-
class Attachment(go.GoClass):
|
|
2452
|
-
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
2453
|
-
def __init__(self, *args, **kwargs):
|
|
2454
|
-
"""
|
|
2455
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2456
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2457
|
-
in which case a new Go object is constructed first
|
|
2458
|
-
"""
|
|
2459
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2460
|
-
self.handle = kwargs['handle']
|
|
2461
|
-
_whatsapp.IncRef(self.handle)
|
|
2462
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2463
|
-
self.handle = args[0].handle
|
|
2464
|
-
_whatsapp.IncRef(self.handle)
|
|
2465
|
-
else:
|
|
2466
|
-
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
2467
|
-
_whatsapp.IncRef(self.handle)
|
|
2468
|
-
if 0 < len(args):
|
|
2469
|
-
self.MIME = args[0]
|
|
2470
|
-
if "MIME" in kwargs:
|
|
2471
|
-
self.MIME = kwargs["MIME"]
|
|
2472
|
-
if 1 < len(args):
|
|
2473
|
-
self.Filename = args[1]
|
|
2474
|
-
if "Filename" in kwargs:
|
|
2475
|
-
self.Filename = kwargs["Filename"]
|
|
2476
|
-
if 2 < len(args):
|
|
2477
|
-
self.Caption = args[2]
|
|
2478
|
-
if "Caption" in kwargs:
|
|
2479
|
-
self.Caption = kwargs["Caption"]
|
|
2480
|
-
if 3 < len(args):
|
|
2481
|
-
self.Data = args[3]
|
|
2482
|
-
if "Data" in kwargs:
|
|
2483
|
-
self.Data = kwargs["Data"]
|
|
2484
|
-
def __del__(self):
|
|
2485
|
-
_whatsapp.DecRef(self.handle)
|
|
2486
|
-
def __str__(self):
|
|
2487
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2488
|
-
sv = 'whatsapp.Attachment{'
|
|
2489
|
-
first = True
|
|
2490
|
-
for v in pr:
|
|
2491
|
-
if callable(v[1]):
|
|
2492
|
-
continue
|
|
2493
|
-
if first:
|
|
2494
|
-
first = False
|
|
2495
|
-
else:
|
|
2496
|
-
sv += ', '
|
|
2497
|
-
sv += v[0] + '=' + str(v[1])
|
|
2498
|
-
return sv + '}'
|
|
2499
|
-
def __repr__(self):
|
|
2500
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2501
|
-
sv = 'whatsapp.Attachment ( '
|
|
2502
|
-
for v in pr:
|
|
2503
|
-
if not callable(v[1]):
|
|
2504
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2505
|
-
return sv + ')'
|
|
2506
|
-
@property
|
|
2507
|
-
def MIME(self):
|
|
2508
|
-
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
2509
|
-
@MIME.setter
|
|
2510
|
-
def MIME(self, value):
|
|
2511
|
-
if isinstance(value, go.GoClass):
|
|
2512
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
2513
|
-
else:
|
|
2514
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
2515
|
-
@property
|
|
2516
|
-
def Filename(self):
|
|
2517
|
-
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
2518
|
-
@Filename.setter
|
|
2519
|
-
def Filename(self, value):
|
|
2520
|
-
if isinstance(value, go.GoClass):
|
|
2521
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
2522
|
-
else:
|
|
2523
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
2524
|
-
@property
|
|
2525
|
-
def Caption(self):
|
|
2526
|
-
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
2527
|
-
@Caption.setter
|
|
2528
|
-
def Caption(self, value):
|
|
2529
|
-
if isinstance(value, go.GoClass):
|
|
2530
|
-
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
2531
|
-
else:
|
|
2532
|
-
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
2533
|
-
@property
|
|
2534
|
-
def Data(self):
|
|
2535
|
-
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
2536
|
-
@Data.setter
|
|
2537
|
-
def Data(self, value):
|
|
2538
|
-
if isinstance(value, go.GoClass):
|
|
2539
|
-
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
2540
|
-
else:
|
|
2541
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2542
|
-
def GetSpec(self, ctx):
|
|
2543
|
-
"""GetSpec(object ctx) object, str
|
|
2544
|
-
|
|
2545
|
-
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
2546
|
-
"""
|
|
2547
|
-
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
2548
|
-
|
|
2549
|
-
# Python type for struct whatsapp.Presence
|
|
2550
|
-
class Presence(go.GoClass):
|
|
2551
|
-
"""Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
|
|
2552
|
-
def __init__(self, *args, **kwargs):
|
|
2553
|
-
"""
|
|
2554
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2555
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2556
|
-
in which case a new Go object is constructed first
|
|
2557
|
-
"""
|
|
2558
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2559
|
-
self.handle = kwargs['handle']
|
|
2560
|
-
_whatsapp.IncRef(self.handle)
|
|
2561
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2562
|
-
self.handle = args[0].handle
|
|
2563
|
-
_whatsapp.IncRef(self.handle)
|
|
2564
|
-
else:
|
|
2565
|
-
self.handle = _whatsapp.whatsapp_Presence_CTor()
|
|
2566
|
-
_whatsapp.IncRef(self.handle)
|
|
2567
|
-
if 0 < len(args):
|
|
2568
|
-
self.JID = args[0]
|
|
2569
|
-
if "JID" in kwargs:
|
|
2570
|
-
self.JID = kwargs["JID"]
|
|
2571
|
-
if 1 < len(args):
|
|
2572
|
-
self.Kind = args[1]
|
|
2573
|
-
if "Kind" in kwargs:
|
|
2574
|
-
self.Kind = kwargs["Kind"]
|
|
2575
|
-
if 2 < len(args):
|
|
2576
|
-
self.LastSeen = args[2]
|
|
2577
|
-
if "LastSeen" in kwargs:
|
|
2578
|
-
self.LastSeen = kwargs["LastSeen"]
|
|
2579
|
-
def __del__(self):
|
|
2580
|
-
_whatsapp.DecRef(self.handle)
|
|
2581
|
-
def __str__(self):
|
|
2582
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2583
|
-
sv = 'whatsapp.Presence{'
|
|
2584
|
-
first = True
|
|
2585
|
-
for v in pr:
|
|
2586
|
-
if callable(v[1]):
|
|
2587
|
-
continue
|
|
2588
|
-
if first:
|
|
2589
|
-
first = False
|
|
2590
|
-
else:
|
|
2591
|
-
sv += ', '
|
|
2592
|
-
sv += v[0] + '=' + str(v[1])
|
|
2593
|
-
return sv + '}'
|
|
2594
|
-
def __repr__(self):
|
|
2595
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2596
|
-
sv = 'whatsapp.Presence ( '
|
|
2597
|
-
for v in pr:
|
|
2598
|
-
if not callable(v[1]):
|
|
2599
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2600
|
-
return sv + ')'
|
|
2757
|
+
def ReplyBody(self, value):
|
|
2758
|
+
if isinstance(value, go.GoClass):
|
|
2759
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2760
|
+
else:
|
|
2761
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2601
2762
|
@property
|
|
2602
|
-
def
|
|
2603
|
-
return _whatsapp.
|
|
2604
|
-
@
|
|
2605
|
-
def
|
|
2763
|
+
def Attachments(self):
|
|
2764
|
+
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2765
|
+
@Attachments.setter
|
|
2766
|
+
def Attachments(self, value):
|
|
2606
2767
|
if isinstance(value, go.GoClass):
|
|
2607
|
-
_whatsapp.
|
|
2768
|
+
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2608
2769
|
else:
|
|
2609
|
-
|
|
2770
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2610
2771
|
@property
|
|
2611
|
-
def
|
|
2612
|
-
return _whatsapp.
|
|
2613
|
-
@
|
|
2614
|
-
def
|
|
2772
|
+
def Preview(self):
|
|
2773
|
+
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2774
|
+
@Preview.setter
|
|
2775
|
+
def Preview(self, value):
|
|
2615
2776
|
if isinstance(value, go.GoClass):
|
|
2616
|
-
_whatsapp.
|
|
2777
|
+
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2617
2778
|
else:
|
|
2618
|
-
|
|
2779
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2619
2780
|
@property
|
|
2620
|
-
def
|
|
2621
|
-
return _whatsapp.
|
|
2622
|
-
@
|
|
2623
|
-
def
|
|
2781
|
+
def Location(self):
|
|
2782
|
+
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
2783
|
+
@Location.setter
|
|
2784
|
+
def Location(self, value):
|
|
2624
2785
|
if isinstance(value, go.GoClass):
|
|
2625
|
-
_whatsapp.
|
|
2786
|
+
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
2626
2787
|
else:
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
def
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2636
|
-
in which case a new Go object is constructed first
|
|
2637
|
-
"""
|
|
2638
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2639
|
-
self.handle = kwargs['handle']
|
|
2640
|
-
_whatsapp.IncRef(self.handle)
|
|
2641
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2642
|
-
self.handle = args[0].handle
|
|
2643
|
-
_whatsapp.IncRef(self.handle)
|
|
2788
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2789
|
+
@property
|
|
2790
|
+
def Poll(self):
|
|
2791
|
+
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
2792
|
+
@Poll.setter
|
|
2793
|
+
def Poll(self, value):
|
|
2794
|
+
if isinstance(value, go.GoClass):
|
|
2795
|
+
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
2644
2796
|
else:
|
|
2645
|
-
|
|
2646
|
-
_whatsapp.IncRef(self.handle)
|
|
2647
|
-
if 0 < len(args):
|
|
2648
|
-
self.Kind = args[0]
|
|
2649
|
-
if "Kind" in kwargs:
|
|
2650
|
-
self.Kind = kwargs["Kind"]
|
|
2651
|
-
if 1 < len(args):
|
|
2652
|
-
self.URL = args[1]
|
|
2653
|
-
if "URL" in kwargs:
|
|
2654
|
-
self.URL = kwargs["URL"]
|
|
2655
|
-
if 2 < len(args):
|
|
2656
|
-
self.Title = args[2]
|
|
2657
|
-
if "Title" in kwargs:
|
|
2658
|
-
self.Title = kwargs["Title"]
|
|
2659
|
-
if 3 < len(args):
|
|
2660
|
-
self.Description = args[3]
|
|
2661
|
-
if "Description" in kwargs:
|
|
2662
|
-
self.Description = kwargs["Description"]
|
|
2663
|
-
if 4 < len(args):
|
|
2664
|
-
self.Thumbnail = args[4]
|
|
2665
|
-
if "Thumbnail" in kwargs:
|
|
2666
|
-
self.Thumbnail = kwargs["Thumbnail"]
|
|
2667
|
-
def __del__(self):
|
|
2668
|
-
_whatsapp.DecRef(self.handle)
|
|
2669
|
-
def __str__(self):
|
|
2670
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2671
|
-
sv = 'whatsapp.Preview{'
|
|
2672
|
-
first = True
|
|
2673
|
-
for v in pr:
|
|
2674
|
-
if callable(v[1]):
|
|
2675
|
-
continue
|
|
2676
|
-
if first:
|
|
2677
|
-
first = False
|
|
2678
|
-
else:
|
|
2679
|
-
sv += ', '
|
|
2680
|
-
sv += v[0] + '=' + str(v[1])
|
|
2681
|
-
return sv + '}'
|
|
2682
|
-
def __repr__(self):
|
|
2683
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2684
|
-
sv = 'whatsapp.Preview ( '
|
|
2685
|
-
for v in pr:
|
|
2686
|
-
if not callable(v[1]):
|
|
2687
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2688
|
-
return sv + ')'
|
|
2797
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2689
2798
|
@property
|
|
2690
|
-
def
|
|
2691
|
-
return _whatsapp.
|
|
2692
|
-
@
|
|
2693
|
-
def
|
|
2799
|
+
def Album(self):
|
|
2800
|
+
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
2801
|
+
@Album.setter
|
|
2802
|
+
def Album(self, value):
|
|
2694
2803
|
if isinstance(value, go.GoClass):
|
|
2695
|
-
_whatsapp.
|
|
2804
|
+
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
2696
2805
|
else:
|
|
2697
|
-
|
|
2806
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2698
2807
|
@property
|
|
2699
|
-
def
|
|
2700
|
-
return _whatsapp.
|
|
2701
|
-
@
|
|
2702
|
-
def
|
|
2808
|
+
def GroupInvite(self):
|
|
2809
|
+
return Group(handle=_whatsapp.whatsapp_Message_GroupInvite_Get(self.handle))
|
|
2810
|
+
@GroupInvite.setter
|
|
2811
|
+
def GroupInvite(self, value):
|
|
2703
2812
|
if isinstance(value, go.GoClass):
|
|
2704
|
-
_whatsapp.
|
|
2813
|
+
_whatsapp.whatsapp_Message_GroupInvite_Set(self.handle, value.handle)
|
|
2705
2814
|
else:
|
|
2706
|
-
|
|
2815
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2707
2816
|
@property
|
|
2708
|
-
def
|
|
2709
|
-
return _whatsapp.
|
|
2710
|
-
@
|
|
2711
|
-
def
|
|
2817
|
+
def MentionJIDs(self):
|
|
2818
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2819
|
+
@MentionJIDs.setter
|
|
2820
|
+
def MentionJIDs(self, value):
|
|
2712
2821
|
if isinstance(value, go.GoClass):
|
|
2713
|
-
_whatsapp.
|
|
2822
|
+
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2714
2823
|
else:
|
|
2715
|
-
|
|
2824
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2716
2825
|
@property
|
|
2717
|
-
def
|
|
2718
|
-
return _whatsapp.
|
|
2719
|
-
@
|
|
2720
|
-
def
|
|
2826
|
+
def Receipts(self):
|
|
2827
|
+
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2828
|
+
@Receipts.setter
|
|
2829
|
+
def Receipts(self, value):
|
|
2721
2830
|
if isinstance(value, go.GoClass):
|
|
2722
|
-
_whatsapp.
|
|
2831
|
+
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2723
2832
|
else:
|
|
2724
|
-
|
|
2833
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2725
2834
|
@property
|
|
2726
|
-
def
|
|
2727
|
-
return
|
|
2728
|
-
@
|
|
2729
|
-
def
|
|
2835
|
+
def Reactions(self):
|
|
2836
|
+
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2837
|
+
@Reactions.setter
|
|
2838
|
+
def Reactions(self, value):
|
|
2730
2839
|
if isinstance(value, go.GoClass):
|
|
2731
|
-
_whatsapp.
|
|
2840
|
+
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2732
2841
|
else:
|
|
2733
2842
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2843
|
+
@property
|
|
2844
|
+
def IsHistory(self):
|
|
2845
|
+
return _whatsapp.whatsapp_Message_IsHistory_Get(self.handle)
|
|
2846
|
+
@IsHistory.setter
|
|
2847
|
+
def IsHistory(self, value):
|
|
2848
|
+
if isinstance(value, go.GoClass):
|
|
2849
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value.handle)
|
|
2850
|
+
else:
|
|
2851
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value)
|
|
2734
2852
|
|
|
2735
|
-
# Python type for struct whatsapp.
|
|
2736
|
-
class
|
|
2737
|
-
"""A
|
|
2853
|
+
# Python type for struct whatsapp.Poll
|
|
2854
|
+
class Poll(go.GoClass):
|
|
2855
|
+
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
2738
2856
|
def __init__(self, *args, **kwargs):
|
|
2739
2857
|
"""
|
|
2740
2858
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2748,17 +2866,21 @@ class LinkedDevice(go.GoClass):
|
|
|
2748
2866
|
self.handle = args[0].handle
|
|
2749
2867
|
_whatsapp.IncRef(self.handle)
|
|
2750
2868
|
else:
|
|
2751
|
-
self.handle = _whatsapp.
|
|
2869
|
+
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
2752
2870
|
_whatsapp.IncRef(self.handle)
|
|
2753
2871
|
if 0 < len(args):
|
|
2754
|
-
self.
|
|
2755
|
-
if "
|
|
2756
|
-
self.
|
|
2872
|
+
self.Title = args[0]
|
|
2873
|
+
if "Title" in kwargs:
|
|
2874
|
+
self.Title = kwargs["Title"]
|
|
2875
|
+
if 1 < len(args):
|
|
2876
|
+
self.Options = args[1]
|
|
2877
|
+
if "Options" in kwargs:
|
|
2878
|
+
self.Options = kwargs["Options"]
|
|
2757
2879
|
def __del__(self):
|
|
2758
2880
|
_whatsapp.DecRef(self.handle)
|
|
2759
2881
|
def __str__(self):
|
|
2760
2882
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2761
|
-
sv = 'whatsapp.
|
|
2883
|
+
sv = 'whatsapp.Poll{'
|
|
2762
2884
|
first = True
|
|
2763
2885
|
for v in pr:
|
|
2764
2886
|
if callable(v[1]):
|
|
@@ -2771,34 +2893,33 @@ class LinkedDevice(go.GoClass):
|
|
|
2771
2893
|
return sv + '}'
|
|
2772
2894
|
def __repr__(self):
|
|
2773
2895
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2774
|
-
sv = 'whatsapp.
|
|
2896
|
+
sv = 'whatsapp.Poll ( '
|
|
2775
2897
|
for v in pr:
|
|
2776
2898
|
if not callable(v[1]):
|
|
2777
2899
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2778
2900
|
return sv + ')'
|
|
2779
2901
|
@property
|
|
2780
|
-
def
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
2785
|
-
@ID.setter
|
|
2786
|
-
def ID(self, value):
|
|
2902
|
+
def Title(self):
|
|
2903
|
+
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
2904
|
+
@Title.setter
|
|
2905
|
+
def Title(self, value):
|
|
2787
2906
|
if isinstance(value, go.GoClass):
|
|
2788
|
-
_whatsapp.
|
|
2907
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
2789
2908
|
else:
|
|
2790
|
-
_whatsapp.
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2909
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
2910
|
+
@property
|
|
2911
|
+
def Options(self):
|
|
2912
|
+
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
2913
|
+
@Options.setter
|
|
2914
|
+
def Options(self, value):
|
|
2915
|
+
if isinstance(value, go.GoClass):
|
|
2916
|
+
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
2917
|
+
else:
|
|
2918
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2798
2919
|
|
|
2799
|
-
# Python type for struct whatsapp.
|
|
2800
|
-
class
|
|
2801
|
-
"""A
|
|
2920
|
+
# Python type for struct whatsapp.Album
|
|
2921
|
+
class Album(go.GoClass):
|
|
2922
|
+
"""A Album message represents a collection of media files, typically images and videos.\n"""
|
|
2802
2923
|
def __init__(self, *args, **kwargs):
|
|
2803
2924
|
"""
|
|
2804
2925
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2812,25 +2933,25 @@ class ChatState(go.GoClass):
|
|
|
2812
2933
|
self.handle = args[0].handle
|
|
2813
2934
|
_whatsapp.IncRef(self.handle)
|
|
2814
2935
|
else:
|
|
2815
|
-
self.handle = _whatsapp.
|
|
2936
|
+
self.handle = _whatsapp.whatsapp_Album_CTor()
|
|
2816
2937
|
_whatsapp.IncRef(self.handle)
|
|
2817
2938
|
if 0 < len(args):
|
|
2818
|
-
self.
|
|
2819
|
-
if "
|
|
2820
|
-
self.
|
|
2939
|
+
self.IsAlbum = args[0]
|
|
2940
|
+
if "IsAlbum" in kwargs:
|
|
2941
|
+
self.IsAlbum = kwargs["IsAlbum"]
|
|
2821
2942
|
if 1 < len(args):
|
|
2822
|
-
self.
|
|
2823
|
-
if "
|
|
2824
|
-
self.
|
|
2943
|
+
self.ImageCount = args[1]
|
|
2944
|
+
if "ImageCount" in kwargs:
|
|
2945
|
+
self.ImageCount = kwargs["ImageCount"]
|
|
2825
2946
|
if 2 < len(args):
|
|
2826
|
-
self.
|
|
2827
|
-
if "
|
|
2828
|
-
self.
|
|
2947
|
+
self.VideoCount = args[2]
|
|
2948
|
+
if "VideoCount" in kwargs:
|
|
2949
|
+
self.VideoCount = kwargs["VideoCount"]
|
|
2829
2950
|
def __del__(self):
|
|
2830
2951
|
_whatsapp.DecRef(self.handle)
|
|
2831
2952
|
def __str__(self):
|
|
2832
2953
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2833
|
-
sv = 'whatsapp.
|
|
2954
|
+
sv = 'whatsapp.Album{'
|
|
2834
2955
|
first = True
|
|
2835
2956
|
for v in pr:
|
|
2836
2957
|
if callable(v[1]):
|
|
@@ -2843,42 +2964,42 @@ class ChatState(go.GoClass):
|
|
|
2843
2964
|
return sv + '}'
|
|
2844
2965
|
def __repr__(self):
|
|
2845
2966
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2846
|
-
sv = 'whatsapp.
|
|
2967
|
+
sv = 'whatsapp.Album ( '
|
|
2847
2968
|
for v in pr:
|
|
2848
2969
|
if not callable(v[1]):
|
|
2849
2970
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2850
2971
|
return sv + ')'
|
|
2851
2972
|
@property
|
|
2852
|
-
def
|
|
2853
|
-
return _whatsapp.
|
|
2854
|
-
@
|
|
2855
|
-
def
|
|
2973
|
+
def IsAlbum(self):
|
|
2974
|
+
return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
|
|
2975
|
+
@IsAlbum.setter
|
|
2976
|
+
def IsAlbum(self, value):
|
|
2856
2977
|
if isinstance(value, go.GoClass):
|
|
2857
|
-
_whatsapp.
|
|
2978
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
|
|
2858
2979
|
else:
|
|
2859
|
-
_whatsapp.
|
|
2980
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
|
|
2860
2981
|
@property
|
|
2861
|
-
def
|
|
2862
|
-
return _whatsapp.
|
|
2863
|
-
@
|
|
2864
|
-
def
|
|
2982
|
+
def ImageCount(self):
|
|
2983
|
+
return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
|
|
2984
|
+
@ImageCount.setter
|
|
2985
|
+
def ImageCount(self, value):
|
|
2865
2986
|
if isinstance(value, go.GoClass):
|
|
2866
|
-
_whatsapp.
|
|
2987
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
|
|
2867
2988
|
else:
|
|
2868
|
-
_whatsapp.
|
|
2989
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
|
|
2869
2990
|
@property
|
|
2870
|
-
def
|
|
2871
|
-
return _whatsapp.
|
|
2872
|
-
@
|
|
2873
|
-
def
|
|
2991
|
+
def VideoCount(self):
|
|
2992
|
+
return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
|
|
2993
|
+
@VideoCount.setter
|
|
2994
|
+
def VideoCount(self, value):
|
|
2874
2995
|
if isinstance(value, go.GoClass):
|
|
2875
|
-
_whatsapp.
|
|
2996
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
|
|
2876
2997
|
else:
|
|
2877
|
-
_whatsapp.
|
|
2998
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
|
|
2878
2999
|
|
|
2879
|
-
# Python type for struct whatsapp.
|
|
2880
|
-
class
|
|
2881
|
-
"""
|
|
3000
|
+
# Python type for struct whatsapp.Group
|
|
3001
|
+
class Group(go.GoClass):
|
|
3002
|
+
"""A Group represents a named, many-to-many chat space which may be joined or left at will. All\nfields apart from the group JID are considered to be optional, and may not be set in cases where\ngroup information is being updated against previous assumed state. Groups in WhatsApp are\ngenerally invited to out-of-band with respect to overarching adaptor; see the documentation for\n[Session.GetGroups] for more information.\n"""
|
|
2882
3003
|
def __init__(self, *args, **kwargs):
|
|
2883
3004
|
"""
|
|
2884
3005
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2892,21 +3013,37 @@ class Connect(go.GoClass):
|
|
|
2892
3013
|
self.handle = args[0].handle
|
|
2893
3014
|
_whatsapp.IncRef(self.handle)
|
|
2894
3015
|
else:
|
|
2895
|
-
self.handle = _whatsapp.
|
|
3016
|
+
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
2896
3017
|
_whatsapp.IncRef(self.handle)
|
|
2897
3018
|
if 0 < len(args):
|
|
2898
3019
|
self.JID = args[0]
|
|
2899
3020
|
if "JID" in kwargs:
|
|
2900
3021
|
self.JID = kwargs["JID"]
|
|
2901
3022
|
if 1 < len(args):
|
|
2902
|
-
self.
|
|
2903
|
-
if "
|
|
2904
|
-
self.
|
|
3023
|
+
self.Name = args[1]
|
|
3024
|
+
if "Name" in kwargs:
|
|
3025
|
+
self.Name = kwargs["Name"]
|
|
3026
|
+
if 2 < len(args):
|
|
3027
|
+
self.Subject = args[2]
|
|
3028
|
+
if "Subject" in kwargs:
|
|
3029
|
+
self.Subject = kwargs["Subject"]
|
|
3030
|
+
if 3 < len(args):
|
|
3031
|
+
self.Nickname = args[3]
|
|
3032
|
+
if "Nickname" in kwargs:
|
|
3033
|
+
self.Nickname = kwargs["Nickname"]
|
|
3034
|
+
if 4 < len(args):
|
|
3035
|
+
self.Participants = args[4]
|
|
3036
|
+
if "Participants" in kwargs:
|
|
3037
|
+
self.Participants = kwargs["Participants"]
|
|
3038
|
+
if 5 < len(args):
|
|
3039
|
+
self.InviteCode = args[5]
|
|
3040
|
+
if "InviteCode" in kwargs:
|
|
3041
|
+
self.InviteCode = kwargs["InviteCode"]
|
|
2905
3042
|
def __del__(self):
|
|
2906
3043
|
_whatsapp.DecRef(self.handle)
|
|
2907
3044
|
def __str__(self):
|
|
2908
3045
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2909
|
-
sv = 'whatsapp.
|
|
3046
|
+
sv = 'whatsapp.Group{'
|
|
2910
3047
|
first = True
|
|
2911
3048
|
for v in pr:
|
|
2912
3049
|
if callable(v[1]):
|
|
@@ -2919,33 +3056,69 @@ class Connect(go.GoClass):
|
|
|
2919
3056
|
return sv + '}'
|
|
2920
3057
|
def __repr__(self):
|
|
2921
3058
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2922
|
-
sv = 'whatsapp.
|
|
3059
|
+
sv = 'whatsapp.Group ( '
|
|
2923
3060
|
for v in pr:
|
|
2924
3061
|
if not callable(v[1]):
|
|
2925
3062
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2926
3063
|
return sv + ')'
|
|
2927
3064
|
@property
|
|
2928
3065
|
def JID(self):
|
|
2929
|
-
return _whatsapp.
|
|
3066
|
+
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
2930
3067
|
@JID.setter
|
|
2931
3068
|
def JID(self, value):
|
|
2932
3069
|
if isinstance(value, go.GoClass):
|
|
2933
|
-
_whatsapp.
|
|
3070
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
2934
3071
|
else:
|
|
2935
|
-
_whatsapp.
|
|
3072
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
2936
3073
|
@property
|
|
2937
|
-
def
|
|
2938
|
-
return _whatsapp.
|
|
2939
|
-
@
|
|
2940
|
-
def
|
|
3074
|
+
def Name(self):
|
|
3075
|
+
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
3076
|
+
@Name.setter
|
|
3077
|
+
def Name(self, value):
|
|
2941
3078
|
if isinstance(value, go.GoClass):
|
|
2942
|
-
_whatsapp.
|
|
3079
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
2943
3080
|
else:
|
|
2944
|
-
_whatsapp.
|
|
3081
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
3082
|
+
@property
|
|
3083
|
+
def Subject(self):
|
|
3084
|
+
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
3085
|
+
@Subject.setter
|
|
3086
|
+
def Subject(self, value):
|
|
3087
|
+
if isinstance(value, go.GoClass):
|
|
3088
|
+
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
3089
|
+
else:
|
|
3090
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3091
|
+
@property
|
|
3092
|
+
def Nickname(self):
|
|
3093
|
+
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
3094
|
+
@Nickname.setter
|
|
3095
|
+
def Nickname(self, value):
|
|
3096
|
+
if isinstance(value, go.GoClass):
|
|
3097
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
3098
|
+
else:
|
|
3099
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
3100
|
+
@property
|
|
3101
|
+
def Participants(self):
|
|
3102
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
3103
|
+
@Participants.setter
|
|
3104
|
+
def Participants(self, value):
|
|
3105
|
+
if isinstance(value, go.GoClass):
|
|
3106
|
+
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
3107
|
+
else:
|
|
3108
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3109
|
+
@property
|
|
3110
|
+
def InviteCode(self):
|
|
3111
|
+
return _whatsapp.whatsapp_Group_InviteCode_Get(self.handle)
|
|
3112
|
+
@InviteCode.setter
|
|
3113
|
+
def InviteCode(self, value):
|
|
3114
|
+
if isinstance(value, go.GoClass):
|
|
3115
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value.handle)
|
|
3116
|
+
else:
|
|
3117
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value)
|
|
2945
3118
|
|
|
2946
|
-
# Python type for struct whatsapp.
|
|
2947
|
-
class
|
|
2948
|
-
"""A
|
|
3119
|
+
# Python type for struct whatsapp.GroupParticipant
|
|
3120
|
+
class GroupParticipant(go.GoClass):
|
|
3121
|
+
"""A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can generally be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
|
|
2949
3122
|
def __init__(self, *args, **kwargs):
|
|
2950
3123
|
"""
|
|
2951
3124
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2959,21 +3132,29 @@ class Poll(go.GoClass):
|
|
|
2959
3132
|
self.handle = args[0].handle
|
|
2960
3133
|
_whatsapp.IncRef(self.handle)
|
|
2961
3134
|
else:
|
|
2962
|
-
self.handle = _whatsapp.
|
|
3135
|
+
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
2963
3136
|
_whatsapp.IncRef(self.handle)
|
|
2964
3137
|
if 0 < len(args):
|
|
2965
|
-
self.
|
|
2966
|
-
if "
|
|
2967
|
-
self.
|
|
3138
|
+
self.JID = args[0]
|
|
3139
|
+
if "JID" in kwargs:
|
|
3140
|
+
self.JID = kwargs["JID"]
|
|
2968
3141
|
if 1 < len(args):
|
|
2969
|
-
self.
|
|
2970
|
-
if "
|
|
2971
|
-
self.
|
|
3142
|
+
self.Nickname = args[1]
|
|
3143
|
+
if "Nickname" in kwargs:
|
|
3144
|
+
self.Nickname = kwargs["Nickname"]
|
|
3145
|
+
if 2 < len(args):
|
|
3146
|
+
self.Affiliation = args[2]
|
|
3147
|
+
if "Affiliation" in kwargs:
|
|
3148
|
+
self.Affiliation = kwargs["Affiliation"]
|
|
3149
|
+
if 3 < len(args):
|
|
3150
|
+
self.Action = args[3]
|
|
3151
|
+
if "Action" in kwargs:
|
|
3152
|
+
self.Action = kwargs["Action"]
|
|
2972
3153
|
def __del__(self):
|
|
2973
3154
|
_whatsapp.DecRef(self.handle)
|
|
2974
3155
|
def __str__(self):
|
|
2975
3156
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2976
|
-
sv = 'whatsapp.
|
|
3157
|
+
sv = 'whatsapp.GroupParticipant{'
|
|
2977
3158
|
first = True
|
|
2978
3159
|
for v in pr:
|
|
2979
3160
|
if callable(v[1]):
|
|
@@ -2986,29 +3167,47 @@ class Poll(go.GoClass):
|
|
|
2986
3167
|
return sv + '}'
|
|
2987
3168
|
def __repr__(self):
|
|
2988
3169
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2989
|
-
sv = 'whatsapp.
|
|
3170
|
+
sv = 'whatsapp.GroupParticipant ( '
|
|
2990
3171
|
for v in pr:
|
|
2991
3172
|
if not callable(v[1]):
|
|
2992
3173
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2993
3174
|
return sv + ')'
|
|
2994
3175
|
@property
|
|
2995
|
-
def
|
|
2996
|
-
return _whatsapp.
|
|
2997
|
-
@
|
|
2998
|
-
def
|
|
3176
|
+
def JID(self):
|
|
3177
|
+
return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
|
|
3178
|
+
@JID.setter
|
|
3179
|
+
def JID(self, value):
|
|
2999
3180
|
if isinstance(value, go.GoClass):
|
|
3000
|
-
_whatsapp.
|
|
3181
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
3001
3182
|
else:
|
|
3002
|
-
_whatsapp.
|
|
3183
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
3003
3184
|
@property
|
|
3004
|
-
def
|
|
3005
|
-
return
|
|
3006
|
-
@
|
|
3007
|
-
def
|
|
3185
|
+
def Nickname(self):
|
|
3186
|
+
return _whatsapp.whatsapp_GroupParticipant_Nickname_Get(self.handle)
|
|
3187
|
+
@Nickname.setter
|
|
3188
|
+
def Nickname(self, value):
|
|
3008
3189
|
if isinstance(value, go.GoClass):
|
|
3009
|
-
_whatsapp.
|
|
3190
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value.handle)
|
|
3010
3191
|
else:
|
|
3011
|
-
|
|
3192
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value)
|
|
3193
|
+
@property
|
|
3194
|
+
def Affiliation(self):
|
|
3195
|
+
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
3196
|
+
@Affiliation.setter
|
|
3197
|
+
def Affiliation(self, value):
|
|
3198
|
+
if isinstance(value, go.GoClass):
|
|
3199
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
3200
|
+
else:
|
|
3201
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
3202
|
+
@property
|
|
3203
|
+
def Action(self):
|
|
3204
|
+
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
3205
|
+
@Action.setter
|
|
3206
|
+
def Action(self, value):
|
|
3207
|
+
if isinstance(value, go.GoClass):
|
|
3208
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
|
|
3209
|
+
else:
|
|
3210
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
|
|
3012
3211
|
|
|
3013
3212
|
# Python type for struct whatsapp.Receipt
|
|
3014
3213
|
class Receipt(go.GoClass):
|
|
@@ -3129,86 +3328,6 @@ class Receipt(go.GoClass):
|
|
|
3129
3328
|
else:
|
|
3130
3329
|
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
3131
3330
|
|
|
3132
|
-
# Python type for struct whatsapp.Call
|
|
3133
|
-
class Call(go.GoClass):
|
|
3134
|
-
"""A Call represents an incoming or outgoing voice/video call made over WhatsApp. Full support for\ncalls is currently not implemented, and this structure contains the bare minimum data required\nfor notifying on missed calls.\n"""
|
|
3135
|
-
def __init__(self, *args, **kwargs):
|
|
3136
|
-
"""
|
|
3137
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
3138
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
3139
|
-
in which case a new Go object is constructed first
|
|
3140
|
-
"""
|
|
3141
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
3142
|
-
self.handle = kwargs['handle']
|
|
3143
|
-
_whatsapp.IncRef(self.handle)
|
|
3144
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
3145
|
-
self.handle = args[0].handle
|
|
3146
|
-
_whatsapp.IncRef(self.handle)
|
|
3147
|
-
else:
|
|
3148
|
-
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
3149
|
-
_whatsapp.IncRef(self.handle)
|
|
3150
|
-
if 0 < len(args):
|
|
3151
|
-
self.State = args[0]
|
|
3152
|
-
if "State" in kwargs:
|
|
3153
|
-
self.State = kwargs["State"]
|
|
3154
|
-
if 1 < len(args):
|
|
3155
|
-
self.JID = args[1]
|
|
3156
|
-
if "JID" in kwargs:
|
|
3157
|
-
self.JID = kwargs["JID"]
|
|
3158
|
-
if 2 < len(args):
|
|
3159
|
-
self.Timestamp = args[2]
|
|
3160
|
-
if "Timestamp" in kwargs:
|
|
3161
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
3162
|
-
def __del__(self):
|
|
3163
|
-
_whatsapp.DecRef(self.handle)
|
|
3164
|
-
def __str__(self):
|
|
3165
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3166
|
-
sv = 'whatsapp.Call{'
|
|
3167
|
-
first = True
|
|
3168
|
-
for v in pr:
|
|
3169
|
-
if callable(v[1]):
|
|
3170
|
-
continue
|
|
3171
|
-
if first:
|
|
3172
|
-
first = False
|
|
3173
|
-
else:
|
|
3174
|
-
sv += ', '
|
|
3175
|
-
sv += v[0] + '=' + str(v[1])
|
|
3176
|
-
return sv + '}'
|
|
3177
|
-
def __repr__(self):
|
|
3178
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3179
|
-
sv = 'whatsapp.Call ( '
|
|
3180
|
-
for v in pr:
|
|
3181
|
-
if not callable(v[1]):
|
|
3182
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3183
|
-
return sv + ')'
|
|
3184
|
-
@property
|
|
3185
|
-
def State(self):
|
|
3186
|
-
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
3187
|
-
@State.setter
|
|
3188
|
-
def State(self, value):
|
|
3189
|
-
if isinstance(value, go.GoClass):
|
|
3190
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
3191
|
-
else:
|
|
3192
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
3193
|
-
@property
|
|
3194
|
-
def JID(self):
|
|
3195
|
-
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
3196
|
-
@JID.setter
|
|
3197
|
-
def JID(self, value):
|
|
3198
|
-
if isinstance(value, go.GoClass):
|
|
3199
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
3200
|
-
else:
|
|
3201
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
3202
|
-
@property
|
|
3203
|
-
def Timestamp(self):
|
|
3204
|
-
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
3205
|
-
@Timestamp.setter
|
|
3206
|
-
def Timestamp(self, value):
|
|
3207
|
-
if isinstance(value, go.GoClass):
|
|
3208
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
3209
|
-
else:
|
|
3210
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
3211
|
-
|
|
3212
3331
|
|
|
3213
3332
|
# ---- Slices ---
|
|
3214
3333
|
|
|
@@ -3227,5 +3346,11 @@ def NewGateway():
|
|
|
3227
3346
|
|
|
3228
3347
|
|
|
3229
3348
|
# ---- Functions ---
|
|
3349
|
+
def IsAnonymousJID(id):
|
|
3350
|
+
"""IsAnonymousJID(str id) bool
|
|
3351
|
+
|
|
3352
|
+
IsAnonymousJID returns true if the JID given is not addressible, that is, if it's actually a LID.
|
|
3353
|
+
"""
|
|
3354
|
+
return _whatsapp.whatsapp_IsAnonymousJID(id)
|
|
3230
3355
|
|
|
3231
3356
|
|