BaseReportStrategy$1.smali

.class Lcom/sandboxol/report/strategy/BaseReportStrategy$1;
.super Ljava/lang/Object;
.source "BaseReportStrategy.java"

# interfaces
.implements Lcom/sandboxol/greendao/a/c;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/report/strategy/BaseReportStrategy;->onLoadData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/sandboxol/greendao/a/c<",
        "Ljava/util/List<",
        "Lcom/sandboxol/greendao/entity/report/NewEventInfoRequest;",
        ">;>;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;


# direct methods
.method constructor <init>(Lcom/sandboxol/report/strategy/BaseReportStrategy;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/sandboxol/greendao/entity/report/NewEvent;Lcom/sandboxol/greendao/entity/report/NewEvent;)I
    .registers 2

    .line 1
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/report/NewEvent;->getWeight()I

    move-result p1

    invoke-virtual {p0}, Lcom/sandboxol/greendao/entity/report/NewEvent;->getWeight()I

    move-result p0

    sub-int/2addr p1, p0

    neg-int p0, p1

    return p0
.end method


# virtual methods
.method public onError(ILjava/lang/String;)V
    .registers 3

    .line 1
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    const/4 p2, 0x1

    # setter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->isInit:Z
    invoke-static {p1, p2}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$202(Lcom/sandboxol/report/strategy/BaseReportStrategy;Z)Z

    return-void
.end method

.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Ljava/util/List;

    invoke-virtual {p0, p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->onSuccess(Ljava/util/List;)V

    return-void
.end method

.method public onSuccess(Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/sandboxol/greendao/entity/report/NewEventInfoRequest;",
            ">;)V"
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
    invoke-static {v0}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$000(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/concurrent/locks/ReentrantReadWriteLock;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V

    .line 3
    iget-object v0, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->eventMaps:Ljava/util/Map;
    invoke-static {v0}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$100(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    .line 4
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_1a
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3d

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/greendao/entity/report/NewEventInfoRequest;

    .line 5
    invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/NewEventInfoRequest;->getEvents()Ljava/util/List;

    move-result-object v1

    sget-object v2, Lcom/sandboxol/report/strategy/a;->a:Lcom/sandboxol/report/strategy/a;

    invoke-static {v1, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 6
    iget-object v1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->eventMaps:Ljava/util/Map;
    invoke-static {v1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$100(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/Map;

    move-result-object v1

    invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/report/NewEventInfoRequest;->getGameId()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1a

    .line 7
    :cond_3d
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
    invoke-static {p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$000(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/concurrent/locks/ReentrantReadWriteLock;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V

    .line 8
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    const/4 v0, 0x1

    # setter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->isInit:Z
    invoke-static {p1, v0}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$202(Lcom/sandboxol/report/strategy/BaseReportStrategy;Z)Z

    .line 9
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->lostAppEvent:Ljava/util/List;
    invoke-static {p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$300(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_81

    .line 10
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->lostAppEvent:Ljava/util/List;
    invoke-static {p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$300(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_66
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_78

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 11
    iget-object v1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    invoke-virtual {v1, v0}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->onAppEvent(Ljava/lang/String;)V

    goto :goto_66

    .line 12
    :cond_78
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->lostAppEvent:Ljava/util/List;
    invoke-static {p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$300(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->clear()V

    .line 13
    :cond_81
    iget-object p1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    # getter for: Lcom/sandboxol/report/strategy/BaseReportStrategy;->lostgameEvent:Ljava/util/Map;
    invoke-static {p1}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->access$400(Lcom/sandboxol/report/strategy/BaseReportStrategy;)Ljava/util/Map;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_8f
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_ad

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 14
    iget-object v1, p0, Lcom/sandboxol/report/strategy/BaseReportStrategy$1;->this$0:Lcom/sandboxol/report/strategy/BaseReportStrategy;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Lcom/sandboxol/report/strategy/BaseReportStrategy;->onGameEvent(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_8f

    :cond_ad
    return-void
.end method