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