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