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