public List <Telecast> GetListOfEpg(int ch) { if (ch == 0) { return(null); } var func = new TranslationEpg(ch); var res = func.Run(_device.Proxy.SessionState.session); if (!res.IsSuccess && (res.Error == ApiError.incorrect || res.Error == ApiError.noconnect)) { _device.Proxy.Login(); return(GetListOfEpg(ch)); } return(res.data); }
public List<Telecast> GetListOfEpg(int ch) { if (ch == 0) return null; var func = new TranslationEpg(ch); var res = func.Run(_device.Proxy.SessionState.session); if (!res.IsSuccess && (res.Error == ApiError.incorrect || res.Error == ApiError.noconnect)) { _device.Proxy.Login(); return GetListOfEpg(ch); } return res.data; }