package com.bytedance.android.livesdkapi.depend.model.live;

import X.0SJ;
import X.0SP;
import X.0SQ;
import com.bytedance.android.live.base.model._ImageModel_ProtoDecoder;
import com.bytedance.android.live.base.model.user._User_ProtoDecoder;
import com.bytedance.android.livesdk.livesetting.other.subscribe_enhance.SubscriptionExpireRemindHourSetting;
import com.bytedance.android.livesdk.livesetting.wallet.LiveRechargeAgeThresholdSetting;
import com.bytedance.android.livesdk.model._Hashtag_ProtoDecoder;
import com.bytedance.android.livesdk.model._InteractionQuestionInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._LikeInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._LiveEventInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._MaskLayer_ProtoDecoder;
import com.bytedance.android.livesdk.model._OfficialChannelInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._PollInfo_ProtoDecoder;
import com.bytedance.android.livesdk.model._RoomAuthMessage_ProtoDecoder;
import com.bytedance.android.livesdk.model._RoomAuthStatus_ProtoDecoder;
import com.bytedance.android.livesdk.model._RoomDecoration_ProtoDecoder;
import com.bytedance.android.livesdk.model._RoomStats_ProtoDecoder;
import com.bytedance.android.livesdk.model._RoomSticker_ProtoDecoder;
import com.bytedance.android.livesdk.model._ShareShowTime_ProtoDecoder;
import com.bytedance.android.livesdk.model._ShortTouchItem_ProtoDecoder;
import com.bytedance.android.livesdk.model._TopFanTicket_ProtoDecoder;
import com.bytedance.android.livesdk.model._WarningTag_ProtoDecoder;
import com.bytedance.android.livesdk.model.linkSetting._MultiLiveUserSettings_ProtoDecoder;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;

public final class _Room_ProtoDecoder implements 0SJ<Room> {
    static {
        Covode.recordClassIndex(22299);
    }

    public final /* synthetic */ Object LIZIZ(0SP r2) {
        return LIZ(r2);
    }

    public static Room LIZ(0SP r7) {
        Room room = new Room();
        room.decorationList = new ArrayList();
        room.feedRoomLabelList = new ArrayList();
        room.topFanTickets = new ArrayList();
        room.mIndicators = new ArrayList();
        room.shortTouchItems = new ArrayList();
        room.roomStickerList = new ArrayList();
        room.filterRule = new ArrayList();
        long LIZ = r7.LIZ();
        while (true) {
            int LIZIZ = r7.LIZIZ();
            if (LIZIZ == -1) {
                r7.LIZ(LIZ);
                room.init();
                return room;
            } else if (LIZIZ == 1) {
                room.id = 0SQ.LIZIZ(r7);
            } else if (LIZIZ == 2) {
                room.idStr = r7.LIZLLL();
            } else if (LIZIZ == 3) {
                room.status = (int) 0SQ.LIZIZ(r7);
            } else if (LIZIZ == 4) {
                room.ownerUserId = 0SQ.LIZIZ(r7);
            } else if (LIZIZ == 5) {
                room.title = r7.LIZLLL();
            } else if (LIZIZ != 6) {
                if (LIZIZ != 7) {
                    if (LIZIZ == 28) {
                        room.streamUrl = _StreamUrl_ProtoDecoder.LIZ(r7);
                    } else if (LIZIZ == 29) {
                        room.mosaicStatus = (int) 0SQ.LIZIZ(r7);
                    } else if (LIZIZ == 42) {
                        room.feedRoomLabel = _ImageModel_ProtoDecoder.LIZ(r7);
                    } else if (LIZIZ == 43) {
                        room.labels = r7.LIZLLL();
                    } else if (LIZIZ == 83) {
                        room.background = _ImageModel_ProtoDecoder.LIZ(r7);
                    } else if (LIZIZ == 84) {
                        room.layout = 0SQ.LIZIZ(r7);
                    } else if (LIZIZ == 90) {
                        room.unusedEffect = 0SQ.LIZ(r7);
                    } else if (LIZIZ == 91) {
                        room.giftMessageStyle = (int) 0SQ.LIZIZ(r7);
                    } else if (LIZIZ == 138) {
                        room.webcastSdkVersion = 0SQ.LIZIZ(r7);
                    } else if (LIZIZ != 139) {
                        switch (LIZIZ) {
                            case 7:
                                break;
                            case 9:
                                room.finishTime = 0SQ.LIZIZ(r7);
                                continue;
                            case 32:
                                room.linkMicInfoGson = _RoomLinkInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 46:
                                room.owner = _User_ProtoDecoder.LIZ(r7);
                                continue;
                            case 48:
                                room.hasCommerceGoods = 0SQ.LIZ(r7);
                                continue;
                            case SubscriptionExpireRemindHourSetting.DEFAULT:
                                room.mRoomAuthStatus = _RoomAuthStatus_ProtoDecoder.LIZ(r7);
                                continue;
                            case 93:
                                room.finish_url = r7.LIZLLL();
                                continue;
                            case 101:
                                room.roomLayout = (int) 0SQ.LIZIZ(r7);
                                continue;
                            case 111:
                                room.likeCount = 0SQ.LIZIZ(r7);
                                continue;
                            case 120:
                                room.anchorTabType = (long) r7.LJ();
                                continue;
                            case 122:
                                room.officialChannelInfo = _OfficialChannelInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 145:
                                room.commerceStruct = _CommerceStruct_ProtoDecoder.LIZ(r7);
                                continue;
                            case 147:
                                room.streamCover = _ImageModel_ProtoDecoder.LIZ(r7);
                                continue;
                            case 149:
                                room.questionVersion = r7.LJ();
                                continue;
                            case 151:
                                room.liveEventInfo = _LiveEventInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 152:
                                room.hashtag = _Hashtag_ProtoDecoder.LIZ(r7);
                                continue;
                            case 153:
                                room.baLinkStruct = _BALinkStruct_ProtoDecoder.LIZ(r7);
                                continue;
                            case 155:
                                room.answeringQuestion = r7.LIZLLL();
                                continue;
                            case 157:
                                room.warningTag = _WarningTag_ProtoDecoder.LIZ(r7);
                                continue;
                            case 158:
                                room.maskLayer = _MaskLayer_ProtoDecoder.LIZ(r7);
                                continue;
                            case 159:
                                room.liveRoomMode = r7.LJ();
                                continue;
                            case 163:
                                room.finishUrlLynx = r7.LIZLLL();
                                continue;
                            case 165:
                                room.likeInfo = _LikeInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 166:
                                room.shortTouchItems.add(_ShortTouchItem_ProtoDecoder.LIZ(r7));
                                continue;
                            case 167:
                                room.filterRule.add(_LiveFilterMsgRule_ProtoDecoder.LIZ(r7));
                                continue;
                            case 169:
                                room.mBoostCardRoomStatus = _LiveGiftBoostCardRoomStatus_ProtoDecoder.LIZ(r7);
                                continue;
                            case 170:
                                room.feedRoomLabelList.add(_FeedRoomLabel_ProtoDecoder.LIZ(r7));
                                continue;
                            case 172:
                                room.haveWishList = 0SQ.LIZ(r7);
                                continue;
                            case 174:
                                room.multiLiveUserSettings = _MultiLiveUserSettings_ProtoDecoder.LIZ(r7);
                                continue;
                            case 176:
                                room.interactionQuestion = _InteractionQuestionInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 177:
                                room.roomStickerList.add(_RoomSticker_ProtoDecoder.LIZ(r7));
                                continue;
                            case 179:
                                room.advancedPollInfo = _PollInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 180:
                                room.giftPollVoteEnabled = 0SQ.LIZ(r7);
                                continue;
                            case 181:
                                room.shareShowTime = _ShareShowTime_ProtoDecoder.LIZ(r7);
                                continue;
                            case 182:
                                room.skin = _Skin_ProtoDecoder.LIZ(r7);
                                continue;
                            case 183:
                                room.squareCoverImg = _ImageModel_ProtoDecoder.LIZ(r7);
                                continue;
                            case 184:
                                room.rectangleCoverImg = _ImageModel_ProtoDecoder.LIZ(r7);
                                continue;
                            case 185:
                                room.mRoomAuthMessage = _RoomAuthMessage_ProtoDecoder.LIZ(r7);
                                continue;
                            case 186:
                                room.paidEvent = _PaidEvent_ProtoDecoder.LIZ(r7);
                                continue;
                            case 187:
                                room.pictionaryFullInfo = _PictionaryFullInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 191:
                                room.pinInfo = _PinInfo_ProtoDecoder.LIZ(r7);
                                continue;
                            case 192:
                                room.mIndicators.add(r7.LIZLLL());
                                continue;
                            case 196:
                                room.commentHasTextEmojiEmote = (int) 0SQ.LIZIZ(r7);
                                continue;
                            default:
                                switch (LIZIZ) {
                                    case 16:
                                        room.platform = (int) 0SQ.LIZIZ(r7);
                                        break;
                                    case 17:
                                        room.clientVersion = String.valueOf(0SQ.LIZIZ(r7));
                                        break;
                                    case LiveRechargeAgeThresholdSetting.DEFAULT:
                                        room.withLinkMic = 0SQ.LIZ(r7);
                                        break;
                                    default:
                                        switch (LIZIZ) {
                                            case 20:
                                                room.cover = _ImageModel_ProtoDecoder.LIZ(r7);
                                                break;
                                            case 21:
                                                room.dynamicCover = _ImageModel_ProtoDecoder.LIZ(r7);
                                                break;
                                            case 22:
                                                room.dynamicCoverLow = _ImageModel_ProtoDecoder.LIZ(r7);
                                                break;
                                            case 23:
                                                room.shareUrl = r7.LIZLLL();
                                                break;
                                            case 24:
                                                room.anchorShareText = r7.LIZLLL();
                                                break;
                                            case 25:
                                                room.userShareText = r7.LIZLLL();
                                                break;
                                            case 26:
                                                room.streamId = 0SQ.LIZIZ(r7);
                                                break;
                                            default:
                                                switch (LIZIZ) {
                                                    case 34:
                                                        room.decorationList.add(_RoomDecoration_ProtoDecoder.LIZ(r7));
                                                        break;
                                                    case 35:
                                                        room.topFanTickets.add(_TopFanTicket_ProtoDecoder.LIZ(r7));
                                                        break;
                                                    case 36:
                                                        room.stats = _RoomStats_ProtoDecoder.LIZ(r7);
                                                        break;
                                                    default:
                                                        switch (LIZIZ) {
                                                            case 51:
                                                                room.liveTypeAudio = 0SQ.LIZ(r7);
                                                                break;
                                                            case 52:
                                                                room.isThirdParty = 0SQ.LIZ(r7);
                                                                break;
                                                            case 53:
                                                                room.isScreenshot = 0SQ.LIZ(r7);
                                                                break;
                                                            default:
                                                                0SQ.LIZJ(r7);
                                                                continue;
                                                        }
                                                }
                                        }
                                }
                        }
                    } else {
                        room.mNameMode = (int) 0SQ.LIZIZ(r7);
                    }
                }
                room.createTime = 0SQ.LIZIZ(r7);
            } else {
                room.userCount = (int) 0SQ.LIZIZ(r7);
            }
        }
    }
}
