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