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