slidge-whatsapp 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.7__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/event.go +8 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +164 -164
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +130 -130
- slidge_whatsapp/generated/whatsapp.c +1504 -1504
- slidge_whatsapp/generated/whatsapp.go +1021 -1021
- slidge_whatsapp/generated/whatsapp.py +1209 -1209
- slidge_whatsapp/generated/whatsapp_go.h +164 -164
- slidge_whatsapp/go.mod +6 -6
- slidge_whatsapp/go.sum +12 -18
- slidge_whatsapp/media/media.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +1 -6
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +76 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +38 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +64 -27
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +19 -12
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +22 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +33 -17
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +198 -48
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +12 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +16 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +16 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +2436 -1676
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +85 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +800 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +72 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +678 -441
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +20 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +11 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +13 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +10 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +32 -17
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +4 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +5 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +8 -8
- slidge_whatsapp/vendor/modules.txt +20 -6
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.2.7.dist-info}/METADATA +1 -1
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.2.7.dist-info}/RECORD +87 -54
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.2.7.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.2.7.dist-info}/WHEEL +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.2.7.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -2115,189 +2115,107 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2115
|
|
|
2116
2116
|
// ---- Structs ---
|
|
2117
2117
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2119
|
-
//
|
|
2120
|
-
//export whatsapp_Presence_CTor
|
|
2121
|
-
func whatsapp_Presence_CTor() CGoHandle {
|
|
2122
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
//export whatsapp_Presence_JID_Get
|
|
2126
|
-
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2128
|
-
return C.CString(op.JID)
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
//export whatsapp_Presence_JID_Set
|
|
2132
|
-
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2134
|
-
op.JID = C.GoString(val)
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
//export whatsapp_Presence_Kind_Get
|
|
2138
|
-
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
2139
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2140
|
-
return C.longlong(int(op.Kind))
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
//export whatsapp_Presence_Kind_Set
|
|
2144
|
-
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2145
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2146
|
-
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
//export whatsapp_Presence_LastSeen_Get
|
|
2150
|
-
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2151
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2152
|
-
return C.longlong(op.LastSeen)
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
//export whatsapp_Presence_LastSeen_Set
|
|
2156
|
-
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2157
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2158
|
-
op.LastSeen = int64(val)
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
// --- wrapping struct: whatsapp.ChatState ---
|
|
2162
|
-
//
|
|
2163
|
-
//export whatsapp_ChatState_CTor
|
|
2164
|
-
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2165
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
//export whatsapp_ChatState_Kind_Get
|
|
2169
|
-
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2170
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2171
|
-
return C.longlong(int(op.Kind))
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
//export whatsapp_ChatState_Kind_Set
|
|
2175
|
-
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2176
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2177
|
-
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
//export whatsapp_ChatState_JID_Get
|
|
2181
|
-
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2182
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2183
|
-
return C.CString(op.JID)
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
//export whatsapp_ChatState_JID_Set
|
|
2187
|
-
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2188
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2189
|
-
op.JID = C.GoString(val)
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
//export whatsapp_ChatState_GroupJID_Get
|
|
2193
|
-
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2194
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2195
|
-
return C.CString(op.GroupJID)
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
//export whatsapp_ChatState_GroupJID_Set
|
|
2199
|
-
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
-
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2201
|
-
op.GroupJID = C.GoString(val)
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
// --- wrapping struct: whatsapp.Group ---
|
|
2118
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2205
2119
|
//
|
|
2206
|
-
//export
|
|
2207
|
-
func
|
|
2208
|
-
return CGoHandle(
|
|
2120
|
+
//export whatsapp_Gateway_CTor
|
|
2121
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2122
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2209
2123
|
}
|
|
2210
2124
|
|
|
2211
|
-
//export
|
|
2212
|
-
func
|
|
2213
|
-
op :=
|
|
2214
|
-
return C.CString(op.
|
|
2125
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2126
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2127
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2128
|
+
return C.CString(op.DBPath)
|
|
2215
2129
|
}
|
|
2216
2130
|
|
|
2217
|
-
//export
|
|
2218
|
-
func
|
|
2219
|
-
op :=
|
|
2220
|
-
op.
|
|
2131
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2132
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2134
|
+
op.DBPath = C.GoString(val)
|
|
2221
2135
|
}
|
|
2222
2136
|
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
op :=
|
|
2137
|
+
//export whatsapp_Gateway_Name_Get
|
|
2138
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2139
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2226
2140
|
return C.CString(op.Name)
|
|
2227
2141
|
}
|
|
2228
2142
|
|
|
2229
|
-
//export
|
|
2230
|
-
func
|
|
2231
|
-
op :=
|
|
2143
|
+
//export whatsapp_Gateway_Name_Set
|
|
2144
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2145
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2232
2146
|
op.Name = C.GoString(val)
|
|
2233
2147
|
}
|
|
2234
2148
|
|
|
2235
|
-
//export
|
|
2236
|
-
func
|
|
2237
|
-
op :=
|
|
2238
|
-
return
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
//export whatsapp_Group_Subject_Set
|
|
2242
|
-
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2243
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2244
|
-
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2149
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2150
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2152
|
+
return C.CString(op.LogLevel)
|
|
2245
2153
|
}
|
|
2246
2154
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
op :=
|
|
2250
|
-
|
|
2155
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2156
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2158
|
+
op.LogLevel = C.GoString(val)
|
|
2251
2159
|
}
|
|
2252
2160
|
|
|
2253
|
-
//export
|
|
2254
|
-
func
|
|
2255
|
-
op :=
|
|
2256
|
-
|
|
2161
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2162
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2164
|
+
return C.CString(op.TempDir)
|
|
2257
2165
|
}
|
|
2258
2166
|
|
|
2259
|
-
//export
|
|
2260
|
-
func
|
|
2261
|
-
op :=
|
|
2262
|
-
|
|
2167
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2168
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2170
|
+
op.TempDir = C.GoString(val)
|
|
2263
2171
|
}
|
|
2264
2172
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2173
|
+
//export whatsapp_Gateway_Init
|
|
2174
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2175
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2176
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2177
|
+
if __err != nil {
|
|
2178
|
+
return errorGoToPy(nil)
|
|
2179
|
+
}
|
|
2180
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2270
2181
|
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2182
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2183
|
+
if __err != nil {
|
|
2184
|
+
estr := C.CString(__err.Error())
|
|
2185
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2186
|
+
return estr
|
|
2187
|
+
}
|
|
2188
|
+
return C.CString("")
|
|
2276
2189
|
}
|
|
2277
2190
|
|
|
2278
|
-
//export
|
|
2279
|
-
func
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2191
|
+
//export whatsapp_Gateway_NewSession
|
|
2192
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2193
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2194
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2195
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2196
|
+
if __err != nil {
|
|
2197
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2198
|
+
}
|
|
2199
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2283
2200
|
|
|
2284
|
-
//export whatsapp_LinkedDevice_ID_Set
|
|
2285
|
-
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
2286
|
-
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2287
|
-
op.ID = C.GoString(val)
|
|
2288
2201
|
}
|
|
2289
2202
|
|
|
2290
|
-
//export
|
|
2291
|
-
func
|
|
2203
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2204
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2292
2205
|
_saved_thread := C.PyEval_SaveThread()
|
|
2293
|
-
|
|
2294
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2206
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2295
2207
|
if __err != nil {
|
|
2296
|
-
return
|
|
2208
|
+
return errorGoToPy(nil)
|
|
2297
2209
|
}
|
|
2298
|
-
|
|
2210
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2299
2211
|
|
|
2300
|
-
|
|
2212
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2213
|
+
if __err != nil {
|
|
2214
|
+
estr := C.CString(__err.Error())
|
|
2215
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2216
|
+
return estr
|
|
2217
|
+
}
|
|
2218
|
+
return C.CString("")
|
|
2301
2219
|
}
|
|
2302
2220
|
|
|
2303
2221
|
// --- wrapping struct: whatsapp.Location ---
|
|
@@ -2391,217 +2309,143 @@ func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
2391
2309
|
op.URL = C.GoString(val)
|
|
2392
2310
|
}
|
|
2393
2311
|
|
|
2394
|
-
// --- wrapping struct: whatsapp.
|
|
2312
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2395
2313
|
//
|
|
2396
|
-
//export
|
|
2397
|
-
func
|
|
2398
|
-
return CGoHandle(
|
|
2314
|
+
//export whatsapp_PollOption_CTor
|
|
2315
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2316
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2399
2317
|
}
|
|
2400
2318
|
|
|
2401
|
-
//export
|
|
2402
|
-
func
|
|
2403
|
-
op :=
|
|
2319
|
+
//export whatsapp_PollOption_Title_Get
|
|
2320
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2404
2322
|
return C.CString(op.Title)
|
|
2405
2323
|
}
|
|
2406
2324
|
|
|
2407
|
-
//export
|
|
2408
|
-
func
|
|
2409
|
-
op :=
|
|
2325
|
+
//export whatsapp_PollOption_Title_Set
|
|
2326
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2327
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2410
2328
|
op.Title = C.GoString(val)
|
|
2411
2329
|
}
|
|
2412
2330
|
|
|
2413
|
-
//
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2331
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2332
|
+
//
|
|
2333
|
+
//export whatsapp_Session_CTor
|
|
2334
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2335
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2417
2336
|
}
|
|
2418
2337
|
|
|
2419
|
-
//export
|
|
2420
|
-
func
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
//export whatsapp_Attachment_CTor
|
|
2428
|
-
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2429
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
//export whatsapp_Attachment_MIME_Get
|
|
2433
|
-
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2434
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2435
|
-
return C.CString(op.MIME)
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
//export whatsapp_Attachment_MIME_Set
|
|
2439
|
-
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2440
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2441
|
-
op.MIME = C.GoString(val)
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
//export whatsapp_Attachment_Filename_Get
|
|
2445
|
-
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2446
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2447
|
-
return C.CString(op.Filename)
|
|
2448
|
-
}
|
|
2338
|
+
//export whatsapp_Session_Login
|
|
2339
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2340
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2341
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2342
|
+
if __err != nil {
|
|
2343
|
+
return errorGoToPy(nil)
|
|
2344
|
+
}
|
|
2345
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2449
2346
|
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2347
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2348
|
+
if __err != nil {
|
|
2349
|
+
estr := C.CString(__err.Error())
|
|
2350
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2351
|
+
return estr
|
|
2352
|
+
}
|
|
2353
|
+
return C.CString("")
|
|
2454
2354
|
}
|
|
2455
2355
|
|
|
2456
|
-
//export
|
|
2457
|
-
func
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2356
|
+
//export whatsapp_Session_Logout
|
|
2357
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2358
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2359
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2360
|
+
if __err != nil {
|
|
2361
|
+
return errorGoToPy(nil)
|
|
2362
|
+
}
|
|
2363
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2461
2364
|
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2365
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2366
|
+
if __err != nil {
|
|
2367
|
+
estr := C.CString(__err.Error())
|
|
2368
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2369
|
+
return estr
|
|
2370
|
+
}
|
|
2371
|
+
return C.CString("")
|
|
2466
2372
|
}
|
|
2467
2373
|
|
|
2468
|
-
//export
|
|
2469
|
-
func
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2374
|
+
//export whatsapp_Session_Disconnect
|
|
2375
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2376
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2377
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2378
|
+
if __err != nil {
|
|
2379
|
+
return errorGoToPy(nil)
|
|
2380
|
+
}
|
|
2381
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2473
2382
|
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2383
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2384
|
+
if __err != nil {
|
|
2385
|
+
estr := C.CString(__err.Error())
|
|
2386
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2387
|
+
return estr
|
|
2388
|
+
}
|
|
2389
|
+
return C.CString("")
|
|
2478
2390
|
}
|
|
2479
2391
|
|
|
2480
|
-
//export
|
|
2481
|
-
func
|
|
2392
|
+
//export whatsapp_Session_PairPhone
|
|
2393
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2482
2394
|
_saved_thread := C.PyEval_SaveThread()
|
|
2483
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2395
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2484
2396
|
if __err != nil {
|
|
2485
|
-
return
|
|
2397
|
+
return C.CString("")
|
|
2486
2398
|
}
|
|
2487
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2399
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2488
2400
|
|
|
2489
2401
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2490
2402
|
if __err != nil {
|
|
2491
2403
|
estr := C.CString(__err.Error())
|
|
2492
2404
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2493
2405
|
C.free(unsafe.Pointer(estr))
|
|
2494
|
-
return
|
|
2406
|
+
return C.CString("")
|
|
2495
2407
|
}
|
|
2496
|
-
return
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
// --- wrapping struct: whatsapp.Call ---
|
|
2500
|
-
//
|
|
2501
|
-
//export whatsapp_Call_CTor
|
|
2502
|
-
func whatsapp_Call_CTor() CGoHandle {
|
|
2503
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
//export whatsapp_Call_State_Get
|
|
2507
|
-
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2508
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2509
|
-
return C.longlong(int(op.State))
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
//export whatsapp_Call_State_Set
|
|
2513
|
-
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2514
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2515
|
-
op.State = whatsapp.CallState(int(val))
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
//export whatsapp_Call_JID_Get
|
|
2519
|
-
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2520
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2521
|
-
return C.CString(op.JID)
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
//export whatsapp_Call_JID_Set
|
|
2525
|
-
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2526
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2527
|
-
op.JID = C.GoString(val)
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
//export whatsapp_Call_Timestamp_Get
|
|
2531
|
-
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2532
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2533
|
-
return C.longlong(op.Timestamp)
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
//export whatsapp_Call_Timestamp_Set
|
|
2537
|
-
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2538
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2539
|
-
op.Timestamp = int64(val)
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
// --- wrapping struct: whatsapp.Gateway ---
|
|
2543
|
-
//
|
|
2544
|
-
//export whatsapp_Gateway_CTor
|
|
2545
|
-
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2546
|
-
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
//export whatsapp_Gateway_DBPath_Get
|
|
2550
|
-
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2551
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2552
|
-
return C.CString(op.DBPath)
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
//export whatsapp_Gateway_DBPath_Set
|
|
2556
|
-
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2557
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2558
|
-
op.DBPath = C.GoString(val)
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
//export whatsapp_Gateway_Name_Get
|
|
2562
|
-
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2563
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2564
|
-
return C.CString(op.Name)
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
//export whatsapp_Gateway_Name_Set
|
|
2568
|
-
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2569
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2570
|
-
op.Name = C.GoString(val)
|
|
2408
|
+
return C.CString(cret)
|
|
2571
2409
|
}
|
|
2572
2410
|
|
|
2573
|
-
//export
|
|
2574
|
-
func
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2411
|
+
//export whatsapp_Session_SendMessage
|
|
2412
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2413
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2414
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2415
|
+
if __err != nil {
|
|
2416
|
+
return errorGoToPy(nil)
|
|
2417
|
+
}
|
|
2418
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2578
2419
|
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2420
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2421
|
+
if __err != nil {
|
|
2422
|
+
estr := C.CString(__err.Error())
|
|
2423
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2424
|
+
return estr
|
|
2425
|
+
}
|
|
2426
|
+
return C.CString("")
|
|
2583
2427
|
}
|
|
2584
2428
|
|
|
2585
|
-
//export
|
|
2586
|
-
func
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2429
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2430
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2431
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2432
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2433
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2434
|
+
if __err != nil {
|
|
2435
|
+
return C.CString("")
|
|
2436
|
+
}
|
|
2437
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2590
2438
|
|
|
2591
|
-
//export whatsapp_Gateway_TempDir_Set
|
|
2592
|
-
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2593
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2594
|
-
op.TempDir = C.GoString(val)
|
|
2595
2439
|
}
|
|
2596
2440
|
|
|
2597
|
-
//export
|
|
2598
|
-
func
|
|
2441
|
+
//export whatsapp_Session_SendChatState
|
|
2442
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2599
2443
|
_saved_thread := C.PyEval_SaveThread()
|
|
2600
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2444
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2601
2445
|
if __err != nil {
|
|
2602
2446
|
return errorGoToPy(nil)
|
|
2603
2447
|
}
|
|
2604
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2448
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2605
2449
|
|
|
2606
2450
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2607
2451
|
if __err != nil {
|
|
@@ -2612,26 +2456,32 @@ func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
|
2612
2456
|
return C.CString("")
|
|
2613
2457
|
}
|
|
2614
2458
|
|
|
2615
|
-
//export
|
|
2616
|
-
func
|
|
2459
|
+
//export whatsapp_Session_SendReceipt
|
|
2460
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2617
2461
|
_saved_thread := C.PyEval_SaveThread()
|
|
2618
|
-
|
|
2619
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2462
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2620
2463
|
if __err != nil {
|
|
2621
|
-
return
|
|
2464
|
+
return errorGoToPy(nil)
|
|
2622
2465
|
}
|
|
2623
|
-
|
|
2466
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2624
2467
|
|
|
2468
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2469
|
+
if __err != nil {
|
|
2470
|
+
estr := C.CString(__err.Error())
|
|
2471
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2472
|
+
return estr
|
|
2473
|
+
}
|
|
2474
|
+
return C.CString("")
|
|
2625
2475
|
}
|
|
2626
2476
|
|
|
2627
|
-
//export
|
|
2628
|
-
func
|
|
2477
|
+
//export whatsapp_Session_SendPresence
|
|
2478
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2629
2479
|
_saved_thread := C.PyEval_SaveThread()
|
|
2630
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2480
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2631
2481
|
if __err != nil {
|
|
2632
2482
|
return errorGoToPy(nil)
|
|
2633
2483
|
}
|
|
2634
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2484
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2635
2485
|
|
|
2636
2486
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2637
2487
|
if __err != nil {
|
|
@@ -2642,157 +2492,292 @@ func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.cha
|
|
|
2642
2492
|
return C.CString("")
|
|
2643
2493
|
}
|
|
2644
2494
|
|
|
2645
|
-
//
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2495
|
+
//export whatsapp_Session_GetContacts
|
|
2496
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2497
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2498
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2499
|
+
if __err != nil {
|
|
2500
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2501
|
+
}
|
|
2502
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2651
2503
|
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2504
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2505
|
+
if __err != nil {
|
|
2506
|
+
estr := C.CString(__err.Error())
|
|
2507
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2508
|
+
C.free(unsafe.Pointer(estr))
|
|
2509
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2510
|
+
}
|
|
2511
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2656
2512
|
}
|
|
2657
2513
|
|
|
2658
|
-
//export
|
|
2659
|
-
func
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2514
|
+
//export whatsapp_Session_GetGroups
|
|
2515
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2516
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2517
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2518
|
+
if __err != nil {
|
|
2519
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2520
|
+
}
|
|
2521
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2663
2522
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2523
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2524
|
+
if __err != nil {
|
|
2525
|
+
estr := C.CString(__err.Error())
|
|
2526
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2527
|
+
C.free(unsafe.Pointer(estr))
|
|
2528
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2529
|
+
}
|
|
2530
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2668
2531
|
}
|
|
2669
2532
|
|
|
2670
|
-
//export
|
|
2671
|
-
func
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2533
|
+
//export whatsapp_Session_CreateGroup
|
|
2534
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2535
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2536
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2537
|
+
if __err != nil {
|
|
2538
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2539
|
+
}
|
|
2540
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2675
2541
|
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2542
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2543
|
+
if __err != nil {
|
|
2544
|
+
estr := C.CString(__err.Error())
|
|
2545
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2546
|
+
C.free(unsafe.Pointer(estr))
|
|
2547
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2548
|
+
}
|
|
2549
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2680
2550
|
}
|
|
2681
2551
|
|
|
2682
|
-
//export
|
|
2683
|
-
func
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2552
|
+
//export whatsapp_Session_LeaveGroup
|
|
2553
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2554
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2555
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2556
|
+
if __err != nil {
|
|
2557
|
+
return errorGoToPy(nil)
|
|
2558
|
+
}
|
|
2559
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2687
2560
|
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2561
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2562
|
+
if __err != nil {
|
|
2563
|
+
estr := C.CString(__err.Error())
|
|
2564
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2565
|
+
return estr
|
|
2566
|
+
}
|
|
2567
|
+
return C.CString("")
|
|
2693
2568
|
}
|
|
2694
2569
|
|
|
2695
|
-
//export
|
|
2696
|
-
func
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2570
|
+
//export whatsapp_Session_GetAvatar
|
|
2571
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2572
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2573
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2574
|
+
if __err != nil {
|
|
2575
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2576
|
+
}
|
|
2577
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2700
2578
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2579
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2580
|
+
if __err != nil {
|
|
2581
|
+
estr := C.CString(__err.Error())
|
|
2582
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2583
|
+
C.free(unsafe.Pointer(estr))
|
|
2584
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2585
|
+
}
|
|
2586
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2705
2587
|
}
|
|
2706
2588
|
|
|
2707
|
-
//export
|
|
2708
|
-
func
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2589
|
+
//export whatsapp_Session_SetAvatar
|
|
2590
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2591
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2592
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2593
|
+
if __err != nil {
|
|
2594
|
+
return C.CString("")
|
|
2595
|
+
}
|
|
2596
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2712
2597
|
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2598
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2599
|
+
if __err != nil {
|
|
2600
|
+
estr := C.CString(__err.Error())
|
|
2601
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2602
|
+
C.free(unsafe.Pointer(estr))
|
|
2603
|
+
return C.CString("")
|
|
2604
|
+
}
|
|
2605
|
+
return C.CString(cret)
|
|
2717
2606
|
}
|
|
2718
2607
|
|
|
2719
|
-
//export
|
|
2720
|
-
func
|
|
2721
|
-
|
|
2722
|
-
|
|
2608
|
+
//export whatsapp_Session_SetGroupName
|
|
2609
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2610
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2611
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2612
|
+
if __err != nil {
|
|
2613
|
+
return errorGoToPy(nil)
|
|
2614
|
+
}
|
|
2615
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2616
|
+
|
|
2617
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2618
|
+
if __err != nil {
|
|
2619
|
+
estr := C.CString(__err.Error())
|
|
2620
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2621
|
+
return estr
|
|
2622
|
+
}
|
|
2623
|
+
return C.CString("")
|
|
2723
2624
|
}
|
|
2724
2625
|
|
|
2725
|
-
//export
|
|
2726
|
-
func
|
|
2727
|
-
|
|
2728
|
-
|
|
2626
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2627
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2628
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2629
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2630
|
+
if __err != nil {
|
|
2631
|
+
return errorGoToPy(nil)
|
|
2632
|
+
}
|
|
2633
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2634
|
+
|
|
2635
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2636
|
+
if __err != nil {
|
|
2637
|
+
estr := C.CString(__err.Error())
|
|
2638
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2639
|
+
return estr
|
|
2640
|
+
}
|
|
2641
|
+
return C.CString("")
|
|
2729
2642
|
}
|
|
2730
2643
|
|
|
2731
|
-
//
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2644
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2645
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2646
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2647
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2648
|
+
if __err != nil {
|
|
2649
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2650
|
+
}
|
|
2651
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2652
|
+
|
|
2653
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2654
|
+
if __err != nil {
|
|
2655
|
+
estr := C.CString(__err.Error())
|
|
2656
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2657
|
+
C.free(unsafe.Pointer(estr))
|
|
2658
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2659
|
+
}
|
|
2660
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2736
2661
|
}
|
|
2737
2662
|
|
|
2738
|
-
//export
|
|
2739
|
-
func
|
|
2740
|
-
|
|
2741
|
-
|
|
2663
|
+
//export whatsapp_Session_FindContact
|
|
2664
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2665
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2666
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2667
|
+
if __err != nil {
|
|
2668
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2669
|
+
}
|
|
2670
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2671
|
+
|
|
2672
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2673
|
+
if __err != nil {
|
|
2674
|
+
estr := C.CString(__err.Error())
|
|
2675
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2676
|
+
C.free(unsafe.Pointer(estr))
|
|
2677
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2678
|
+
}
|
|
2679
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2742
2680
|
}
|
|
2743
2681
|
|
|
2744
|
-
//export
|
|
2745
|
-
func
|
|
2746
|
-
|
|
2747
|
-
|
|
2682
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2683
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2684
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2685
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2686
|
+
if __err != nil {
|
|
2687
|
+
return errorGoToPy(nil)
|
|
2688
|
+
}
|
|
2689
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2690
|
+
|
|
2691
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2692
|
+
if __err != nil {
|
|
2693
|
+
estr := C.CString(__err.Error())
|
|
2694
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2695
|
+
return estr
|
|
2696
|
+
}
|
|
2697
|
+
return C.CString("")
|
|
2748
2698
|
}
|
|
2749
2699
|
|
|
2750
|
-
//export
|
|
2751
|
-
func
|
|
2752
|
-
|
|
2753
|
-
|
|
2700
|
+
//export whatsapp_Session_SetEventHandler
|
|
2701
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2702
|
+
_fun_arg := h
|
|
2703
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2704
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2705
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2706
|
+
if __err != nil {
|
|
2707
|
+
return
|
|
2708
|
+
}
|
|
2709
|
+
if boolPyToGo(goRun) {
|
|
2710
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2711
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2712
|
+
return
|
|
2713
|
+
}
|
|
2714
|
+
_gstate := C.PyGILState_Ensure()
|
|
2715
|
+
_fcargs := C.PyTuple_New(2)
|
|
2716
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2717
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2718
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2719
|
+
C.gopy_decref(_fcargs)
|
|
2720
|
+
C.gopy_err_handle()
|
|
2721
|
+
C.PyGILState_Release(_gstate)
|
|
2722
|
+
})
|
|
2723
|
+
} else {
|
|
2724
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2725
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2726
|
+
return
|
|
2727
|
+
}
|
|
2728
|
+
_gstate := C.PyGILState_Ensure()
|
|
2729
|
+
_fcargs := C.PyTuple_New(2)
|
|
2730
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2731
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2732
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2733
|
+
C.gopy_decref(_fcargs)
|
|
2734
|
+
C.gopy_err_handle()
|
|
2735
|
+
C.PyGILState_Release(_gstate)
|
|
2736
|
+
})
|
|
2737
|
+
}
|
|
2754
2738
|
}
|
|
2755
2739
|
|
|
2756
|
-
//
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2740
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2741
|
+
//
|
|
2742
|
+
//export whatsapp_Album_CTor
|
|
2743
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2744
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2760
2745
|
}
|
|
2761
2746
|
|
|
2762
|
-
//export
|
|
2763
|
-
func
|
|
2764
|
-
op :=
|
|
2765
|
-
return
|
|
2747
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2748
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2749
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2750
|
+
return boolGoToPy(op.IsAlbum)
|
|
2766
2751
|
}
|
|
2767
2752
|
|
|
2768
|
-
//export
|
|
2769
|
-
func
|
|
2770
|
-
op :=
|
|
2771
|
-
op.
|
|
2753
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2754
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2755
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2756
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2772
2757
|
}
|
|
2773
2758
|
|
|
2774
|
-
//export
|
|
2775
|
-
func
|
|
2776
|
-
op :=
|
|
2777
|
-
return C.
|
|
2759
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2760
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2761
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2762
|
+
return C.longlong(op.ImageCount)
|
|
2778
2763
|
}
|
|
2779
2764
|
|
|
2780
|
-
//export
|
|
2781
|
-
func
|
|
2782
|
-
op :=
|
|
2783
|
-
op.
|
|
2765
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2766
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2767
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2768
|
+
op.ImageCount = int(val)
|
|
2784
2769
|
}
|
|
2785
2770
|
|
|
2786
|
-
//export
|
|
2787
|
-
func
|
|
2788
|
-
op :=
|
|
2789
|
-
return
|
|
2771
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2772
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2773
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2774
|
+
return C.longlong(op.VideoCount)
|
|
2790
2775
|
}
|
|
2791
2776
|
|
|
2792
|
-
//export
|
|
2793
|
-
func
|
|
2794
|
-
op :=
|
|
2795
|
-
op.
|
|
2777
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2778
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2779
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2780
|
+
op.VideoCount = int(val)
|
|
2796
2781
|
}
|
|
2797
2782
|
|
|
2798
2783
|
// --- wrapping struct: whatsapp.Avatar ---
|
|
@@ -2826,6 +2811,37 @@ func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
2826
2811
|
op.URL = C.GoString(val)
|
|
2827
2812
|
}
|
|
2828
2813
|
|
|
2814
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2815
|
+
//
|
|
2816
|
+
//export whatsapp_Contact_CTor
|
|
2817
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2818
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
//export whatsapp_Contact_JID_Get
|
|
2822
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2823
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2824
|
+
return C.CString(op.JID)
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
//export whatsapp_Contact_JID_Set
|
|
2828
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2829
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2830
|
+
op.JID = C.GoString(val)
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
//export whatsapp_Contact_Name_Get
|
|
2834
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2835
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2836
|
+
return C.CString(op.Name)
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
//export whatsapp_Contact_Name_Set
|
|
2840
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2841
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2842
|
+
op.Name = C.GoString(val)
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2829
2845
|
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2830
2846
|
//
|
|
2831
2847
|
//export whatsapp_EventPayload_CTor
|
|
@@ -2929,59 +2945,181 @@ func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
|
2929
2945
|
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2930
2946
|
}
|
|
2931
2947
|
|
|
2932
|
-
//export whatsapp_EventPayload_Group_Get
|
|
2933
|
-
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2934
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2935
|
-
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2948
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2949
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2950
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2951
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2955
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2956
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2957
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2961
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2962
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2963
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2967
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2968
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2969
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2973
|
+
//
|
|
2974
|
+
//export whatsapp_Group_CTor
|
|
2975
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2976
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
//export whatsapp_Group_JID_Get
|
|
2980
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2981
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2982
|
+
return C.CString(op.JID)
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
//export whatsapp_Group_JID_Set
|
|
2986
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2987
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2988
|
+
op.JID = C.GoString(val)
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
//export whatsapp_Group_Name_Get
|
|
2992
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2993
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2994
|
+
return C.CString(op.Name)
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
//export whatsapp_Group_Name_Set
|
|
2998
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2999
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3000
|
+
op.Name = C.GoString(val)
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
//export whatsapp_Group_Subject_Get
|
|
3004
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3006
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
//export whatsapp_Group_Subject_Set
|
|
3010
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3012
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
//export whatsapp_Group_Nickname_Get
|
|
3016
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3017
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3018
|
+
return C.CString(op.Nickname)
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
//export whatsapp_Group_Nickname_Set
|
|
3022
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3023
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3024
|
+
op.Nickname = C.GoString(val)
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
//export whatsapp_Group_Participants_Get
|
|
3028
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3029
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3030
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
//export whatsapp_Group_Participants_Set
|
|
3034
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3035
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3036
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3040
|
+
//
|
|
3041
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3042
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3043
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3044
|
+
}
|
|
3045
|
+
|
|
3046
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3047
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3048
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3049
|
+
return C.CString(op.JID)
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3053
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3054
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3055
|
+
op.JID = C.GoString(val)
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3059
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3060
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3061
|
+
return C.longlong(int(op.Affiliation))
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3065
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3066
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3067
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3071
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3072
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3073
|
+
return C.longlong(int(op.Action))
|
|
2936
3074
|
}
|
|
2937
3075
|
|
|
2938
|
-
//export
|
|
2939
|
-
func
|
|
2940
|
-
op :=
|
|
2941
|
-
op.
|
|
3076
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3077
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3078
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3079
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2942
3080
|
}
|
|
2943
3081
|
|
|
2944
|
-
//
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
3082
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3083
|
+
//
|
|
3084
|
+
//export whatsapp_GroupSubject_CTor
|
|
3085
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3086
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2948
3087
|
}
|
|
2949
3088
|
|
|
2950
|
-
//export
|
|
2951
|
-
func
|
|
2952
|
-
op :=
|
|
2953
|
-
op.
|
|
3089
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3090
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3091
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3092
|
+
return C.CString(op.Subject)
|
|
2954
3093
|
}
|
|
2955
3094
|
|
|
2956
|
-
//
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3095
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3096
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3097
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3098
|
+
op.Subject = C.GoString(val)
|
|
2961
3099
|
}
|
|
2962
3100
|
|
|
2963
|
-
//export
|
|
2964
|
-
func
|
|
2965
|
-
op :=
|
|
2966
|
-
return C.
|
|
3101
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3102
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3103
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3104
|
+
return C.longlong(op.SetAt)
|
|
2967
3105
|
}
|
|
2968
3106
|
|
|
2969
|
-
//export
|
|
2970
|
-
func
|
|
2971
|
-
op :=
|
|
2972
|
-
op.
|
|
3107
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3108
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3109
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3110
|
+
op.SetAt = int64(val)
|
|
2973
3111
|
}
|
|
2974
3112
|
|
|
2975
|
-
//export
|
|
2976
|
-
func
|
|
2977
|
-
op :=
|
|
2978
|
-
return C.CString(op.
|
|
3113
|
+
//export whatsapp_GroupSubject_SetByJID_Get
|
|
3114
|
+
func whatsapp_GroupSubject_SetByJID_Get(handle CGoHandle) *C.char {
|
|
3115
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3116
|
+
return C.CString(op.SetByJID)
|
|
2979
3117
|
}
|
|
2980
3118
|
|
|
2981
|
-
//export
|
|
2982
|
-
func
|
|
2983
|
-
op :=
|
|
2984
|
-
op.
|
|
3119
|
+
//export whatsapp_GroupSubject_SetByJID_Set
|
|
3120
|
+
func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
3121
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3122
|
+
op.SetByJID = C.GoString(val)
|
|
2985
3123
|
}
|
|
2986
3124
|
|
|
2987
3125
|
// --- wrapping struct: whatsapp.Message ---
|
|
@@ -3131,642 +3269,351 @@ func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
|
3131
3269
|
|
|
3132
3270
|
//export whatsapp_Message_Attachments_Set
|
|
3133
3271
|
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3134
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3135
|
-
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
//export whatsapp_Message_Preview_Get
|
|
3139
|
-
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3140
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3141
|
-
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3142
|
-
}
|
|
3143
|
-
|
|
3144
|
-
//export whatsapp_Message_Preview_Set
|
|
3145
|
-
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3146
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3147
|
-
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3150
|
-
//export whatsapp_Message_Location_Get
|
|
3151
|
-
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3152
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3153
|
-
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3154
|
-
}
|
|
3155
|
-
|
|
3156
|
-
//export whatsapp_Message_Location_Set
|
|
3157
|
-
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3158
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3159
|
-
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3160
|
-
}
|
|
3161
|
-
|
|
3162
|
-
//export whatsapp_Message_Poll_Get
|
|
3163
|
-
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3164
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3165
|
-
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3166
|
-
}
|
|
3167
|
-
|
|
3168
|
-
//export whatsapp_Message_Poll_Set
|
|
3169
|
-
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3170
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3171
|
-
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
//export whatsapp_Message_Album_Get
|
|
3175
|
-
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3176
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3177
|
-
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3178
|
-
}
|
|
3179
|
-
|
|
3180
|
-
//export whatsapp_Message_Album_Set
|
|
3181
|
-
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3182
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3183
|
-
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
|
-
//export whatsapp_Message_MentionJIDs_Get
|
|
3187
|
-
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3188
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3189
|
-
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3190
|
-
}
|
|
3191
|
-
|
|
3192
|
-
//export whatsapp_Message_MentionJIDs_Set
|
|
3193
|
-
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3194
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3195
|
-
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
//export whatsapp_Message_Receipts_Get
|
|
3199
|
-
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3200
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3201
|
-
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
//export whatsapp_Message_Receipts_Set
|
|
3205
|
-
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3206
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3207
|
-
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
//export whatsapp_Message_Reactions_Get
|
|
3211
|
-
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3212
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3213
|
-
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
//export whatsapp_Message_Reactions_Set
|
|
3217
|
-
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3218
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3219
|
-
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
// --- wrapping struct: whatsapp.PollOption ---
|
|
3223
|
-
//
|
|
3224
|
-
//export whatsapp_PollOption_CTor
|
|
3225
|
-
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3226
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3227
|
-
}
|
|
3228
|
-
|
|
3229
|
-
//export whatsapp_PollOption_Title_Get
|
|
3230
|
-
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3231
|
-
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3232
|
-
return C.CString(op.Title)
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
//export whatsapp_PollOption_Title_Set
|
|
3236
|
-
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3237
|
-
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3238
|
-
op.Title = C.GoString(val)
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
// --- wrapping struct: whatsapp.Receipt ---
|
|
3242
|
-
//
|
|
3243
|
-
//export whatsapp_Receipt_CTor
|
|
3244
|
-
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3245
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
|
-
//export whatsapp_Receipt_Kind_Get
|
|
3249
|
-
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3250
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3251
|
-
return C.longlong(int(op.Kind))
|
|
3252
|
-
}
|
|
3253
|
-
|
|
3254
|
-
//export whatsapp_Receipt_Kind_Set
|
|
3255
|
-
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3256
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3257
|
-
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
|
-
//export whatsapp_Receipt_MessageIDs_Get
|
|
3261
|
-
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3262
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3263
|
-
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3266
|
-
//export whatsapp_Receipt_MessageIDs_Set
|
|
3267
|
-
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3268
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3269
|
-
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
//export whatsapp_Receipt_JID_Get
|
|
3273
|
-
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3274
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3275
|
-
return C.CString(op.JID)
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
//export whatsapp_Receipt_JID_Set
|
|
3279
|
-
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3280
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3281
|
-
op.JID = C.GoString(val)
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
//export whatsapp_Receipt_GroupJID_Get
|
|
3285
|
-
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3286
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3287
|
-
return C.CString(op.GroupJID)
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
-
//export whatsapp_Receipt_GroupJID_Set
|
|
3291
|
-
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3292
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3293
|
-
op.GroupJID = C.GoString(val)
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
//export whatsapp_Receipt_Timestamp_Get
|
|
3297
|
-
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3298
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3299
|
-
return C.longlong(op.Timestamp)
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
//export whatsapp_Receipt_Timestamp_Set
|
|
3303
|
-
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3304
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3305
|
-
op.Timestamp = int64(val)
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
//export whatsapp_Receipt_IsCarbon_Get
|
|
3309
|
-
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3310
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3311
|
-
return boolGoToPy(op.IsCarbon)
|
|
3272
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3273
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3312
3274
|
}
|
|
3313
3275
|
|
|
3314
|
-
//export
|
|
3315
|
-
func
|
|
3316
|
-
op :=
|
|
3317
|
-
op.
|
|
3276
|
+
//export whatsapp_Message_Preview_Get
|
|
3277
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3278
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3279
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3318
3280
|
}
|
|
3319
3281
|
|
|
3320
|
-
//
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3282
|
+
//export whatsapp_Message_Preview_Set
|
|
3283
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3284
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3285
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3325
3286
|
}
|
|
3326
3287
|
|
|
3327
|
-
//export
|
|
3328
|
-
func
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
return errorGoToPy(nil)
|
|
3333
|
-
}
|
|
3334
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3288
|
+
//export whatsapp_Message_Location_Get
|
|
3289
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3290
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3291
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3292
|
+
}
|
|
3335
3293
|
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
return estr
|
|
3341
|
-
}
|
|
3342
|
-
return C.CString("")
|
|
3294
|
+
//export whatsapp_Message_Location_Set
|
|
3295
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3296
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3297
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3343
3298
|
}
|
|
3344
3299
|
|
|
3345
|
-
//export
|
|
3346
|
-
func
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
return errorGoToPy(nil)
|
|
3351
|
-
}
|
|
3352
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3300
|
+
//export whatsapp_Message_Poll_Get
|
|
3301
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3303
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3304
|
+
}
|
|
3353
3305
|
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
return estr
|
|
3359
|
-
}
|
|
3360
|
-
return C.CString("")
|
|
3306
|
+
//export whatsapp_Message_Poll_Set
|
|
3307
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3308
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3309
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3361
3310
|
}
|
|
3362
3311
|
|
|
3363
|
-
//export
|
|
3364
|
-
func
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
return errorGoToPy(nil)
|
|
3369
|
-
}
|
|
3370
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3312
|
+
//export whatsapp_Message_Album_Get
|
|
3313
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3314
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3315
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3316
|
+
}
|
|
3371
3317
|
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
return estr
|
|
3377
|
-
}
|
|
3378
|
-
return C.CString("")
|
|
3318
|
+
//export whatsapp_Message_Album_Set
|
|
3319
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3320
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3321
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3379
3322
|
}
|
|
3380
3323
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
return C.CString("")
|
|
3387
|
-
}
|
|
3388
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3324
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3325
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3326
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3327
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3328
|
+
}
|
|
3389
3329
|
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
C.free(unsafe.Pointer(estr))
|
|
3395
|
-
return C.CString("")
|
|
3396
|
-
}
|
|
3397
|
-
return C.CString(cret)
|
|
3330
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3331
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3332
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3333
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3398
3334
|
}
|
|
3399
3335
|
|
|
3400
|
-
//export
|
|
3401
|
-
func
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
return errorGoToPy(nil)
|
|
3406
|
-
}
|
|
3407
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3336
|
+
//export whatsapp_Message_Receipts_Get
|
|
3337
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3338
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3339
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3340
|
+
}
|
|
3408
3341
|
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
return estr
|
|
3414
|
-
}
|
|
3415
|
-
return C.CString("")
|
|
3342
|
+
//export whatsapp_Message_Receipts_Set
|
|
3343
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3344
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3345
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3416
3346
|
}
|
|
3417
3347
|
|
|
3418
|
-
//export
|
|
3419
|
-
func
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
if __err != nil {
|
|
3424
|
-
return C.CString("")
|
|
3425
|
-
}
|
|
3426
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3348
|
+
//export whatsapp_Message_Reactions_Get
|
|
3349
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3350
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3351
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3352
|
+
}
|
|
3427
3353
|
|
|
3354
|
+
//export whatsapp_Message_Reactions_Set
|
|
3355
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3356
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3357
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3428
3358
|
}
|
|
3429
3359
|
|
|
3430
|
-
//
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
}
|
|
3437
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3360
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3361
|
+
//
|
|
3362
|
+
//export whatsapp_Attachment_CTor
|
|
3363
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3364
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3365
|
+
}
|
|
3438
3366
|
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
return estr
|
|
3444
|
-
}
|
|
3445
|
-
return C.CString("")
|
|
3367
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3368
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3369
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3370
|
+
return C.CString(op.MIME)
|
|
3446
3371
|
}
|
|
3447
3372
|
|
|
3448
|
-
//export
|
|
3449
|
-
func
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
return errorGoToPy(nil)
|
|
3454
|
-
}
|
|
3455
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3373
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3374
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3375
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3376
|
+
op.MIME = C.GoString(val)
|
|
3377
|
+
}
|
|
3456
3378
|
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
return estr
|
|
3462
|
-
}
|
|
3463
|
-
return C.CString("")
|
|
3379
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3380
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3381
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3382
|
+
return C.CString(op.Filename)
|
|
3464
3383
|
}
|
|
3465
3384
|
|
|
3466
|
-
//export
|
|
3467
|
-
func
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
return errorGoToPy(nil)
|
|
3472
|
-
}
|
|
3473
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3385
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3386
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3387
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3388
|
+
op.Filename = C.GoString(val)
|
|
3389
|
+
}
|
|
3474
3390
|
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
return estr
|
|
3480
|
-
}
|
|
3481
|
-
return C.CString("")
|
|
3391
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3392
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3393
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3394
|
+
return C.CString(op.Caption)
|
|
3482
3395
|
}
|
|
3483
3396
|
|
|
3484
|
-
//export
|
|
3485
|
-
func
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3490
|
-
}
|
|
3491
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3397
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3398
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3399
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3400
|
+
op.Caption = C.GoString(val)
|
|
3401
|
+
}
|
|
3492
3402
|
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
C.free(unsafe.Pointer(estr))
|
|
3498
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3499
|
-
}
|
|
3500
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3403
|
+
//export whatsapp_Attachment_Data_Get
|
|
3404
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3405
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3406
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3501
3407
|
}
|
|
3502
3408
|
|
|
3503
|
-
//export
|
|
3504
|
-
func
|
|
3409
|
+
//export whatsapp_Attachment_Data_Set
|
|
3410
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3411
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3412
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
//export whatsapp_Attachment_GetSpec
|
|
3416
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3505
3417
|
_saved_thread := C.PyEval_SaveThread()
|
|
3506
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3418
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3507
3419
|
if __err != nil {
|
|
3508
|
-
return
|
|
3420
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3509
3421
|
}
|
|
3510
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
3422
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3511
3423
|
|
|
3512
3424
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3513
3425
|
if __err != nil {
|
|
3514
3426
|
estr := C.CString(__err.Error())
|
|
3515
3427
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3516
3428
|
C.free(unsafe.Pointer(estr))
|
|
3517
|
-
return
|
|
3429
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3518
3430
|
}
|
|
3519
|
-
return
|
|
3431
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3520
3432
|
}
|
|
3521
3433
|
|
|
3522
|
-
//
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
}
|
|
3529
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3434
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3435
|
+
//
|
|
3436
|
+
//export whatsapp_Presence_CTor
|
|
3437
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3438
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3439
|
+
}
|
|
3530
3440
|
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
C.free(unsafe.Pointer(estr))
|
|
3536
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3537
|
-
}
|
|
3538
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3441
|
+
//export whatsapp_Presence_JID_Get
|
|
3442
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3443
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3444
|
+
return C.CString(op.JID)
|
|
3539
3445
|
}
|
|
3540
3446
|
|
|
3541
|
-
//export
|
|
3542
|
-
func
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
return errorGoToPy(nil)
|
|
3547
|
-
}
|
|
3548
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3447
|
+
//export whatsapp_Presence_JID_Set
|
|
3448
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3449
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3450
|
+
op.JID = C.GoString(val)
|
|
3451
|
+
}
|
|
3549
3452
|
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
return estr
|
|
3555
|
-
}
|
|
3556
|
-
return C.CString("")
|
|
3453
|
+
//export whatsapp_Presence_Kind_Get
|
|
3454
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3455
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3456
|
+
return C.longlong(int(op.Kind))
|
|
3557
3457
|
}
|
|
3558
3458
|
|
|
3559
|
-
//export
|
|
3560
|
-
func
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3565
|
-
}
|
|
3566
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3459
|
+
//export whatsapp_Presence_Kind_Set
|
|
3460
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3461
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3462
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3463
|
+
}
|
|
3567
3464
|
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
C.free(unsafe.Pointer(estr))
|
|
3573
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3574
|
-
}
|
|
3575
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3465
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3466
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3467
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3468
|
+
return C.longlong(op.LastSeen)
|
|
3576
3469
|
}
|
|
3577
3470
|
|
|
3578
|
-
//export
|
|
3579
|
-
func
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
return C.CString("")
|
|
3584
|
-
}
|
|
3585
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3471
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3472
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3473
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3474
|
+
op.LastSeen = int64(val)
|
|
3475
|
+
}
|
|
3586
3476
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
return C.CString("")
|
|
3593
|
-
}
|
|
3594
|
-
return C.CString(cret)
|
|
3477
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
3478
|
+
//
|
|
3479
|
+
//export whatsapp_Preview_CTor
|
|
3480
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
3481
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
3595
3482
|
}
|
|
3596
3483
|
|
|
3597
|
-
//export
|
|
3598
|
-
func
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
return errorGoToPy(nil)
|
|
3603
|
-
}
|
|
3604
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3484
|
+
//export whatsapp_Preview_Kind_Get
|
|
3485
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
3486
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3487
|
+
return C.longlong(int(op.Kind))
|
|
3488
|
+
}
|
|
3605
3489
|
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
return estr
|
|
3611
|
-
}
|
|
3612
|
-
return C.CString("")
|
|
3490
|
+
//export whatsapp_Preview_Kind_Set
|
|
3491
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3492
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3493
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
3613
3494
|
}
|
|
3614
3495
|
|
|
3615
|
-
//export
|
|
3616
|
-
func
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
return errorGoToPy(nil)
|
|
3621
|
-
}
|
|
3622
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3496
|
+
//export whatsapp_Preview_URL_Get
|
|
3497
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
3498
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3499
|
+
return C.CString(op.URL)
|
|
3500
|
+
}
|
|
3623
3501
|
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
return estr
|
|
3629
|
-
}
|
|
3630
|
-
return C.CString("")
|
|
3502
|
+
//export whatsapp_Preview_URL_Set
|
|
3503
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
3504
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3505
|
+
op.URL = C.GoString(val)
|
|
3631
3506
|
}
|
|
3632
3507
|
|
|
3633
|
-
//export
|
|
3634
|
-
func
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3639
|
-
}
|
|
3640
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3508
|
+
//export whatsapp_Preview_Title_Get
|
|
3509
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
3510
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3511
|
+
return C.CString(op.Title)
|
|
3512
|
+
}
|
|
3641
3513
|
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
C.free(unsafe.Pointer(estr))
|
|
3647
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3648
|
-
}
|
|
3649
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3514
|
+
//export whatsapp_Preview_Title_Set
|
|
3515
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
3516
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3517
|
+
op.Title = C.GoString(val)
|
|
3650
3518
|
}
|
|
3651
3519
|
|
|
3652
|
-
//export
|
|
3653
|
-
func
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3658
|
-
}
|
|
3659
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3520
|
+
//export whatsapp_Preview_Description_Get
|
|
3521
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
3522
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3523
|
+
return C.CString(op.Description)
|
|
3524
|
+
}
|
|
3660
3525
|
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
C.free(unsafe.Pointer(estr))
|
|
3666
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3667
|
-
}
|
|
3668
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3526
|
+
//export whatsapp_Preview_Description_Set
|
|
3527
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
3528
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3529
|
+
op.Description = C.GoString(val)
|
|
3669
3530
|
}
|
|
3670
3531
|
|
|
3671
|
-
//export
|
|
3672
|
-
func
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
return errorGoToPy(nil)
|
|
3677
|
-
}
|
|
3678
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3532
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
3533
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
3534
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3535
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
3536
|
+
}
|
|
3679
3537
|
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3538
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
3539
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
3540
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3541
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3545
|
+
//
|
|
3546
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3547
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3548
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3552
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3553
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3554
|
+
return C.CString(op.ID)
|
|
3687
3555
|
}
|
|
3688
3556
|
|
|
3689
|
-
//export
|
|
3690
|
-
func
|
|
3691
|
-
|
|
3557
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3558
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3559
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3560
|
+
op.ID = C.GoString(val)
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
//export whatsapp_LinkedDevice_JID
|
|
3564
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3692
3565
|
_saved_thread := C.PyEval_SaveThread()
|
|
3693
3566
|
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3694
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3567
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3695
3568
|
if __err != nil {
|
|
3696
|
-
return
|
|
3697
|
-
}
|
|
3698
|
-
if boolPyToGo(goRun) {
|
|
3699
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3700
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3701
|
-
return
|
|
3702
|
-
}
|
|
3703
|
-
_gstate := C.PyGILState_Ensure()
|
|
3704
|
-
_fcargs := C.PyTuple_New(2)
|
|
3705
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3706
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3707
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3708
|
-
C.gopy_decref(_fcargs)
|
|
3709
|
-
C.gopy_err_handle()
|
|
3710
|
-
C.PyGILState_Release(_gstate)
|
|
3711
|
-
})
|
|
3712
|
-
} else {
|
|
3713
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3714
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3715
|
-
return
|
|
3716
|
-
}
|
|
3717
|
-
_gstate := C.PyGILState_Ensure()
|
|
3718
|
-
_fcargs := C.PyTuple_New(2)
|
|
3719
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3720
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3721
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3722
|
-
C.gopy_decref(_fcargs)
|
|
3723
|
-
C.gopy_err_handle()
|
|
3724
|
-
C.PyGILState_Release(_gstate)
|
|
3725
|
-
})
|
|
3569
|
+
return handleFromPtr_types_JID(nil)
|
|
3726
3570
|
}
|
|
3571
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3572
|
+
|
|
3573
|
+
return handleFromPtr_types_JID(&cret)
|
|
3727
3574
|
}
|
|
3728
3575
|
|
|
3729
|
-
// --- wrapping struct: whatsapp.
|
|
3576
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
3730
3577
|
//
|
|
3731
|
-
//export
|
|
3732
|
-
func
|
|
3733
|
-
return CGoHandle(
|
|
3578
|
+
//export whatsapp_ChatState_CTor
|
|
3579
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
3580
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3734
3581
|
}
|
|
3735
3582
|
|
|
3736
|
-
//export
|
|
3737
|
-
func
|
|
3738
|
-
op :=
|
|
3739
|
-
return
|
|
3583
|
+
//export whatsapp_ChatState_Kind_Get
|
|
3584
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
3585
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3586
|
+
return C.longlong(int(op.Kind))
|
|
3740
3587
|
}
|
|
3741
3588
|
|
|
3742
|
-
//export
|
|
3743
|
-
func
|
|
3744
|
-
op :=
|
|
3745
|
-
op.
|
|
3589
|
+
//export whatsapp_ChatState_Kind_Set
|
|
3590
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3591
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3592
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
3746
3593
|
}
|
|
3747
3594
|
|
|
3748
|
-
//export
|
|
3749
|
-
func
|
|
3750
|
-
op :=
|
|
3751
|
-
return C.
|
|
3595
|
+
//export whatsapp_ChatState_JID_Get
|
|
3596
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
3597
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3598
|
+
return C.CString(op.JID)
|
|
3752
3599
|
}
|
|
3753
3600
|
|
|
3754
|
-
//export
|
|
3755
|
-
func
|
|
3756
|
-
op :=
|
|
3757
|
-
op.
|
|
3601
|
+
//export whatsapp_ChatState_JID_Set
|
|
3602
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
3603
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3604
|
+
op.JID = C.GoString(val)
|
|
3758
3605
|
}
|
|
3759
3606
|
|
|
3760
|
-
//export
|
|
3761
|
-
func
|
|
3762
|
-
op :=
|
|
3763
|
-
return C.
|
|
3607
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
3608
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3609
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3610
|
+
return C.CString(op.GroupJID)
|
|
3764
3611
|
}
|
|
3765
3612
|
|
|
3766
|
-
//export
|
|
3767
|
-
func
|
|
3768
|
-
op :=
|
|
3769
|
-
op.
|
|
3613
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
3614
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3615
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3616
|
+
op.GroupJID = C.GoString(val)
|
|
3770
3617
|
}
|
|
3771
3618
|
|
|
3772
3619
|
// --- wrapping struct: whatsapp.Connect ---
|
|
@@ -3800,6 +3647,159 @@ func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
|
3800
3647
|
op.Error = C.GoString(val)
|
|
3801
3648
|
}
|
|
3802
3649
|
|
|
3650
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3651
|
+
//
|
|
3652
|
+
//export whatsapp_Poll_CTor
|
|
3653
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3654
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
//export whatsapp_Poll_Title_Get
|
|
3658
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3659
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3660
|
+
return C.CString(op.Title)
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
//export whatsapp_Poll_Title_Set
|
|
3664
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3665
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3666
|
+
op.Title = C.GoString(val)
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
//export whatsapp_Poll_Options_Get
|
|
3670
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3671
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3672
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
//export whatsapp_Poll_Options_Set
|
|
3676
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3677
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3678
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3682
|
+
//
|
|
3683
|
+
//export whatsapp_Receipt_CTor
|
|
3684
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3685
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3689
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3690
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3691
|
+
return C.longlong(int(op.Kind))
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3695
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3696
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3697
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3701
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3702
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3703
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3707
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3708
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3709
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
//export whatsapp_Receipt_JID_Get
|
|
3713
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3714
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3715
|
+
return C.CString(op.JID)
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
//export whatsapp_Receipt_JID_Set
|
|
3719
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3720
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3721
|
+
op.JID = C.GoString(val)
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3725
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3726
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3727
|
+
return C.CString(op.GroupJID)
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3731
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3732
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3733
|
+
op.GroupJID = C.GoString(val)
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3737
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3738
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3739
|
+
return C.longlong(op.Timestamp)
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3743
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3744
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3745
|
+
op.Timestamp = int64(val)
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3749
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3750
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3751
|
+
return boolGoToPy(op.IsCarbon)
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3755
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3756
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3757
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
3761
|
+
//
|
|
3762
|
+
//export whatsapp_Call_CTor
|
|
3763
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
3764
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
//export whatsapp_Call_State_Get
|
|
3768
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3769
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3770
|
+
return C.longlong(int(op.State))
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
//export whatsapp_Call_State_Set
|
|
3774
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3775
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3776
|
+
op.State = whatsapp.CallState(int(val))
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
//export whatsapp_Call_JID_Get
|
|
3780
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3781
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3782
|
+
return C.CString(op.JID)
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
//export whatsapp_Call_JID_Set
|
|
3786
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3787
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3788
|
+
op.JID = C.GoString(val)
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
//export whatsapp_Call_Timestamp_Get
|
|
3792
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3794
|
+
return C.longlong(op.Timestamp)
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
//export whatsapp_Call_Timestamp_Set
|
|
3798
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3800
|
+
op.Timestamp = int64(val)
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
3803
|
// ---- Slices ---
|
|
3804
3804
|
|
|
3805
3805
|
// ---- Maps ---
|