b.smali
.class public final Lpe/b;
.super Ljava/lang/Object;
.source "DBChatMessage.kt"
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public static final a(Lpe/a;)Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption;
.registers 5
const/4 v0, 0x0
:try_start_1
invoke-virtual {p0}, Lpe/a;->c()[B
move-result-object p0
if-eqz p0, :cond_1c
sget-object v1, Lfc/d;->f:Lfc/d;
invoke-virtual {v1}, Lfc/d;->a()Lcom/squareup/wire/Wire;
move-result-object v1
array-length v2, p0
const-class v3, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption;
invoke-virtual {v1, p0, v0, v2, v3}, Lcom/squareup/wire/Wire;->parseFrom([BIILjava/lang/Class;)Lcom/squareup/wire/Message;
move-result-object p0
const-string v1, "WIRE.parseFrom(sendOpt, \u2026atSendOption::class.java)"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption;
goto :goto_42
:cond_1c
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v1, "sendOpt is null"
invoke-direct {p0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_24
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_24} :catch_24
:catch_24
new-instance p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;
invoke-direct {p0}, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;-><init>()V
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {p0, v1}, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;->force_send_cancelorder_warning(Ljava/lang/Boolean;)Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;
move-result-object p0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;->comply_cancelorder_warning(Ljava/lang/Boolean;)Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;
move-result-object p0
invoke-virtual {p0}, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption$Builder;->build()Lcom/shopee/foody/driver/im/business/network/model/proto/ChatSendOption;
move-result-object p0
const-string v0, "ChatSendOption.Builder()\u2026lse)\n .build()"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:goto_42
return-object p0
.end method
.method public static final b(Lpe/a;)Z
.registers 2
invoke-virtual {p0}, Lpe/a;->z()I
move-result p0
const/4 v0, 0x1
if-ne p0, v0, :cond_8
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public static final c(Lpe/a;)Z
.registers 1
invoke-virtual {p0}, Lpe/a;->z()I
move-result p0
if-nez p0, :cond_8
const/4 p0, 0x1
goto :goto_9
:cond_8
const/4 p0, 0x0
:goto_9
return p0
.end method