add retweet operation statistic

add usage statistic operation when user retweet some tweet
This commit is contained in:
Denny C. Ng 2015-03-11 15:39:47 +01:00
parent 880deb116b
commit b0d17af775
1 changed files with 6 additions and 0 deletions

View File

@ -2328,6 +2328,12 @@ public class AsyncTwitterWrapper extends TwitterWrapper {
}
final Bus bus = TwidereApplication.getInstance(mContext).getMessageBus();
bus.post(new StatusRetweetedEvent(status));
//spice
SpiceProfilingUtil.log(getContext(),status.id + ",Retweet," + account_id + ","
+ status.user_id + "," + status.reply_count + "," + status.retweet_count + "," + status.favorite_count);
SpiceProfilingUtil.profile(getContext(), account_id, status.id + ",Retweet," + account_id + ","
+ status.user_id + "," + status.reply_count + "," + status.retweet_count + "," + status.favorite_count);
//end
mMessagesManager.showOkMessage(R.string.status_retweeted, false);
} else {
mMessagesManager.showErrorMessage(R.string.action_retweeting, result.getException(), true);