IConfideHomeEvent.kt 3.57 KB
Newer Older
洪国微 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
package com.ydl.confide.home.event

import android.view.View
import com.ydl.confide.home.adapter.ConfideHomeAdapter
import com.ydl.confide.home.bean.ConfideHomeAllFiltersBean
import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.widget.ConfideHomeFilterView

/**
 * @author yuanwai
 * @描述:倾诉首页事件处理类接口
 * @Copyright Copyright (c) 2018
 * @Company 壹点灵
 * @date 2018/8/10
 */
interface IConfideHomeEvent {
    /**
     * 跳转我的
     */
    fun jumpMine()

    /**
     * banner点击事件
     * @param linkUrl 跳转地址
     * @param position 点击索引
     * @param title banner 标题
     */
    fun bannerClick(linkUrl: String?, position: Int?, title: String?)

    /**
     * 最近倾诉--继续倾诉
     * @param linkUrl 跳转地址
     */
    fun latelyConfideClick(linkUrl: String?)

    /**
     * 最近倾诉--更多
     * @param linkUrl 跳转地址
     */
    fun latelyConfideMore(linkUrl: String?)

    /**
     * 分类测评点击事件
     * @param linkUrl
     */
    fun categoryClick(linkUrl: String?)

    /**
     * 为你推荐--向TA倾诉
     * @param linkUrl 跳转地址
     */
    fun recommendClick(linkUrl: String?)

    /**
     * 为你推荐--更多
     * @param linkUrl 跳转地址
     */
    fun recommendMoreClick(linkUrl: String?)

    /**
     * 听声寻人--向TA倾诉
     * @param linkUrl 跳转地址
     */
    fun soundClick(linkUrl: String?)

    /**
     * 听声寻人--更多
     * @param linkUrl 跳转地址
     */
    fun soundMoreClick(linkUrl: String?)

    /**
     * 咨询师推荐--点我倾诉
     * @param linkUrl 跳转地址
     */
76
    fun consultantClick(doctorId: String?, confideId: String?, uid: String?, listenFree: Boolean?= false, expertUrl : String?="")
洪国微 committed
77

78
    fun videoShowClick(index: Int, data: List<ConfideHomeBodyBean>?)
79

洪国微 committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    /**
     * 咨询师推荐--更多情感恋爱专家
     * @param linkUrl 跳转地址
     */
    fun consultantMoreClick(linkUrl: String?)

    /**
     * 播放音频
     * @param type    当前模块数据类型
     * @param index   当前的模块里的数据索引位置
     * @param playUrl 播放地址
     */
    fun playVoice(type: Int?, index: Int?, playUrl: String?)

    /**
     * 播放音频
     * @param type        当前模块数据类型
     * @param index       当前的模块里的数据索引位置
     * @param recommendId 为你推荐Id(用于区分播放区域)
     * @param playUrl     播放地址
     * @param name     咨询师姓名
     */
102
    fun playVoice(type: Int?, index: Int?, recommendId: Int, playUrl: String?, name: String?,confideIcon:String?)
洪国微 committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

    /**
     * 重播
     */
    fun rePlayVoice()

    /**
     * 暂停播放
     */
    fun pauseVoice()

    /**
     * 结束播放 释放资源
     */
    fun destoryPlayer()

    /**
     * 私聊
     */
    fun toChatForMsg(doctorId: String?)

    /**
     * 排序弹窗
     */
    fun showSortPopupWindow(v_line_top: View, filterView: ConfideHomeFilterView, bodyBean: ConfideHomeBodyBean?, allFiltersBean: ConfideHomeAllFiltersBean, mConfideAdapter: ConfideHomeAdapter)

    /**
     * 性别年龄弹窗
     */
    fun showSexAgePopupWindow(v_line_top: View, filterView: ConfideHomeFilterView, bodyBean: ConfideHomeBodyBean?, allFiltersBean: ConfideHomeAllFiltersBean, mConfideAdapter: ConfideHomeAdapter)

    /**
     * 擅长方向弹窗
     */
    fun showGoodPopupWindow(v_line_top: View, filterView: ConfideHomeFilterView, bodyBean: ConfideHomeBodyBean?, allFiltersBean: ConfideHomeAllFiltersBean, mConfideAdapter: ConfideHomeAdapter)
}