f.java
2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.instabug.library.e.a;
import android.content.Context;
import com.instabug.library.Instabug;
import com.instabug.library.e.c;
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.internal.a.b;
import com.instabug.library.model.j;
import com.instabug.library.util.InstabugSDKLogger;
import java.io.IOException;
import org.json.JSONException;
import rx.Observable;
import rx.Subscriber;
public class f
{
private static f a;
private com.instabug.library.e.a b = new com.instabug.library.e.a();
public static f a()
{
if (a == null) {
a = new f();
}
return a;
}
public void a(Context paramContext, j paramj, final c.a<Boolean, Throwable> parama)
throws JSONException, IOException
{
InstabugSDKLogger.d(this, "Sending session");
b localb = new com.instabug.library.internal.module.a().a(paramContext);
paramContext = this.b.a(paramContext, c.b.e, c.d.b);
paramContext.a("device", localb.a()).a("os", "SDK Level " + Integer.toString(localb.b())).a("app_version", localb.j()).a("bundle_id", localb.k()).a("sdk_version", "2.6.2").a("email", Instabug.getUserEmail()).a("name", Instabug.getUsername()).a("started_at", paramj.b()).a("duration", Long.valueOf(paramj.c()));
if (paramj.a() != -1) {
paramContext.a("session_number", Integer.valueOf(paramj.a()));
}
this.b.a(paramContext).subscribe(new Subscriber()
{
public final void onCompleted()
{
InstabugSDKLogger.d(this, "sendSession request completed");
}
public final void onError(Throwable paramAnonymousThrowable)
{
InstabugSDKLogger.d(this, "sendSession request got error: " + paramAnonymousThrowable.getMessage());
parama.a(paramAnonymousThrowable);
}
public final void onStart()
{
InstabugSDKLogger.d(this, "sendSession request started");
}
});
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/e/a/f.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/