AnalyticsHelper.java 1.47 KB
package com.bitstrips.imoji.analytics;

import android.support.annotation.NonNull;
import com.bitstrips.imoji.util.PreferenceUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class AnalyticsHelper
{
  public static void sendShareEvents(EventAnalyticsService paramEventAnalyticsService, @NonNull String paramString, @NonNull AnalyticsWrapper paramAnalyticsWrapper, PreferenceUtils paramPreferenceUtils, Category paramCategory, Action paramAction)
  {
    Date localDate = new Date();
    if (new SimpleDateFormat("yyyy-MM-dd", Locale.US).format(localDate).equals(paramPreferenceUtils.getString(2131231233, "")))
    {
      paramEventAnalyticsService.sendEvent(Category.SHARE_FIRST_DAY, Action.SHARE);
      paramPreferenceUtils.putString(2131231233, "Shared on First Day Analytics event already sent");
    }
    paramAnalyticsWrapper.setShareTo(paramString);
    paramEventAnalyticsService.sendEvent(paramCategory, paramAction, paramAnalyticsWrapper);
  }
  
  public static void sendTileClickEvent(EventAnalyticsService paramEventAnalyticsService, String paramString, int paramInt)
  {
    paramEventAnalyticsService.sendEvent(Category.CLICK, Action.SEARCH, new AnalyticsWrapper().labelForSearchSubmit(paramString, paramInt));
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/analytics/AnalyticsHelper.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */