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