newIncomingMessage(message) { Dispatcher.dispatch({ type: Constants.ChatActions.CHAT_NEW_INCOMING_MESSAGE, message }); }
API.deleteThread(threadID) .then(() => { AppDispatcher.dispatch({ type: ActionTypes.THREAD_DELETED, threadID: threadID }); }) .catch((err) => { });
AppDispatcher.dispatch({ type: SocialConstants.SYNC_TWEETS, tweets: json.map((tweet) => { return assign(tweet, {type: 'tweet'}) }), receivedAt: Date.now() });
init(friends) { Dispatcher.dispatch({ type: Constants.FriendsActions.FRIENDS_INIT, friends }); }
updateTradeOfferCount(count) { Dispatcher.dispatch({ type: Constants.NotificationActions.NOTIFICATION_UPDATE_TRADEOFFER_COUNT, count }); }
aboutStates(a){ return function () { AppDispatcher.dispatch({ type: MenuActionTypes.MENU_MODAL_ABOUT, data: a }); } }
onOpenChooseColor(event){ AppDispatcher.dispatch({ type: MenuActionTypes.GAME_OPEN_CHOOSE_COLOR }); }
closeUnoing(){ AppDispatcher.dispatch({ type: MenuActionTypes.GAME_CLOSE_UNOING }); }
echoMessage(message) { Dispatcher.dispatch({ type: Constants.ChatActions.CHAT_ECHO_MESSAGE, message }); }
unblock(friend) { Dispatcher.dispatch({ type: Constants.FriendsActions.FRIENDS_UNBLOCK, friend }); }
addRoom(data){ AppDispatcher.dispatch({ type: MenuActionTypes.ROOMS_LIST_ADD, data }); }
destroy(id){ AppDispatcher.dispatch({ actionType: TodoConstants.TODO_DESTROY, id : id }) }
respondToTradeRequest(chat, message, response) { Dispatcher.dispatch({ type: Constants.ChatActions.CHAT_RESPOND_TO_TRADE_REQUEST, chat, message, response }); }
purge(id) { Dispatcher.dispatch({ type: Constants.FriendsActions.FRIENDS_PURGE, id }); }
function receiveTweet(tweet) { var action = { type: 'receive_tweet', tweet: tweet }; AppDispatcher.dispatch(action); }