.class public final Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1; .super Ljava/lang/Object; .source "WidgetChatListAdapterItemUploadProgress.kt" # interfaces .implements Ll0/k/b; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->get(Ljava/lang/String;J)Lrx/Observable; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Ll0/k/b<", "Lcom/discord/stores/StoreMessageUploads$MessageUploadState;", "Lrx/Observable<", "+", "Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model;", ">;>;" } .end annotation # instance fields .field public final synthetic $throttleIntervalMs:J # direct methods .method public constructor (J)V .locals 0 iput-wide p1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1;->$throttleIntervalMs:J invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object; .locals 0 check-cast p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState; invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1;->call(Lcom/discord/stores/StoreMessageUploads$MessageUploadState;)Lrx/Observable; move-result-object p1 return-object p1 .end method .method public final call(Lcom/discord/stores/StoreMessageUploads$MessageUploadState;)Lrx/Observable; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/discord/stores/StoreMessageUploads$MessageUploadState;", ")", "Lrx/Observable<", "+", "Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model;", ">;" } .end annotation instance-of v0, p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$None; if-eqz v0, :cond_0 sget-object p1, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model$None;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model$None; new-instance v0, Ll0/l/e/j; invoke-direct {v0, p1}, Ll0/l/e/j;->(Ljava/lang/Object;)V goto :goto_0 :cond_0 instance-of v0, p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Preprocessing; if-eqz v0, :cond_1 new-instance v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model$Preprocessing; check-cast p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Preprocessing; invoke-virtual {p1}, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Preprocessing;->getNumFiles()I move-result v1 invoke-virtual {p1}, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Preprocessing;->getDisplayName()Ljava/lang/String; move-result-object v2 invoke-virtual {p1}, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Preprocessing;->getMimeType()Ljava/lang/String; move-result-object p1 invoke-direct {v0, v1, v2, p1}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$Model$Preprocessing;->(ILjava/lang/String;Ljava/lang/String;)V new-instance p1, Ll0/l/e/j; invoke-direct {p1, v0}, Ll0/l/e/j;->(Ljava/lang/Object;)V move-object v0, p1 goto :goto_0 :cond_1 instance-of v0, p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Uploading; if-eqz v0, :cond_4 check-cast p1, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Uploading; invoke-virtual {p1}, Lcom/discord/stores/StoreMessageUploads$MessageUploadState$Uploading;->getUploads()Ljava/util/List; move-result-object p1 invoke-interface {p1}, Ljava/util/List;->size()I move-result v0 const/4 v1, 0x1 if-ne v0, v1, :cond_2 sget-object v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider; invoke-static {p1}, Lc0/i/f;->first(Ljava/util/List;)Ljava/lang/Object; move-result-object p1 check-cast p1, Lcom/discord/utilities/rest/SendUtils$FileUpload; iget-wide v1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1;->$throttleIntervalMs:J invoke-static {v0, p1, v1, v2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->access$getSingleUploadObservable(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;Lcom/discord/utilities/rest/SendUtils$FileUpload;J)Lrx/Observable; move-result-object v0 goto :goto_0 :cond_2 invoke-interface {p1}, Ljava/util/List;->size()I move-result v0 const/4 v1, 0x3 if-gt v0, v1, :cond_3 sget-object v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider; iget-wide v1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1;->$throttleIntervalMs:J invoke-static {v0, p1, v1, v2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->access$getFewUploadsObservable(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;Ljava/util/List;J)Lrx/Observable; move-result-object v0 goto :goto_0 :cond_3 sget-object v0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->INSTANCE:Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider; iget-wide v1, p0, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider$get$1;->$throttleIntervalMs:J invoke-static {v0, p1, v1, v2}, Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;->access$getManyUploadsObservable(Lcom/discord/widgets/chat/list/WidgetChatListAdapterItemUploadProgress$ModelProvider;Ljava/util/List;J)Lrx/Observable; move-result-object v0 :goto_0 return-object v0 :cond_4 new-instance p1, Lkotlin/NoWhenBranchMatchedException; invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;->()V throw p1 .end method