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