c.smali

.class public Lke/c;
.super Ljava/lang/Object;
.source "DataMapper.java"


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method public static a(Ljava/lang/Integer;)I
    .registers 1

    if-nez p0, :cond_4

    const/4 p0, -0x1

    return p0

    :cond_4
    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result p0

    return p0
.end method

.method public static a(Ljava/lang/Long;)J
    .registers 3

    if-nez p0, :cond_5

    const-wide/16 v0, -0x1

    return-wide v0

    :cond_5
    invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    return-wide v0
.end method

.method public static a(Ljava/lang/String;)Ljava/lang/String;
    .registers 1

    if-nez p0, :cond_4

    const-string p0, ""

    :cond_4
    return-object p0
.end method

.method public static a(Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;)Lpe/a;
    .registers 6

    new-instance v0, Lpe/a;

    invoke-direct {v0}, Lpe/a;-><init>()V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->msgid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->d(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->chatid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->a(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->itemid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->c(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->type:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->i(I)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->content:Lokio/ByteString;

    invoke-static {v1}, Lke/c;->a(Lokio/ByteString;)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lpe/a;->a([B)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->from_userid:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->b(I)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->to_userid:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->h(I)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->shopid:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->f(I)V

    invoke-virtual {v0}, Lpe/a;->u()I

    move-result v1

    if-gtz v1, :cond_5c

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->sender_shop_id:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->f(I)V

    :cond_5c
    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->timestamp:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    int-to-long v1, v1

    const-wide/16 v3, 0x3e8

    mul-long v1, v1, v3

    invoke-virtual {v0, v1, v2}, Lpe/a;->h(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->modelid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->e(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->pchatid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->g(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->text_content:Ljava/lang/String;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lpe/a;->d(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->orderid:Ljava/lang/Long;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->f(J)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->opt:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->e(I)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->msg_src:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->d(I)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->crm_activity_id:Ljava/lang/String;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lpe/a;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->unsupported_message_text:Lcom/shopee/foody/driver/im/business/network/model/proto/ChatGeneralText;

    if-eqz v1, :cond_b4

    invoke-virtual {v1}, Lcom/squareup/wire/Message;->toByteArray()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Lpe/a;->b([B)V

    :cond_b4
    iget-object v1, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->biz_id:Ljava/lang/Integer;

    invoke-static {v1}, Lke/c;->a(Ljava/lang/Integer;)I

    move-result v1

    invoke-virtual {v0, v1}, Lpe/a;->a(I)V

    iget-object p0, p0, Lcom/shopee/foody/driver/im/business/network/model/proto/ChatMsg;->conversation_id:Ljava/lang/Long;

    invoke-static {p0}, Lke/c;->a(Ljava/lang/Long;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lpe/a;->b(J)V

    return-object v0
.end method

.method public static a(Lokio/ByteString;)[B
    .registers 1

    if-nez p0, :cond_6

    const/4 p0, 0x0

    new-array p0, p0, [B

    return-object p0

    :cond_6
    invoke-virtual {p0}, Lokio/ByteString;->toByteArray()[B

    move-result-object p0

    return-object p0
.end method