DeviceFeature2_5.java 3.8 KB
package com.arellomobile.android.push;

import android.content.Context;
import android.location.Location;
import com.arellomobile.android.push.data.PushZoneLocation;
import com.arellomobile.android.push.request.AppOpenRequest;
import com.arellomobile.android.push.request.AppRemovedRequest;
import com.arellomobile.android.push.request.ApplicationEventRequest;
import com.arellomobile.android.push.request.GetBeaconsRequest;
import com.arellomobile.android.push.request.GetNearestZoneRequest;
import com.arellomobile.android.push.request.GetTagsRequest;
import com.arellomobile.android.push.request.MessageDeliveredRequest;
import com.arellomobile.android.push.request.ProcessBeaconRequest;
import com.arellomobile.android.push.request.PushStatRequest;
import com.arellomobile.android.push.request.RequestManager;
import com.arellomobile.android.push.request.SetTagsRequest;
import com.arellomobile.android.push.request.TrackInAppRequest;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;

public class DeviceFeature2_5
{
  public static JSONObject getBeacons(Context paramContext)
    throws Exception
  {
    GetBeaconsRequest localGetBeaconsRequest = new GetBeaconsRequest();
    RequestManager.sendRequest(paramContext, localGetBeaconsRequest);
    return localGetBeaconsRequest.getResponse();
  }
  
  public static PushZoneLocation getNearestZone(Context paramContext, Location paramLocation)
    throws Exception
  {
    paramLocation = new GetNearestZoneRequest(paramLocation);
    RequestManager.sendRequest(paramContext, paramLocation);
    return paramLocation.getNearestLocation();
  }
  
  public static Map<String, Object> getTags(Context paramContext)
    throws Exception
  {
    GetTagsRequest localGetTagsRequest = new GetTagsRequest();
    RequestManager.sendRequest(paramContext, localGetTagsRequest);
    return localGetTagsRequest.getTags();
  }
  
  public static void processBeacon(Context paramContext, String paramString1, String paramString2, String paramString3, String paramString4)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new ProcessBeaconRequest(paramString1, paramString2, paramString3, paramString4));
  }
  
  public static void sendAppOpen(Context paramContext)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new AppOpenRequest());
  }
  
  public static void sendAppRemovedData(Context paramContext, String paramString)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new AppRemovedRequest(paramString));
  }
  
  public static void sendGoalAchieved(Context paramContext, String paramString, Integer paramInteger)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new ApplicationEventRequest(paramString, paramInteger));
  }
  
  public static void sendMessageDeliveryEvent(Context paramContext, String paramString)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new MessageDeliveredRequest(paramString));
  }
  
  public static void sendPushStat(Context paramContext, String paramString)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new PushStatRequest(paramString));
  }
  
  public static JSONArray sendTags(Context paramContext, Map<String, Object> paramMap)
    throws Exception
  {
    paramMap = new SetTagsRequest(paramMap);
    RequestManager.sendRequest(paramContext, paramMap);
    return paramMap.getSkippedTags();
  }
  
  public static void trackInAppRequest(Context paramContext, String paramString1, String paramString2, long paramLong)
    throws Exception
  {
    RequestManager.sendRequest(paramContext, new TrackInAppRequest(paramString1, paramString2, paramLong));
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/arellomobile/android/push/DeviceFeature2_5.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */