HomeViewConfig.kt 1.92 KB
Newer Older
徐健 committed
1 2 3 4 5 6 7 8 9
package com.yidianling.home.constract

/**
 * @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
 * @描述:壹点零首页ViewHolder约束类
 * @Copyright Copyright (c) 2019
 * @Company 壹点灵
 * @date 2019/02/13
 */
konghaorui committed
10 11
class HomeViewConfig {

徐健 committed
12
    companion object {
konghaorui committed
13 14 15 16 17 18 19 20 21 22 23 24
        private var homeViewOrder = HomeViewOrder()

        fun getOrder():HomeViewOrder{
            return homeViewOrder
        }

        fun setOrder(order:HomeViewOrder){
            this.homeViewOrder = order
        }
    }
    
    class HomeViewOrder{
徐健 committed
25
        /**
konghaorui committed
26
         * 顶部viewpager与分类模块
徐健 committed
27
         */
konghaorui committed
28
        var bannerIndex :Int? = 0
徐健 committed
29 30 31
        /**
         * 顶部预约专家,即时倾诉,心理测试按钮模块
         */
konghaorui committed
32
        var buttonIndex :Int? = 1
徐健 committed
33 34 35
        /**
         * 咨询模块
         */
konghaorui committed
36
        var consultIndex :Int? = 2
徐健 committed
37 38 39
        /**
         * 课程*成长模块
         */
konghaorui committed
40
        var courseIndex :Int? = 3
徐健 committed
41 42 43
        /**
         * 倾诉*排解模块
         */
konghaorui committed
44
        var confideIndex :Int? = 4
徐健 committed
45 46 47
        /**
         * 测试模块
         */
48
        var testsIndex :Int? = 5
徐健 committed
49 50 51
        /**
         * 解忧*问答模块
         */
konghaorui committed
52
        var dynamicIndex :Int?= 6
徐健 committed
53 54 55
        /**
         * 壹点*冥想模块
         */
konghaorui committed
56
        var museIndex :Int?= 7
徐健 committed
57 58 59
        /**
         * 心灵*电台模块
         */
konghaorui committed
60
        var fmIndex :Int?= 8
徐健 committed
61 62 63
        /**
         * 文章*阅读模块
         */
konghaorui committed
64
        var articleIndex :Int? = 9
徐健 committed
65 66 67
        /**
         * 底部提示语模块
         */
konghaorui committed
68
        var footerIndex :Int? = 10
69 70 71 72 73 74 75 76
        var confideTitle:String = "倾诉·排解"
        var fmTitle:String = "心灵·电台"
        var articleTitle:String = "文章·阅读"
        var testsTitle:String = "测试·分析"
        var museTitle:String = "助眠·冥想"
        var courseTitle:String = "学习·成长"
        var consultTitle:String = "咨询·理解"
        var dynamicTitle:String = "解忧·问答"
徐健 committed
77 78
    }
}