1/*
2 * Copyright (c) 2015 The Android Open Source Project
3 *
4 *  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 *  in compliance with the License. You may obtain a copy of the License at
6 *
7 *  http://www.apache.org/licenses/LICENSE-2.0
8 *
9 *  Unless required by applicable law or agreed to in writing, software distributed under the License
10 *  is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 *  or implied. See the License for the specific language governing permissions and limitations under
12 *  the License.
13 */
14
15package android.support.v17.leanback.supportleanbackshowcase.models;
16
17import com.google.gson.annotations.SerializedName;
18
19import java.util.List;
20
21/**
22 * This class represents a row of cards. In a real world application you might want to store more
23 * data than in this example.
24 */
25public class CardRow {
26
27    // default is a list of cards
28    public static final int TYPE_DEFAULT = 0;
29    // section header
30    public static final int TYPE_SECTION_HEADER = 1;
31    // divider
32    public static final int TYPE_DIVIDER = 2;
33
34    @SerializedName("type") private int mType = TYPE_DEFAULT;
35    // Used to determine whether the row shall use shadows when displaying its cards or not.
36    @SerializedName("shadow") private boolean mShadow = true;
37    @SerializedName("title") private String mTitle;
38    @SerializedName("cards") private List<Card> mCards;
39
40    public int getType() {
41        return mType;
42    }
43
44    public String getTitle() {
45        return mTitle;
46    }
47
48    public boolean useShadow() {
49        return mShadow;
50    }
51
52    public List<Card> getCards() {
53        return mCards;
54    }
55
56}
57