TeamModel$3.smali

.class Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;
.super Ljava/lang/Object;
.source "TeamModel.java"

# interfaces
.implements Lrx/functions/Action1;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->initMessenger()V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lrx/functions/Action1<",
        "Lcom/sandboxol/imchat/entity/PartyModifyPositionInfo;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;


# direct methods
.method constructor <init>(Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;->this$0:Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;

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

    return-void
.end method

.method static synthetic a(Ljava/lang/Throwable;)V
    .registers 1

    .line 11
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    return-void
.end method


# virtual methods
.method public synthetic a(Lcom/sandboxol/greendao/entity/TeamMember;)V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;->this$0:Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;

    iget-object v0, v0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->modifyPositionMemberList:Ljava/util/List;

    .line 2
    invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember;->newBuilder()Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 3
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getPosition()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setPosition(I)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 4
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getPicUrl()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setPicurl(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 5
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getUserId()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setUserid(J)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 6
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setUsername(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 7
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getAvatarFrame()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setAvatarFrame(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object v1

    .line 8
    invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getColorfulNickName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;->setColorfulNickName(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember$Builder;

    move-result-object p1

    .line 9
    invoke-virtual {p1}, Lcom/google/protobuf/GeneratedMessageLite$a;->build()Lcom/google/protobuf/GeneratedMessageLite;

    move-result-object p1

    .line 10
    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public call(Lcom/sandboxol/imchat/entity/PartyModifyPositionInfo;)V
    .registers 4

    .line 2
    iget-object v0, p0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;->this$0:Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;

    iget-object v0, v0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->modifyPositionMemberList:Ljava/util/List;

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

    .line 3
    invoke-virtual {p1}, Lcom/sandboxol/imchat/entity/PartyModifyPositionInfo;->getModifyPositionMemberList()Ljava/util/List;

    move-result-object p1

    invoke-static {p1}, Lrx/Observable;->from(Ljava/lang/Iterable;)Lrx/Observable;

    move-result-object p1

    new-instance v0, Lcom/sandboxol/imchat/ui/fragment/team/d;

    invoke-direct {v0, p0}, Lcom/sandboxol/imchat/ui/fragment/team/d;-><init>(Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;)V

    sget-object v1, Lcom/sandboxol/imchat/ui/fragment/team/c;->a:Lcom/sandboxol/imchat/ui/fragment/team/c;

    invoke-virtual {p1, v0, v1}, Lrx/Observable;->subscribe(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;

    .line 4
    iget-object p1, p0, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;->this$0:Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;

    iget-object v0, p1, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->modifyPositionMemberList:Ljava/util/List;

    # invokes: Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->syncMembers(Ljava/util/List;)V
    invoke-static {p1, v0}, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;->access$200(Lcom/sandboxol/imchat/ui/fragment/team/TeamModel;Ljava/util/List;)V

    return-void
.end method

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

    .line 1
    check-cast p1, Lcom/sandboxol/imchat/entity/PartyModifyPositionInfo;

    invoke-virtual {p0, p1}, Lcom/sandboxol/imchat/ui/fragment/team/TeamModel$3;->call(Lcom/sandboxol/imchat/entity/PartyModifyPositionInfo;)V

    return-void
.end method