package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiTvChannelEditChNameAidl;
import com.cvte.tv.api.functions.ITVApiTvChannelEditChName;

/* JADX INFO: loaded from: classes.dex */
public class TVApiTvChannelEditChNameService extends ITVApiTvChannelEditChNameAidl.Stub {
    public static final String TVAPI_NOFOUND_ERROR = "TV Api not found";

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelEditChNameAidl
    public String eventTVChannelsGetChannelName(int i2) throws RemoteException {
        ITVApiTvChannelEditChName iTVApiTvChannelEditChName = (ITVApiTvChannelEditChName) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannelEditChName.class);
        if (iTVApiTvChannelEditChName != null) {
            return iTVApiTvChannelEditChName.eventTVChannelsGetChannelName(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelEditChNameAidl
    public boolean eventTVChannelsIsAllowEditChannelName(int i2) throws RemoteException {
        ITVApiTvChannelEditChName iTVApiTvChannelEditChName = (ITVApiTvChannelEditChName) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannelEditChName.class);
        if (iTVApiTvChannelEditChName != null) {
            return iTVApiTvChannelEditChName.eventTVChannelsIsAllowEditChannelName(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelEditChNameAidl
    public boolean eventTVChannelsSetChannelName(int i2, String str) throws RemoteException {
        ITVApiTvChannelEditChName iTVApiTvChannelEditChName = (ITVApiTvChannelEditChName) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannelEditChName.class);
        if (iTVApiTvChannelEditChName != null) {
            return iTVApiTvChannelEditChName.eventTVChannelsSetChannelName(i2, str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelEditChNameAidl
    public boolean eventTvChannelEditChNameReset(EnumResetLevel enumResetLevel) throws RemoteException {
        ITVApiTvChannelEditChName iTVApiTvChannelEditChName = (ITVApiTvChannelEditChName) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannelEditChName.class);
        if (iTVApiTvChannelEditChName != null) {
            return iTVApiTvChannelEditChName.eventTvChannelEditChNameReset(enumResetLevel);
        }
        throw new RemoteException("TV Api not found");
    }
}
