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