1/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.tv.data.epg;
18
19import android.content.Context;
20
21import android.support.annotation.NonNull;
22import com.android.tv.data.Channel;
23import com.android.tv.data.Lineup;
24import com.android.tv.data.Program;
25import com.android.tv.dvr.data.SeriesInfo;
26
27import java.util.Collections;
28import java.util.List;
29import java.util.Map;
30
31/**
32 * A stub class to read EPG.
33 */
34public class StubEpgReader implements EpgReader{
35    public StubEpgReader(@SuppressWarnings("unused") Context context) {
36    }
37
38    @Override
39    public boolean isAvailable() {
40        return true;
41    }
42
43    @Override
44    public long getEpgTimestamp() {
45        return 0;
46    }
47
48    @Override
49    public void setRegionCode(String regionCode) {
50        // Do nothing
51    }
52
53    @Override
54    public List<Lineup> getLineups(@NonNull String postalCode) {
55        return Collections.emptyList();
56    }
57
58    @Override
59    public List<String> getChannelNumbers(@NonNull String lineupId) {
60        return Collections.emptyList();
61    }
62
63    @Override
64    public List<Channel> getChannels(@NonNull String lineupId) {
65        return Collections.emptyList();
66    }
67
68    @Override
69    public void preloadChannels(@NonNull String lineupId) {
70        // Do nothing
71    }
72
73    @Override
74    public void clearCachedChannels(@NonNull String lineupId) {
75        // Do nothing
76    }
77
78    @Override
79    public List<Program> getPrograms(long channelId) {
80        return Collections.emptyList();
81    }
82
83    @Override
84    public Map<Long, List<Program>> getPrograms(@NonNull List<Long> channelIds, long duration) {
85        return Collections.emptyMap();
86    }
87
88    @Override
89    public SeriesInfo getSeriesInfo(@NonNull String seriesId) {
90        return null;
91    }
92}