a.java 1.53 KB
package com.instabug.library.e.a;

import android.content.Context;
import com.instabug.library.e.c.a;
import com.instabug.library.e.c.b;
import com.instabug.library.e.c.d;
import com.instabug.library.e.d;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.IOException;
import org.json.JSONException;
import rx.Observable;
import rx.Subscriber;

public class a
{
  private static a a;
  private com.instabug.library.e.a b = new com.instabug.library.e.a();
  
  public static a a()
  {
    if (a == null) {
      a = new a();
    }
    return a;
  }
  
  public void a(Context paramContext, final c.a<String, Throwable> parama)
    throws JSONException, IOException
  {
    InstabugSDKLogger.d(this, "Getting enabled features for this application");
    paramContext = this.b.a(paramContext, c.b.d, c.d.a);
    this.b.a(paramContext).subscribe(new Subscriber()
    {
      public final void onCompleted()
      {
        InstabugSDKLogger.d(this, "getAppFeatures request completed");
      }
      
      public final void onError(Throwable paramAnonymousThrowable)
      {
        InstabugSDKLogger.d(this, "getAppFeatures request got error: " + paramAnonymousThrowable.getMessage());
        parama.a(paramAnonymousThrowable);
      }
      
      public final void onStart()
      {
        InstabugSDKLogger.d(this, "getAppFeatures request started");
      }
    });
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/e/a/a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */