package com.ss.android.ugc.aweme.im.sdk.common.controller.providedservices;

import X.C1130Id7;
import X.C1596Ikd;
import X.C2177Iu0;
import X.C2190IuD;
import X.IBA;
import X.J7F;
import X.LsC;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.im.sdk.chat.data.model.BaseContent;
import com.ss.android.ugc.aweme.im.sdk.chat.data.model.TextContent;
import com.ss.android.ugc.aweme.im.sdk.chat.feature.reply.feature.feed.DetailFeedKeyboardDialogFragment;
import com.ss.android.ugc.aweme.im.service.model.IMContact;
import com.ss.android.ugc.aweme.sharer.ui.SharePackage;
import java.util.Arrays;
import java.util.List;

public final class IMService$showFeedDMFragment$2 implements C1596Ikd {
    public final /* synthetic */ Aweme $aweme;
    public final /* synthetic */ String $currentPage;
    public final /* synthetic */ DetailFeedKeyboardDialogFragment $fragment;
    public final /* synthetic */ LsC $submitCallback;

    static {
        Covode.recordClassIndex(86066);
    }

    public final void sendMessage(CharSequence charSequence) {
        if (charSequence != null) {
            this.$fragment.dismiss();
            String obj = charSequence.toString();
            Aweme aweme = this.$aweme;
            String str = this.$currentPage;
            IMService$showFeedDMFragment$2$sendMessage$$inlined$let$lambda$1 iMService$showFeedDMFragment$2$sendMessage$$inlined$let$lambda$1 = new IMService$showFeedDMFragment$2$sendMessage$$inlined$let$lambda$1(this, charSequence);
            String LIZ = C1130Id7.LIZ();
            List asList = Arrays.asList(new IMContact[]{IBA.LIZ(aweme.getAuthorUid(), aweme.getSecAuthorUid())});
            J7F j7f = new J7F();
            j7f.LIZ("text");
            j7f.LIZ("key_enter_from", str);
            j7f.LIZ("enter_method", "head_icon");
            j7f.LIZ("aid", aweme.getAid());
            C2177Iu0.LIZ((List<IMContact>) asList, "", new SharePackage(j7f), (BaseContent) TextContent.obtain(obj, aweme), LIZ, (String) null, (C2190IuD) iMService$showFeedDMFragment$2$sendMessage$$inlined$let$lambda$1);
        }
    }

    public IMService$showFeedDMFragment$2(DetailFeedKeyboardDialogFragment detailFeedKeyboardDialogFragment, Aweme aweme, String str, LsC lsC) {
        this.$fragment = detailFeedKeyboardDialogFragment;
        this.$aweme = aweme;
        this.$currentPage = str;
        this.$submitCallback = lsC;
    }
}
