mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working client/server intaction
This commit is contained in:
1 parent
c19d0ee3aa
commit
2920267ef3
8 files changed
+99
-58
No files matched your search
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
TWITTER: 'TWITTER',
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
TWITTER_FETCH_TWEETS: 'phone:fetchTweets',
|
||||
TWITTER_FETCH_TWEETS_SUCCESS: 'fetchTweets',
|
||||
TWITTER_FETCH_TWEETS_FAILURE: 'fetchTweetsFailed',
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import apps from './apps';
|
||||
|
||||
function sendMessage(app: string, method: string, data: any) {
|
||||
return SendNuiMessage(JSON.stringify({
|
||||
app,
|
||||
method,
|
||||
data,
|
||||
}))
|
||||
}
|
||||
|
||||
export function sendTwitterMessage(method: string, data: any = {}) {
|
||||
return sendMessage(apps.TWITTER, method, data);
|
||||
}
|
||||
Reference in new issue
Block a user