mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import apps from './apps';
|
|
|
|
export function sendMessage(app: string, method: string, data: any): void {
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore
|
|
return SendNUIMessage({
|
|
app,
|
|
method,
|
|
data,
|
|
});
|
|
}
|
|
|
|
export function sendTwitterMessage(method: string, data: any = {}): void {
|
|
return sendMessage(apps.TWITTER, method, data);
|
|
}
|
|
|
|
export function sendMessageEvent(method: string, data: any = {}): void {
|
|
return sendMessage(apps.MESSAGES, method, data);
|
|
}
|
|
|
|
export function sendNotesEvent(method: string, data: any = {}): void {
|
|
return sendMessage(apps.NOTES, method, data);
|
|
}
|
|
|
|
export function sendMarketplaceEvent(method: string, data: any = {}): void {
|
|
sendMessage(apps.MARKETPLACE, method, data);
|
|
}
|
|
|
|
export function sendContactsEvent(method: string, data: any = {}): void {
|
|
sendMessage(apps.CONTACTS, method, data);
|
|
}
|
|
|
|
export function sendCameraEvent(method: string, data: any = {}): void {
|
|
sendMessage(apps.CAMERA, method, data);
|
|
}
|
|
|
|
export function sendMatchEvent(method: string, data: any = {}): void {
|
|
return sendMessage(apps.MATCH, method, data);
|
|
}
|