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