package com.ss.android.ugc.aweme.compliance.privacy.settings.account.pages.favorites;

import X.AnonymousClass2GO;
import X.AnonymousClass2UX;
import X.C12422nK;
import X.C39523pw;
import X.C39753qJ;
import X.C39783qM;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.base.api.BaseResponse;
import com.ss.android.ugc.aweme.compliance.privacy.settings.account.pages.BasePrivacyUserSettingViewModelV2;

public final class FavoriteViewModel extends BasePrivacyUserSettingViewModelV2 implements AnonymousClass2GO {
    public static final C39783qM LIZ = new C39783qM((byte) 0);

    static {
        Covode.recordClassIndex(61720);
    }

    public final /* bridge */ /* synthetic */ C39753qJ LIZ() {
        return C39523pw.LIZ;
    }

    public final void LIZ(int i, BaseResponse baseResponse) {
        String str;
        M12.LIZ(baseResponse);
        super.LIZ(i, baseResponse);
        M12.LIZ("favorite_permission");
        AnonymousClass2UX r2 = new AnonymousClass2UX();
        r2.LIZ("enter_from", "favorite_permission");
        if (i == 2) {
            str = "off";
        } else {
            str = "on";
        }
        r2.LIZ("to_status", str);
        C12422nK.LIZ("change_favorites_notify_permission", r2.LIZ);
    }
}
