slidge-whatsapp 0.3.1__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.4__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +172 -172
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +138 -138
- slidge_whatsapp/generated/go.py +1 -1
- slidge_whatsapp/generated/whatsapp.c +1479 -1479
- slidge_whatsapp/generated/whatsapp.go +987 -987
- slidge_whatsapp/generated/whatsapp.py +1187 -1187
- slidge_whatsapp/generated/whatsapp_go.h +172 -172
- 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,385 +2139,201 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2139
2139
|
|
|
2140
2140
|
// ---- Structs ---
|
|
2141
2141
|
|
|
2142
|
-
// --- wrapping struct: whatsapp.
|
|
2142
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2143
2143
|
//
|
|
2144
|
-
//export
|
|
2145
|
-
func
|
|
2146
|
-
return CGoHandle(
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
//export whatsapp_Gateway_DBPath_Get
|
|
2150
|
-
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2151
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2152
|
-
return C.CString(op.DBPath)
|
|
2144
|
+
//export whatsapp_Album_CTor
|
|
2145
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2146
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2153
2147
|
}
|
|
2154
2148
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2149
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2150
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2152
|
+
return boolGoToPy(op.IsAlbum)
|
|
2159
2153
|
}
|
|
2160
2154
|
|
|
2161
|
-
//export
|
|
2162
|
-
func
|
|
2163
|
-
op :=
|
|
2164
|
-
|
|
2155
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2156
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2158
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2165
2159
|
}
|
|
2166
2160
|
|
|
2167
|
-
//export
|
|
2168
|
-
func
|
|
2169
|
-
op :=
|
|
2170
|
-
|
|
2161
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2162
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2164
|
+
return C.longlong(op.ImageCount)
|
|
2171
2165
|
}
|
|
2172
2166
|
|
|
2173
|
-
//export
|
|
2174
|
-
func
|
|
2175
|
-
op :=
|
|
2176
|
-
|
|
2167
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2168
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2170
|
+
op.ImageCount = int(val)
|
|
2177
2171
|
}
|
|
2178
2172
|
|
|
2179
|
-
//export
|
|
2180
|
-
func
|
|
2181
|
-
op :=
|
|
2182
|
-
|
|
2173
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2174
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2176
|
+
return C.longlong(op.VideoCount)
|
|
2183
2177
|
}
|
|
2184
2178
|
|
|
2185
|
-
//export
|
|
2186
|
-
func
|
|
2187
|
-
op :=
|
|
2188
|
-
|
|
2179
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2180
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2182
|
+
op.VideoCount = int(val)
|
|
2189
2183
|
}
|
|
2190
2184
|
|
|
2191
|
-
//
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2185
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2186
|
+
//
|
|
2187
|
+
//export whatsapp_Call_CTor
|
|
2188
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2195
2190
|
}
|
|
2196
2191
|
|
|
2197
|
-
//export
|
|
2198
|
-
func
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
if __err != nil {
|
|
2202
|
-
return errorGoToPy(nil)
|
|
2203
|
-
}
|
|
2204
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2205
|
-
|
|
2206
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2207
|
-
if __err != nil {
|
|
2208
|
-
estr := C.CString(__err.Error())
|
|
2209
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2210
|
-
return estr
|
|
2211
|
-
}
|
|
2212
|
-
return C.CString("")
|
|
2192
|
+
//export whatsapp_Call_State_Get
|
|
2193
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2195
|
+
return C.longlong(int(op.State))
|
|
2213
2196
|
}
|
|
2214
2197
|
|
|
2215
|
-
//export
|
|
2216
|
-
func
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2220
|
-
if __err != nil {
|
|
2221
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2222
|
-
}
|
|
2223
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2224
|
-
|
|
2198
|
+
//export whatsapp_Call_State_Set
|
|
2199
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2201
|
+
op.State = whatsapp.CallState(int(val))
|
|
2225
2202
|
}
|
|
2226
2203
|
|
|
2227
|
-
//export
|
|
2228
|
-
func
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
if __err != nil {
|
|
2232
|
-
return errorGoToPy(nil)
|
|
2233
|
-
}
|
|
2234
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2235
|
-
|
|
2236
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2237
|
-
if __err != nil {
|
|
2238
|
-
estr := C.CString(__err.Error())
|
|
2239
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2240
|
-
return estr
|
|
2241
|
-
}
|
|
2242
|
-
return C.CString("")
|
|
2204
|
+
//export whatsapp_Call_JID_Get
|
|
2205
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2207
|
+
return C.CString(op.JID)
|
|
2243
2208
|
}
|
|
2244
2209
|
|
|
2245
|
-
//
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2210
|
+
//export whatsapp_Call_JID_Set
|
|
2211
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2213
|
+
op.JID = C.GoString(val)
|
|
2250
2214
|
}
|
|
2251
2215
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
op :=
|
|
2255
|
-
return C.
|
|
2216
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2217
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2219
|
+
return C.longlong(op.Timestamp)
|
|
2256
2220
|
}
|
|
2257
2221
|
|
|
2258
|
-
//export
|
|
2259
|
-
func
|
|
2260
|
-
op :=
|
|
2261
|
-
op.
|
|
2222
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2223
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2225
|
+
op.Timestamp = int64(val)
|
|
2262
2226
|
}
|
|
2263
2227
|
|
|
2264
|
-
// --- wrapping struct: whatsapp.
|
|
2228
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2265
2229
|
//
|
|
2266
|
-
//export
|
|
2267
|
-
func
|
|
2268
|
-
return CGoHandle(
|
|
2230
|
+
//export whatsapp_Group_CTor
|
|
2231
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2232
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2269
2233
|
}
|
|
2270
2234
|
|
|
2271
|
-
//export
|
|
2272
|
-
func
|
|
2273
|
-
op :=
|
|
2274
|
-
return C.
|
|
2235
|
+
//export whatsapp_Group_JID_Get
|
|
2236
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2237
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2238
|
+
return C.CString(op.JID)
|
|
2275
2239
|
}
|
|
2276
2240
|
|
|
2277
|
-
//export
|
|
2278
|
-
func
|
|
2279
|
-
op :=
|
|
2280
|
-
op.
|
|
2241
|
+
//export whatsapp_Group_JID_Set
|
|
2242
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2243
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2244
|
+
op.JID = C.GoString(val)
|
|
2281
2245
|
}
|
|
2282
2246
|
|
|
2283
|
-
//export
|
|
2284
|
-
func
|
|
2285
|
-
op :=
|
|
2286
|
-
return C.CString(op.
|
|
2247
|
+
//export whatsapp_Group_Name_Get
|
|
2248
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2249
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2250
|
+
return C.CString(op.Name)
|
|
2287
2251
|
}
|
|
2288
2252
|
|
|
2289
|
-
//export
|
|
2290
|
-
func
|
|
2291
|
-
op :=
|
|
2292
|
-
op.
|
|
2253
|
+
//export whatsapp_Group_Name_Set
|
|
2254
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2255
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2256
|
+
op.Name = C.GoString(val)
|
|
2293
2257
|
}
|
|
2294
2258
|
|
|
2295
|
-
//export
|
|
2296
|
-
func
|
|
2297
|
-
op :=
|
|
2298
|
-
return
|
|
2259
|
+
//export whatsapp_Group_Subject_Get
|
|
2260
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2262
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2299
2263
|
}
|
|
2300
2264
|
|
|
2301
|
-
//export
|
|
2302
|
-
func
|
|
2303
|
-
op :=
|
|
2304
|
-
op.
|
|
2265
|
+
//export whatsapp_Group_Subject_Set
|
|
2266
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2268
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2305
2269
|
}
|
|
2306
2270
|
|
|
2307
|
-
//export
|
|
2308
|
-
func
|
|
2309
|
-
op :=
|
|
2310
|
-
return C.CString(op.
|
|
2271
|
+
//export whatsapp_Group_Nickname_Get
|
|
2272
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2274
|
+
return C.CString(op.Nickname)
|
|
2311
2275
|
}
|
|
2312
2276
|
|
|
2313
|
-
//export
|
|
2314
|
-
func
|
|
2315
|
-
op :=
|
|
2316
|
-
op.
|
|
2277
|
+
//export whatsapp_Group_Nickname_Set
|
|
2278
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2280
|
+
op.Nickname = C.GoString(val)
|
|
2317
2281
|
}
|
|
2318
2282
|
|
|
2319
|
-
//export
|
|
2320
|
-
func
|
|
2321
|
-
op :=
|
|
2322
|
-
return
|
|
2283
|
+
//export whatsapp_Group_Participants_Get
|
|
2284
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2286
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2323
2287
|
}
|
|
2324
2288
|
|
|
2325
|
-
//export
|
|
2326
|
-
func
|
|
2327
|
-
op :=
|
|
2328
|
-
op.
|
|
2289
|
+
//export whatsapp_Group_Participants_Set
|
|
2290
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2292
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2329
2293
|
}
|
|
2330
2294
|
|
|
2331
|
-
//export
|
|
2332
|
-
func
|
|
2333
|
-
op :=
|
|
2334
|
-
return C.CString(op.
|
|
2295
|
+
//export whatsapp_Group_InviteCode_Get
|
|
2296
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2298
|
+
return C.CString(op.InviteCode)
|
|
2335
2299
|
}
|
|
2336
2300
|
|
|
2337
|
-
//export
|
|
2338
|
-
func
|
|
2339
|
-
op :=
|
|
2340
|
-
op.
|
|
2301
|
+
//export whatsapp_Group_InviteCode_Set
|
|
2302
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2304
|
+
op.InviteCode = C.GoString(val)
|
|
2341
2305
|
}
|
|
2342
2306
|
|
|
2343
|
-
//
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
//export whatsapp_Message_Timestamp_Set
|
|
2350
|
-
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2351
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2352
|
-
op.Timestamp = int64(val)
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
//export whatsapp_Message_IsCarbon_Get
|
|
2356
|
-
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2357
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2358
|
-
return boolGoToPy(op.IsCarbon)
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
//export whatsapp_Message_IsCarbon_Set
|
|
2362
|
-
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2363
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2364
|
-
op.IsCarbon = boolPyToGo(val)
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
//export whatsapp_Message_IsForwarded_Get
|
|
2368
|
-
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
2369
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2370
|
-
return boolGoToPy(op.IsForwarded)
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
|
-
//export whatsapp_Message_IsForwarded_Set
|
|
2374
|
-
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
2375
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2376
|
-
op.IsForwarded = boolPyToGo(val)
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
//export whatsapp_Message_ReplyID_Get
|
|
2380
|
-
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
2381
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2382
|
-
return C.CString(op.ReplyID)
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
//export whatsapp_Message_ReplyID_Set
|
|
2386
|
-
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
2387
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2388
|
-
op.ReplyID = C.GoString(val)
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
//export whatsapp_Message_ReplyBody_Get
|
|
2392
|
-
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
2393
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2394
|
-
return C.CString(op.ReplyBody)
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
//export whatsapp_Message_ReplyBody_Set
|
|
2398
|
-
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
2399
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2400
|
-
op.ReplyBody = C.GoString(val)
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
//export whatsapp_Message_Attachments_Get
|
|
2404
|
-
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
2405
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2406
|
-
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
//export whatsapp_Message_Attachments_Set
|
|
2410
|
-
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
2411
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2412
|
-
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
//export whatsapp_Message_Preview_Get
|
|
2416
|
-
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
2417
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2418
|
-
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
//export whatsapp_Message_Preview_Set
|
|
2422
|
-
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
2423
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2424
|
-
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
//export whatsapp_Message_Location_Get
|
|
2428
|
-
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
2429
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2430
|
-
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
//export whatsapp_Message_Location_Set
|
|
2434
|
-
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
2435
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2436
|
-
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
//export whatsapp_Message_Poll_Get
|
|
2440
|
-
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
2441
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2442
|
-
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
//export whatsapp_Message_Poll_Set
|
|
2446
|
-
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
2447
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2448
|
-
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
|
-
//export whatsapp_Message_Album_Get
|
|
2452
|
-
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
2453
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2454
|
-
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
//export whatsapp_Message_Album_Set
|
|
2458
|
-
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
2459
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2460
|
-
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
//export whatsapp_Message_GroupInvite_Get
|
|
2464
|
-
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
2465
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2466
|
-
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
//export whatsapp_Message_GroupInvite_Set
|
|
2470
|
-
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
2471
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2472
|
-
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
//export whatsapp_Message_MentionJIDs_Get
|
|
2476
|
-
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
2477
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2478
|
-
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
//export whatsapp_Message_MentionJIDs_Set
|
|
2482
|
-
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2483
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2484
|
-
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
//export whatsapp_Message_Receipts_Get
|
|
2488
|
-
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
2489
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2490
|
-
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
//export whatsapp_Message_Receipts_Set
|
|
2494
|
-
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
2495
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2496
|
-
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
2307
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
2308
|
+
//
|
|
2309
|
+
//export whatsapp_LinkedDevice_CTor
|
|
2310
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
2311
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2497
2312
|
}
|
|
2498
2313
|
|
|
2499
|
-
//export
|
|
2500
|
-
func
|
|
2501
|
-
op :=
|
|
2502
|
-
return
|
|
2314
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
2315
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
2316
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2317
|
+
return C.CString(op.ID)
|
|
2503
2318
|
}
|
|
2504
2319
|
|
|
2505
|
-
//export
|
|
2506
|
-
func
|
|
2507
|
-
op :=
|
|
2508
|
-
op.
|
|
2320
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
2321
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
2322
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2323
|
+
op.ID = C.GoString(val)
|
|
2509
2324
|
}
|
|
2510
2325
|
|
|
2511
|
-
//export
|
|
2512
|
-
func
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2326
|
+
//export whatsapp_LinkedDevice_JID
|
|
2327
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
2328
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2329
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2330
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2331
|
+
if __err != nil {
|
|
2332
|
+
return handleFromPtr_types_JID(nil)
|
|
2333
|
+
}
|
|
2334
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2516
2335
|
|
|
2517
|
-
|
|
2518
|
-
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
2519
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2520
|
-
op.IsHistory = boolPyToGo(val)
|
|
2336
|
+
return handleFromPtr_types_JID(&cret)
|
|
2521
2337
|
}
|
|
2522
2338
|
|
|
2523
2339
|
// --- wrapping struct: whatsapp.Presence ---
|
|
@@ -2563,502 +2379,928 @@ func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
|
2563
2379
|
op.LastSeen = int64(val)
|
|
2564
2380
|
}
|
|
2565
2381
|
|
|
2566
|
-
// --- wrapping struct: whatsapp.
|
|
2382
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2567
2383
|
//
|
|
2568
|
-
//export
|
|
2569
|
-
func
|
|
2570
|
-
return CGoHandle(
|
|
2384
|
+
//export whatsapp_Preview_CTor
|
|
2385
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2386
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2571
2387
|
}
|
|
2572
2388
|
|
|
2573
|
-
//export
|
|
2574
|
-
func
|
|
2575
|
-
op :=
|
|
2389
|
+
//export whatsapp_Preview_Kind_Get
|
|
2390
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2391
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2576
2392
|
return C.longlong(int(op.Kind))
|
|
2577
2393
|
}
|
|
2578
2394
|
|
|
2579
|
-
//export
|
|
2580
|
-
func
|
|
2581
|
-
op :=
|
|
2582
|
-
op.Kind = whatsapp.
|
|
2395
|
+
//export whatsapp_Preview_Kind_Set
|
|
2396
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2397
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2398
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2583
2399
|
}
|
|
2584
2400
|
|
|
2585
|
-
//export
|
|
2586
|
-
func
|
|
2587
|
-
op :=
|
|
2588
|
-
return C.CString(op.
|
|
2401
|
+
//export whatsapp_Preview_URL_Get
|
|
2402
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2403
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2404
|
+
return C.CString(op.URL)
|
|
2589
2405
|
}
|
|
2590
2406
|
|
|
2591
|
-
//export
|
|
2592
|
-
func
|
|
2593
|
-
op :=
|
|
2594
|
-
op.
|
|
2407
|
+
//export whatsapp_Preview_URL_Set
|
|
2408
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2409
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2410
|
+
op.URL = C.GoString(val)
|
|
2595
2411
|
}
|
|
2596
2412
|
|
|
2597
|
-
//export
|
|
2598
|
-
func
|
|
2599
|
-
op :=
|
|
2600
|
-
return C.CString(op.
|
|
2413
|
+
//export whatsapp_Preview_Title_Get
|
|
2414
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2415
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2416
|
+
return C.CString(op.Title)
|
|
2601
2417
|
}
|
|
2602
2418
|
|
|
2603
|
-
//export
|
|
2604
|
-
func
|
|
2605
|
-
op :=
|
|
2606
|
-
op.
|
|
2419
|
+
//export whatsapp_Preview_Title_Set
|
|
2420
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2421
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2422
|
+
op.Title = C.GoString(val)
|
|
2607
2423
|
}
|
|
2608
2424
|
|
|
2609
|
-
//
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2425
|
+
//export whatsapp_Preview_Description_Get
|
|
2426
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2427
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2428
|
+
return C.CString(op.Description)
|
|
2614
2429
|
}
|
|
2615
2430
|
|
|
2616
|
-
//export
|
|
2617
|
-
func
|
|
2618
|
-
op :=
|
|
2431
|
+
//export whatsapp_Preview_Description_Set
|
|
2432
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2433
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2434
|
+
op.Description = C.GoString(val)
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2438
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2439
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2440
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2444
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2445
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2446
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2450
|
+
//
|
|
2451
|
+
//export whatsapp_Location_CTor
|
|
2452
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2453
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
//export whatsapp_Location_Latitude_Get
|
|
2457
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2458
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2459
|
+
return C.double(op.Latitude)
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
//export whatsapp_Location_Latitude_Set
|
|
2463
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2464
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2465
|
+
op.Latitude = float64(val)
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
//export whatsapp_Location_Longitude_Get
|
|
2469
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2470
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2471
|
+
return C.double(op.Longitude)
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
//export whatsapp_Location_Longitude_Set
|
|
2475
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2476
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2477
|
+
op.Longitude = float64(val)
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2481
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2482
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2483
|
+
return C.longlong(op.Accuracy)
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2487
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2488
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2489
|
+
op.Accuracy = int(val)
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
//export whatsapp_Location_IsLive_Get
|
|
2493
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2494
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2495
|
+
return boolGoToPy(op.IsLive)
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
//export whatsapp_Location_IsLive_Set
|
|
2499
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2500
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2501
|
+
op.IsLive = boolPyToGo(val)
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
//export whatsapp_Location_Name_Get
|
|
2505
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2506
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2507
|
+
return C.CString(op.Name)
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
//export whatsapp_Location_Name_Set
|
|
2511
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2512
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2513
|
+
op.Name = C.GoString(val)
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
//export whatsapp_Location_Address_Get
|
|
2517
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2518
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2519
|
+
return C.CString(op.Address)
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
//export whatsapp_Location_Address_Set
|
|
2523
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2524
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2525
|
+
op.Address = C.GoString(val)
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
//export whatsapp_Location_URL_Get
|
|
2529
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2530
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2531
|
+
return C.CString(op.URL)
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
//export whatsapp_Location_URL_Set
|
|
2535
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2536
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2537
|
+
op.URL = C.GoString(val)
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2541
|
+
//
|
|
2542
|
+
//export whatsapp_ChatState_CTor
|
|
2543
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2544
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2548
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2549
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2550
|
+
return C.longlong(int(op.Kind))
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2554
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2555
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2556
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
//export whatsapp_ChatState_JID_Get
|
|
2560
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2561
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2562
|
+
return C.CString(op.JID)
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
//export whatsapp_ChatState_JID_Set
|
|
2566
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2567
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2568
|
+
op.JID = C.GoString(val)
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2572
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2573
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2574
|
+
return C.CString(op.GroupJID)
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2578
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2579
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2580
|
+
op.GroupJID = C.GoString(val)
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2584
|
+
//
|
|
2585
|
+
//export whatsapp_EventPayload_CTor
|
|
2586
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2587
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2591
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2592
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2593
|
+
return C.CString(op.QRCode)
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2597
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2598
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2599
|
+
op.QRCode = C.GoString(val)
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2603
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2604
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2605
|
+
return C.CString(op.PairDeviceID)
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2609
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2610
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2611
|
+
op.PairDeviceID = C.GoString(val)
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2615
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2616
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2617
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2621
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2622
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2623
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2627
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2628
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2629
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2633
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2634
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2635
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2639
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2640
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2641
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2645
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2646
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2647
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2651
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2652
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2653
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2657
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2658
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2659
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2663
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2664
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2665
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2669
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2670
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2671
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2675
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2676
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2677
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2681
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2682
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2683
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2687
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2688
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2689
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2693
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2694
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2695
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2699
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2700
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2701
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2705
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2706
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2707
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2711
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2712
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2713
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2717
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2718
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2719
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2723
|
+
//
|
|
2724
|
+
//export whatsapp_Gateway_CTor
|
|
2725
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2726
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2730
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2731
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2732
|
+
return C.CString(op.DBPath)
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2736
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2737
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2738
|
+
op.DBPath = C.GoString(val)
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
//export whatsapp_Gateway_Name_Get
|
|
2742
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2743
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2744
|
+
return C.CString(op.Name)
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
//export whatsapp_Gateway_Name_Set
|
|
2748
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2749
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2750
|
+
op.Name = C.GoString(val)
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2754
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2755
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2756
|
+
return C.CString(op.LogLevel)
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2760
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2761
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2762
|
+
op.LogLevel = C.GoString(val)
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2766
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2767
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2768
|
+
return C.CString(op.TempDir)
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2772
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2773
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2774
|
+
op.TempDir = C.GoString(val)
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
//export whatsapp_Gateway_Init
|
|
2778
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2779
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2780
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2781
|
+
if __err != nil {
|
|
2782
|
+
return errorGoToPy(nil)
|
|
2783
|
+
}
|
|
2784
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2785
|
+
|
|
2786
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2787
|
+
if __err != nil {
|
|
2788
|
+
estr := C.CString(__err.Error())
|
|
2789
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2790
|
+
return estr
|
|
2791
|
+
}
|
|
2792
|
+
return C.CString("")
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
//export whatsapp_Gateway_NewSession
|
|
2796
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2797
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2798
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2799
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2800
|
+
if __err != nil {
|
|
2801
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2802
|
+
}
|
|
2803
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2804
|
+
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2808
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2809
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2810
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2811
|
+
if __err != nil {
|
|
2812
|
+
return errorGoToPy(nil)
|
|
2813
|
+
}
|
|
2814
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2815
|
+
|
|
2816
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2817
|
+
if __err != nil {
|
|
2818
|
+
estr := C.CString(__err.Error())
|
|
2819
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2820
|
+
return estr
|
|
2821
|
+
}
|
|
2822
|
+
return C.CString("")
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
2826
|
+
//
|
|
2827
|
+
//export whatsapp_LoggedOut_CTor
|
|
2828
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
2829
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
2833
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
2834
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2835
|
+
return C.CString(op.Reason)
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
2839
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
2840
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2841
|
+
op.Reason = C.GoString(val)
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
2845
|
+
//
|
|
2846
|
+
//export whatsapp_Message_CTor
|
|
2847
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
2848
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
//export whatsapp_Message_Kind_Get
|
|
2852
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2853
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2854
|
+
return C.longlong(int(op.Kind))
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
//export whatsapp_Message_Kind_Set
|
|
2858
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2859
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2860
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
//export whatsapp_Message_ID_Get
|
|
2864
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
2865
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2619
2866
|
return C.CString(op.ID)
|
|
2620
2867
|
}
|
|
2621
2868
|
|
|
2622
|
-
//export
|
|
2623
|
-
func
|
|
2624
|
-
op :=
|
|
2869
|
+
//export whatsapp_Message_ID_Set
|
|
2870
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
2871
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2625
2872
|
op.ID = C.GoString(val)
|
|
2626
2873
|
}
|
|
2627
2874
|
|
|
2628
|
-
//export
|
|
2629
|
-
func
|
|
2630
|
-
op :=
|
|
2631
|
-
return C.CString(op.
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
//export whatsapp_Avatar_URL_Set
|
|
2635
|
-
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2636
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2637
|
-
op.URL = C.GoString(val)
|
|
2875
|
+
//export whatsapp_Message_JID_Get
|
|
2876
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
2877
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2878
|
+
return C.CString(op.JID)
|
|
2638
2879
|
}
|
|
2639
2880
|
|
|
2640
|
-
//
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2881
|
+
//export whatsapp_Message_JID_Set
|
|
2882
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
2883
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2884
|
+
op.JID = C.GoString(val)
|
|
2645
2885
|
}
|
|
2646
2886
|
|
|
2647
|
-
//export
|
|
2648
|
-
func
|
|
2649
|
-
op :=
|
|
2650
|
-
return C.
|
|
2887
|
+
//export whatsapp_Message_GroupJID_Get
|
|
2888
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2889
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2890
|
+
return C.CString(op.GroupJID)
|
|
2651
2891
|
}
|
|
2652
2892
|
|
|
2653
|
-
//export
|
|
2654
|
-
func
|
|
2655
|
-
op :=
|
|
2656
|
-
op.
|
|
2893
|
+
//export whatsapp_Message_GroupJID_Set
|
|
2894
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2895
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2896
|
+
op.GroupJID = C.GoString(val)
|
|
2657
2897
|
}
|
|
2658
2898
|
|
|
2659
|
-
//export
|
|
2660
|
-
func
|
|
2661
|
-
op :=
|
|
2662
|
-
return C.CString(op.
|
|
2899
|
+
//export whatsapp_Message_OriginJID_Get
|
|
2900
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
2901
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2902
|
+
return C.CString(op.OriginJID)
|
|
2663
2903
|
}
|
|
2664
2904
|
|
|
2665
|
-
//export
|
|
2666
|
-
func
|
|
2667
|
-
op :=
|
|
2668
|
-
op.
|
|
2905
|
+
//export whatsapp_Message_OriginJID_Set
|
|
2906
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
2907
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2908
|
+
op.OriginJID = C.GoString(val)
|
|
2669
2909
|
}
|
|
2670
2910
|
|
|
2671
|
-
//export
|
|
2672
|
-
func
|
|
2673
|
-
op :=
|
|
2674
|
-
return C.
|
|
2911
|
+
//export whatsapp_Message_Body_Get
|
|
2912
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
2913
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2914
|
+
return C.CString(op.Body)
|
|
2675
2915
|
}
|
|
2676
2916
|
|
|
2677
|
-
//export
|
|
2678
|
-
func
|
|
2679
|
-
op :=
|
|
2680
|
-
op.
|
|
2917
|
+
//export whatsapp_Message_Body_Set
|
|
2918
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
2919
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2920
|
+
op.Body = C.GoString(val)
|
|
2681
2921
|
}
|
|
2682
2922
|
|
|
2683
|
-
//
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2923
|
+
//export whatsapp_Message_Timestamp_Get
|
|
2924
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2925
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2926
|
+
return C.longlong(op.Timestamp)
|
|
2688
2927
|
}
|
|
2689
2928
|
|
|
2690
|
-
//export
|
|
2691
|
-
func
|
|
2692
|
-
op :=
|
|
2693
|
-
|
|
2929
|
+
//export whatsapp_Message_Timestamp_Set
|
|
2930
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2931
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2932
|
+
op.Timestamp = int64(val)
|
|
2694
2933
|
}
|
|
2695
2934
|
|
|
2696
|
-
//export
|
|
2697
|
-
func
|
|
2698
|
-
op :=
|
|
2699
|
-
op.
|
|
2935
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
2936
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2937
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2938
|
+
return boolGoToPy(op.IsCarbon)
|
|
2700
2939
|
}
|
|
2701
2940
|
|
|
2702
|
-
//export
|
|
2703
|
-
func
|
|
2704
|
-
op :=
|
|
2705
|
-
|
|
2941
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
2942
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2943
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2944
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2706
2945
|
}
|
|
2707
2946
|
|
|
2708
|
-
//export
|
|
2709
|
-
func
|
|
2710
|
-
op :=
|
|
2711
|
-
op.
|
|
2947
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
2948
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
2949
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2950
|
+
return boolGoToPy(op.IsForwarded)
|
|
2712
2951
|
}
|
|
2713
2952
|
|
|
2714
|
-
//export
|
|
2715
|
-
func
|
|
2716
|
-
op :=
|
|
2717
|
-
|
|
2953
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
2954
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
2955
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2956
|
+
op.IsForwarded = boolPyToGo(val)
|
|
2718
2957
|
}
|
|
2719
2958
|
|
|
2720
|
-
//export
|
|
2721
|
-
func
|
|
2722
|
-
op :=
|
|
2723
|
-
|
|
2959
|
+
//export whatsapp_Message_ReplyID_Get
|
|
2960
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
2961
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2962
|
+
return C.CString(op.ReplyID)
|
|
2724
2963
|
}
|
|
2725
2964
|
|
|
2726
|
-
//
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2965
|
+
//export whatsapp_Message_ReplyID_Set
|
|
2966
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
2967
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2968
|
+
op.ReplyID = C.GoString(val)
|
|
2731
2969
|
}
|
|
2732
2970
|
|
|
2733
|
-
//export
|
|
2734
|
-
func
|
|
2735
|
-
op :=
|
|
2736
|
-
return C.CString(op.
|
|
2971
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
2972
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
2973
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2974
|
+
return C.CString(op.ReplyBody)
|
|
2737
2975
|
}
|
|
2738
2976
|
|
|
2739
|
-
//export
|
|
2740
|
-
func
|
|
2741
|
-
op :=
|
|
2742
|
-
op.
|
|
2977
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
2978
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
2979
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2980
|
+
op.ReplyBody = C.GoString(val)
|
|
2743
2981
|
}
|
|
2744
2982
|
|
|
2745
|
-
//export
|
|
2746
|
-
func
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2750
|
-
if __err != nil {
|
|
2751
|
-
return handleFromPtr_types_JID(nil)
|
|
2752
|
-
}
|
|
2753
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2754
|
-
|
|
2755
|
-
return handleFromPtr_types_JID(&cret)
|
|
2983
|
+
//export whatsapp_Message_Attachments_Get
|
|
2984
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
2985
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2986
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
2756
2987
|
}
|
|
2757
2988
|
|
|
2758
|
-
//
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2989
|
+
//export whatsapp_Message_Attachments_Set
|
|
2990
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
2991
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2992
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2763
2993
|
}
|
|
2764
2994
|
|
|
2765
|
-
//export
|
|
2766
|
-
func
|
|
2767
|
-
op :=
|
|
2768
|
-
return
|
|
2995
|
+
//export whatsapp_Message_Preview_Get
|
|
2996
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
2997
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2998
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
2769
2999
|
}
|
|
2770
3000
|
|
|
2771
|
-
//export
|
|
2772
|
-
func
|
|
2773
|
-
op :=
|
|
2774
|
-
op.
|
|
3001
|
+
//export whatsapp_Message_Preview_Set
|
|
3002
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3003
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3004
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
2775
3005
|
}
|
|
2776
3006
|
|
|
2777
|
-
//export
|
|
2778
|
-
func
|
|
2779
|
-
op :=
|
|
2780
|
-
return
|
|
3007
|
+
//export whatsapp_Message_Location_Get
|
|
3008
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3009
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3010
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
2781
3011
|
}
|
|
2782
3012
|
|
|
2783
|
-
//export
|
|
2784
|
-
func
|
|
2785
|
-
op :=
|
|
2786
|
-
op.
|
|
3013
|
+
//export whatsapp_Message_Location_Set
|
|
3014
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3015
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3016
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
2787
3017
|
}
|
|
2788
3018
|
|
|
2789
|
-
//export
|
|
2790
|
-
func
|
|
2791
|
-
op :=
|
|
2792
|
-
return
|
|
3019
|
+
//export whatsapp_Message_Poll_Get
|
|
3020
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3021
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3022
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
2793
3023
|
}
|
|
2794
3024
|
|
|
2795
|
-
//export
|
|
2796
|
-
func
|
|
2797
|
-
op :=
|
|
2798
|
-
op.
|
|
3025
|
+
//export whatsapp_Message_Poll_Set
|
|
3026
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3027
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3028
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
2799
3029
|
}
|
|
2800
3030
|
|
|
2801
|
-
//
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3031
|
+
//export whatsapp_Message_Album_Get
|
|
3032
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3033
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3034
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
2806
3035
|
}
|
|
2807
3036
|
|
|
2808
|
-
//export
|
|
2809
|
-
func
|
|
2810
|
-
op :=
|
|
2811
|
-
|
|
3037
|
+
//export whatsapp_Message_Album_Set
|
|
3038
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3039
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3040
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
2812
3041
|
}
|
|
2813
3042
|
|
|
2814
|
-
//export
|
|
2815
|
-
func
|
|
2816
|
-
op :=
|
|
2817
|
-
op.
|
|
3043
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3044
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3045
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3046
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
2818
3047
|
}
|
|
2819
3048
|
|
|
2820
|
-
//export
|
|
2821
|
-
func
|
|
2822
|
-
op :=
|
|
2823
|
-
|
|
3049
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3050
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3051
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3052
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
2824
3053
|
}
|
|
2825
3054
|
|
|
2826
|
-
//export
|
|
2827
|
-
func
|
|
2828
|
-
op :=
|
|
2829
|
-
op.
|
|
3055
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3056
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3057
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3058
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
2830
3059
|
}
|
|
2831
3060
|
|
|
2832
|
-
//export
|
|
2833
|
-
func
|
|
2834
|
-
op :=
|
|
2835
|
-
|
|
3061
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3062
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3063
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3064
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
2836
3065
|
}
|
|
2837
3066
|
|
|
2838
|
-
//export
|
|
2839
|
-
func
|
|
2840
|
-
op :=
|
|
2841
|
-
op.
|
|
3067
|
+
//export whatsapp_Message_Receipts_Get
|
|
3068
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3069
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3070
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
2842
3071
|
}
|
|
2843
3072
|
|
|
2844
|
-
//export
|
|
2845
|
-
func
|
|
2846
|
-
op :=
|
|
2847
|
-
|
|
3073
|
+
//export whatsapp_Message_Receipts_Set
|
|
3074
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3075
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3076
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
2848
3077
|
}
|
|
2849
3078
|
|
|
2850
|
-
//export
|
|
2851
|
-
func
|
|
2852
|
-
op :=
|
|
2853
|
-
op.
|
|
3079
|
+
//export whatsapp_Message_Reactions_Get
|
|
3080
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3081
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3082
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
2854
3083
|
}
|
|
2855
3084
|
|
|
2856
|
-
//
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3085
|
+
//export whatsapp_Message_Reactions_Set
|
|
3086
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3087
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3088
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
2861
3089
|
}
|
|
2862
3090
|
|
|
2863
|
-
//export
|
|
2864
|
-
func
|
|
2865
|
-
op :=
|
|
2866
|
-
return
|
|
3091
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3092
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3093
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3094
|
+
return boolGoToPy(op.IsHistory)
|
|
2867
3095
|
}
|
|
2868
3096
|
|
|
2869
|
-
//export
|
|
2870
|
-
func
|
|
2871
|
-
op :=
|
|
2872
|
-
op.
|
|
3097
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3098
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3099
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3100
|
+
op.IsHistory = boolPyToGo(val)
|
|
2873
3101
|
}
|
|
2874
3102
|
|
|
2875
|
-
//
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
3103
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
3104
|
+
//
|
|
3105
|
+
//export whatsapp_PollOption_CTor
|
|
3106
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3107
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2879
3108
|
}
|
|
2880
3109
|
|
|
2881
|
-
//export
|
|
2882
|
-
func
|
|
2883
|
-
op :=
|
|
2884
|
-
op.
|
|
3110
|
+
//export whatsapp_PollOption_Title_Get
|
|
3111
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3112
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3113
|
+
return C.CString(op.Title)
|
|
2885
3114
|
}
|
|
2886
3115
|
|
|
2887
|
-
//export
|
|
2888
|
-
func
|
|
2889
|
-
op :=
|
|
2890
|
-
|
|
3116
|
+
//export whatsapp_PollOption_Title_Set
|
|
3117
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3118
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3119
|
+
op.Title = C.GoString(val)
|
|
2891
3120
|
}
|
|
2892
3121
|
|
|
2893
|
-
//
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
3122
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3123
|
+
//
|
|
3124
|
+
//export whatsapp_Receipt_CTor
|
|
3125
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3126
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2897
3127
|
}
|
|
2898
3128
|
|
|
2899
|
-
//export
|
|
2900
|
-
func
|
|
2901
|
-
op :=
|
|
2902
|
-
return
|
|
3129
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3130
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3131
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3132
|
+
return C.longlong(int(op.Kind))
|
|
2903
3133
|
}
|
|
2904
3134
|
|
|
2905
|
-
//export
|
|
2906
|
-
func
|
|
2907
|
-
op :=
|
|
2908
|
-
op.
|
|
3135
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3136
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3137
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3138
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
2909
3139
|
}
|
|
2910
3140
|
|
|
2911
|
-
//export
|
|
2912
|
-
func
|
|
2913
|
-
op :=
|
|
2914
|
-
return
|
|
3141
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3142
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3143
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3144
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
2915
3145
|
}
|
|
2916
3146
|
|
|
2917
|
-
//export
|
|
2918
|
-
func
|
|
2919
|
-
op :=
|
|
2920
|
-
op.
|
|
3147
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3148
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3149
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3150
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
2921
3151
|
}
|
|
2922
3152
|
|
|
2923
|
-
//export
|
|
2924
|
-
func
|
|
2925
|
-
op :=
|
|
2926
|
-
return C.CString(op.
|
|
3153
|
+
//export whatsapp_Receipt_JID_Get
|
|
3154
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3155
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3156
|
+
return C.CString(op.JID)
|
|
2927
3157
|
}
|
|
2928
3158
|
|
|
2929
|
-
//export
|
|
2930
|
-
func
|
|
2931
|
-
op :=
|
|
2932
|
-
op.
|
|
3159
|
+
//export whatsapp_Receipt_JID_Set
|
|
3160
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3161
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3162
|
+
op.JID = C.GoString(val)
|
|
2933
3163
|
}
|
|
2934
3164
|
|
|
2935
|
-
//export
|
|
2936
|
-
func
|
|
2937
|
-
op :=
|
|
2938
|
-
return C.CString(op.
|
|
3165
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3166
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3167
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3168
|
+
return C.CString(op.GroupJID)
|
|
2939
3169
|
}
|
|
2940
3170
|
|
|
2941
|
-
//export
|
|
2942
|
-
func
|
|
2943
|
-
op :=
|
|
2944
|
-
op.
|
|
3171
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3172
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3173
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3174
|
+
op.GroupJID = C.GoString(val)
|
|
2945
3175
|
}
|
|
2946
3176
|
|
|
2947
|
-
//
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3177
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3178
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3179
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3180
|
+
return C.longlong(op.Timestamp)
|
|
2952
3181
|
}
|
|
2953
3182
|
|
|
2954
|
-
//export
|
|
2955
|
-
func
|
|
2956
|
-
op :=
|
|
2957
|
-
|
|
3183
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3184
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3185
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3186
|
+
op.Timestamp = int64(val)
|
|
2958
3187
|
}
|
|
2959
3188
|
|
|
2960
|
-
//export
|
|
2961
|
-
func
|
|
2962
|
-
op :=
|
|
2963
|
-
op.
|
|
3189
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3190
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3191
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3192
|
+
return boolGoToPy(op.IsCarbon)
|
|
2964
3193
|
}
|
|
2965
3194
|
|
|
2966
|
-
//export
|
|
2967
|
-
func
|
|
2968
|
-
op :=
|
|
2969
|
-
|
|
3195
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3196
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3197
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3198
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2970
3199
|
}
|
|
2971
3200
|
|
|
2972
|
-
//
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
3201
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3202
|
+
//
|
|
3203
|
+
//export whatsapp_Attachment_CTor
|
|
3204
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3205
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2976
3206
|
}
|
|
2977
3207
|
|
|
2978
|
-
//
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3208
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3209
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3210
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3211
|
+
return C.CString(op.MIME)
|
|
2983
3212
|
}
|
|
2984
3213
|
|
|
2985
|
-
//export
|
|
2986
|
-
func
|
|
2987
|
-
op :=
|
|
2988
|
-
|
|
3214
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3215
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3216
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3217
|
+
op.MIME = C.GoString(val)
|
|
2989
3218
|
}
|
|
2990
3219
|
|
|
2991
|
-
//export
|
|
2992
|
-
func
|
|
2993
|
-
op :=
|
|
2994
|
-
|
|
3220
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3221
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3222
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3223
|
+
return C.CString(op.Filename)
|
|
2995
3224
|
}
|
|
2996
3225
|
|
|
2997
|
-
//
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
3226
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3227
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3228
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3229
|
+
op.Filename = C.GoString(val)
|
|
3002
3230
|
}
|
|
3003
3231
|
|
|
3004
|
-
//export
|
|
3005
|
-
func
|
|
3006
|
-
op :=
|
|
3007
|
-
return C.
|
|
3232
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3233
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3234
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3235
|
+
return C.CString(op.Caption)
|
|
3008
3236
|
}
|
|
3009
3237
|
|
|
3010
|
-
//export
|
|
3011
|
-
func
|
|
3012
|
-
op :=
|
|
3013
|
-
op.
|
|
3238
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3239
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3240
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3241
|
+
op.Caption = C.GoString(val)
|
|
3014
3242
|
}
|
|
3015
3243
|
|
|
3016
|
-
//export
|
|
3017
|
-
func
|
|
3018
|
-
op :=
|
|
3019
|
-
return
|
|
3244
|
+
//export whatsapp_Attachment_Data_Get
|
|
3245
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3246
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3247
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3020
3248
|
}
|
|
3021
3249
|
|
|
3022
|
-
//export
|
|
3023
|
-
func
|
|
3024
|
-
op :=
|
|
3025
|
-
op.
|
|
3250
|
+
//export whatsapp_Attachment_Data_Set
|
|
3251
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3252
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3253
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3026
3254
|
}
|
|
3027
3255
|
|
|
3028
|
-
//export
|
|
3029
|
-
func
|
|
3030
|
-
|
|
3031
|
-
|
|
3256
|
+
//export whatsapp_Attachment_GetSpec
|
|
3257
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3258
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3259
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3260
|
+
if __err != nil {
|
|
3261
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3262
|
+
}
|
|
3263
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3264
|
+
|
|
3265
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3266
|
+
if __err != nil {
|
|
3267
|
+
estr := C.CString(__err.Error())
|
|
3268
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3269
|
+
C.free(unsafe.Pointer(estr))
|
|
3270
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3271
|
+
}
|
|
3272
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3032
3273
|
}
|
|
3033
3274
|
|
|
3034
|
-
//
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3275
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3276
|
+
//
|
|
3277
|
+
//export whatsapp_Avatar_CTor
|
|
3278
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3279
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3038
3280
|
}
|
|
3039
3281
|
|
|
3040
|
-
//export
|
|
3041
|
-
func
|
|
3042
|
-
op :=
|
|
3043
|
-
return C.CString(op.
|
|
3282
|
+
//export whatsapp_Avatar_ID_Get
|
|
3283
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3284
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3285
|
+
return C.CString(op.ID)
|
|
3044
3286
|
}
|
|
3045
3287
|
|
|
3046
|
-
//export
|
|
3047
|
-
func
|
|
3048
|
-
op :=
|
|
3049
|
-
op.
|
|
3288
|
+
//export whatsapp_Avatar_ID_Set
|
|
3289
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3290
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3291
|
+
op.ID = C.GoString(val)
|
|
3050
3292
|
}
|
|
3051
3293
|
|
|
3052
|
-
//export
|
|
3053
|
-
func
|
|
3054
|
-
op :=
|
|
3055
|
-
return
|
|
3294
|
+
//export whatsapp_Avatar_URL_Get
|
|
3295
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3296
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3297
|
+
return C.CString(op.URL)
|
|
3056
3298
|
}
|
|
3057
3299
|
|
|
3058
|
-
//export
|
|
3059
|
-
func
|
|
3060
|
-
op :=
|
|
3061
|
-
op.
|
|
3300
|
+
//export whatsapp_Avatar_URL_Set
|
|
3301
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3303
|
+
op.URL = C.GoString(val)
|
|
3062
3304
|
}
|
|
3063
3305
|
|
|
3064
3306
|
// --- wrapping struct: whatsapp.Connect ---
|
|
@@ -3111,313 +3353,145 @@ func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
|
3111
3353
|
op.JID = C.GoString(val)
|
|
3112
3354
|
}
|
|
3113
3355
|
|
|
3114
|
-
//export whatsapp_Contact_Name_Get
|
|
3115
|
-
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3116
|
-
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3117
|
-
return C.CString(op.Name)
|
|
3118
|
-
}
|
|
3119
|
-
|
|
3120
|
-
//export whatsapp_Contact_Name_Set
|
|
3121
|
-
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3122
|
-
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3123
|
-
op.Name = C.GoString(val)
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
|
-
// --- wrapping struct: whatsapp.EventPayload ---
|
|
3127
|
-
//
|
|
3128
|
-
//export whatsapp_EventPayload_CTor
|
|
3129
|
-
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
3130
|
-
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
3131
|
-
}
|
|
3132
|
-
|
|
3133
|
-
//export whatsapp_EventPayload_QRCode_Get
|
|
3134
|
-
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
3135
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3136
|
-
return C.CString(op.QRCode)
|
|
3137
|
-
}
|
|
3138
|
-
|
|
3139
|
-
//export whatsapp_EventPayload_QRCode_Set
|
|
3140
|
-
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
3141
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3142
|
-
op.QRCode = C.GoString(val)
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
|
-
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
3146
|
-
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
3147
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3148
|
-
return C.CString(op.PairDeviceID)
|
|
3149
|
-
}
|
|
3150
|
-
|
|
3151
|
-
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
3152
|
-
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
3153
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3154
|
-
op.PairDeviceID = C.GoString(val)
|
|
3155
|
-
}
|
|
3156
|
-
|
|
3157
|
-
//export whatsapp_EventPayload_Connect_Get
|
|
3158
|
-
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
3159
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3160
|
-
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
3161
|
-
}
|
|
3162
|
-
|
|
3163
|
-
//export whatsapp_EventPayload_Connect_Set
|
|
3164
|
-
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
3165
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3166
|
-
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
3167
|
-
}
|
|
3168
|
-
|
|
3169
|
-
//export whatsapp_EventPayload_LoggedOut_Get
|
|
3170
|
-
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
3171
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3172
|
-
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
//export whatsapp_EventPayload_LoggedOut_Set
|
|
3176
|
-
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
3177
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3178
|
-
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
3179
|
-
}
|
|
3180
|
-
|
|
3181
|
-
//export whatsapp_EventPayload_Contact_Get
|
|
3182
|
-
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
3183
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3184
|
-
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
|
-
//export whatsapp_EventPayload_Contact_Set
|
|
3188
|
-
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
3189
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3190
|
-
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
3191
|
-
}
|
|
3192
|
-
|
|
3193
|
-
//export whatsapp_EventPayload_Presence_Get
|
|
3194
|
-
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
3195
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3196
|
-
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
//export whatsapp_EventPayload_Presence_Set
|
|
3200
|
-
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
3201
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3202
|
-
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
//export whatsapp_EventPayload_Message_Get
|
|
3206
|
-
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
3207
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3208
|
-
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
//export whatsapp_EventPayload_Message_Set
|
|
3212
|
-
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
3213
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3214
|
-
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
|
-
//export whatsapp_EventPayload_ChatState_Get
|
|
3218
|
-
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
3219
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3220
|
-
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
3221
|
-
}
|
|
3222
|
-
|
|
3223
|
-
//export whatsapp_EventPayload_ChatState_Set
|
|
3224
|
-
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
3225
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3226
|
-
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
3227
|
-
}
|
|
3228
|
-
|
|
3229
|
-
//export whatsapp_EventPayload_Receipt_Get
|
|
3230
|
-
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
3231
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3232
|
-
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
//export whatsapp_EventPayload_Receipt_Set
|
|
3236
|
-
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
3237
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3238
|
-
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
//export whatsapp_EventPayload_Group_Get
|
|
3242
|
-
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
3243
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3244
|
-
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
3245
|
-
}
|
|
3246
|
-
|
|
3247
|
-
//export whatsapp_EventPayload_Group_Set
|
|
3248
|
-
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
3249
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3250
|
-
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
//export whatsapp_EventPayload_Call_Get
|
|
3254
|
-
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
3255
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3256
|
-
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
//export whatsapp_EventPayload_Call_Set
|
|
3260
|
-
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
3261
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3262
|
-
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
|
-
// --- wrapping struct: whatsapp.Group ---
|
|
3266
|
-
//
|
|
3267
|
-
//export whatsapp_Group_CTor
|
|
3268
|
-
func whatsapp_Group_CTor() CGoHandle {
|
|
3269
|
-
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
//export whatsapp_Group_JID_Get
|
|
3273
|
-
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3274
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3275
|
-
return C.CString(op.JID)
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
//export whatsapp_Group_JID_Set
|
|
3279
|
-
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3280
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3281
|
-
op.JID = C.GoString(val)
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
//export whatsapp_Group_Name_Get
|
|
3285
|
-
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3286
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3356
|
+
//export whatsapp_Contact_Name_Get
|
|
3357
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3358
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3287
3359
|
return C.CString(op.Name)
|
|
3288
3360
|
}
|
|
3289
3361
|
|
|
3290
|
-
//export
|
|
3291
|
-
func
|
|
3292
|
-
op :=
|
|
3362
|
+
//export whatsapp_Contact_Name_Set
|
|
3363
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3364
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3293
3365
|
op.Name = C.GoString(val)
|
|
3294
3366
|
}
|
|
3295
3367
|
|
|
3296
|
-
//
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3368
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3369
|
+
//
|
|
3370
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3371
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3372
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3300
3373
|
}
|
|
3301
3374
|
|
|
3302
|
-
//export
|
|
3303
|
-
func
|
|
3304
|
-
op :=
|
|
3305
|
-
op.
|
|
3375
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3376
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3377
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3378
|
+
return C.CString(op.JID)
|
|
3306
3379
|
}
|
|
3307
3380
|
|
|
3308
|
-
//export
|
|
3309
|
-
func
|
|
3310
|
-
op :=
|
|
3381
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3382
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3383
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3384
|
+
op.JID = C.GoString(val)
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
3388
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
3389
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3311
3390
|
return C.CString(op.Nickname)
|
|
3312
3391
|
}
|
|
3313
3392
|
|
|
3314
|
-
//export
|
|
3315
|
-
func
|
|
3316
|
-
op :=
|
|
3393
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
3394
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3395
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3317
3396
|
op.Nickname = C.GoString(val)
|
|
3318
3397
|
}
|
|
3319
3398
|
|
|
3320
|
-
//export
|
|
3321
|
-
func
|
|
3322
|
-
op :=
|
|
3323
|
-
return
|
|
3399
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3400
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3401
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3402
|
+
return C.longlong(int(op.Affiliation))
|
|
3324
3403
|
}
|
|
3325
3404
|
|
|
3326
|
-
//export
|
|
3327
|
-
func
|
|
3328
|
-
op :=
|
|
3329
|
-
op.
|
|
3405
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3406
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3407
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3408
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3330
3409
|
}
|
|
3331
3410
|
|
|
3332
|
-
//export
|
|
3333
|
-
func
|
|
3334
|
-
op :=
|
|
3335
|
-
return C.
|
|
3411
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3412
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3413
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3414
|
+
return C.longlong(int(op.Action))
|
|
3336
3415
|
}
|
|
3337
3416
|
|
|
3338
|
-
//export
|
|
3339
|
-
func
|
|
3340
|
-
op :=
|
|
3341
|
-
op.
|
|
3417
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3418
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3419
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3420
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3342
3421
|
}
|
|
3343
3422
|
|
|
3344
|
-
// --- wrapping struct: whatsapp.
|
|
3423
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3345
3424
|
//
|
|
3346
|
-
//export
|
|
3347
|
-
func
|
|
3348
|
-
return CGoHandle(
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
//export whatsapp_Receipt_Kind_Get
|
|
3352
|
-
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3353
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3354
|
-
return C.longlong(int(op.Kind))
|
|
3425
|
+
//export whatsapp_GroupSubject_CTor
|
|
3426
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3427
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3355
3428
|
}
|
|
3356
3429
|
|
|
3357
|
-
//export
|
|
3358
|
-
func
|
|
3359
|
-
op :=
|
|
3360
|
-
|
|
3430
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3431
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3432
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3433
|
+
return C.CString(op.Subject)
|
|
3361
3434
|
}
|
|
3362
3435
|
|
|
3363
|
-
//export
|
|
3364
|
-
func
|
|
3365
|
-
op :=
|
|
3366
|
-
|
|
3436
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3437
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3438
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3439
|
+
op.Subject = C.GoString(val)
|
|
3367
3440
|
}
|
|
3368
3441
|
|
|
3369
|
-
//export
|
|
3370
|
-
func
|
|
3371
|
-
op :=
|
|
3372
|
-
op.
|
|
3442
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3443
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3444
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3445
|
+
return C.longlong(op.SetAt)
|
|
3373
3446
|
}
|
|
3374
3447
|
|
|
3375
|
-
//export
|
|
3376
|
-
func
|
|
3377
|
-
op :=
|
|
3378
|
-
|
|
3448
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3449
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3450
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3451
|
+
op.SetAt = int64(val)
|
|
3379
3452
|
}
|
|
3380
3453
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3383
|
-
op :=
|
|
3384
|
-
|
|
3454
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
3455
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
3456
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3457
|
+
return C.CString(op.SetBy)
|
|
3385
3458
|
}
|
|
3386
3459
|
|
|
3387
|
-
//export
|
|
3388
|
-
func
|
|
3389
|
-
op :=
|
|
3390
|
-
|
|
3460
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
3461
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
3462
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3463
|
+
op.SetBy = C.GoString(val)
|
|
3391
3464
|
}
|
|
3392
3465
|
|
|
3393
|
-
//
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3466
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3467
|
+
//
|
|
3468
|
+
//export whatsapp_Poll_CTor
|
|
3469
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3470
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3397
3471
|
}
|
|
3398
3472
|
|
|
3399
|
-
//export
|
|
3400
|
-
func
|
|
3401
|
-
op :=
|
|
3402
|
-
return C.
|
|
3473
|
+
//export whatsapp_Poll_Title_Get
|
|
3474
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3475
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3476
|
+
return C.CString(op.Title)
|
|
3403
3477
|
}
|
|
3404
3478
|
|
|
3405
|
-
//export
|
|
3406
|
-
func
|
|
3407
|
-
op :=
|
|
3408
|
-
op.
|
|
3479
|
+
//export whatsapp_Poll_Title_Set
|
|
3480
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3481
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3482
|
+
op.Title = C.GoString(val)
|
|
3409
3483
|
}
|
|
3410
3484
|
|
|
3411
|
-
//export
|
|
3412
|
-
func
|
|
3413
|
-
op :=
|
|
3414
|
-
return
|
|
3485
|
+
//export whatsapp_Poll_Options_Get
|
|
3486
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3487
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3488
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3415
3489
|
}
|
|
3416
3490
|
|
|
3417
|
-
//export
|
|
3418
|
-
func
|
|
3419
|
-
op :=
|
|
3420
|
-
op.
|
|
3491
|
+
//export whatsapp_Poll_Options_Set
|
|
3492
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3493
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3494
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3421
3495
|
}
|
|
3422
3496
|
|
|
3423
3497
|
// --- wrapping struct: whatsapp.Session ---
|
|
@@ -3829,80 +3903,6 @@ func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.
|
|
|
3829
3903
|
}
|
|
3830
3904
|
}
|
|
3831
3905
|
|
|
3832
|
-
// --- wrapping struct: whatsapp.Attachment ---
|
|
3833
|
-
//
|
|
3834
|
-
//export whatsapp_Attachment_CTor
|
|
3835
|
-
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3836
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3837
|
-
}
|
|
3838
|
-
|
|
3839
|
-
//export whatsapp_Attachment_MIME_Get
|
|
3840
|
-
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3841
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3842
|
-
return C.CString(op.MIME)
|
|
3843
|
-
}
|
|
3844
|
-
|
|
3845
|
-
//export whatsapp_Attachment_MIME_Set
|
|
3846
|
-
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3847
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3848
|
-
op.MIME = C.GoString(val)
|
|
3849
|
-
}
|
|
3850
|
-
|
|
3851
|
-
//export whatsapp_Attachment_Filename_Get
|
|
3852
|
-
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3853
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3854
|
-
return C.CString(op.Filename)
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
//export whatsapp_Attachment_Filename_Set
|
|
3858
|
-
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3859
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3860
|
-
op.Filename = C.GoString(val)
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
//export whatsapp_Attachment_Caption_Get
|
|
3864
|
-
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3865
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3866
|
-
return C.CString(op.Caption)
|
|
3867
|
-
}
|
|
3868
|
-
|
|
3869
|
-
//export whatsapp_Attachment_Caption_Set
|
|
3870
|
-
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3871
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3872
|
-
op.Caption = C.GoString(val)
|
|
3873
|
-
}
|
|
3874
|
-
|
|
3875
|
-
//export whatsapp_Attachment_Data_Get
|
|
3876
|
-
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3877
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3878
|
-
return handleFromPtr_Slice_byte(&op.Data)
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
|
-
//export whatsapp_Attachment_Data_Set
|
|
3882
|
-
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3883
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3884
|
-
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3885
|
-
}
|
|
3886
|
-
|
|
3887
|
-
//export whatsapp_Attachment_GetSpec
|
|
3888
|
-
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3889
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3890
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3891
|
-
if __err != nil {
|
|
3892
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3893
|
-
}
|
|
3894
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3895
|
-
|
|
3896
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3897
|
-
if __err != nil {
|
|
3898
|
-
estr := C.CString(__err.Error())
|
|
3899
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3900
|
-
C.free(unsafe.Pointer(estr))
|
|
3901
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3902
|
-
}
|
|
3903
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3904
|
-
}
|
|
3905
|
-
|
|
3906
3906
|
// ---- Slices ---
|
|
3907
3907
|
|
|
3908
3908
|
// ---- Maps ---
|