package com.daya.live_teaching.im.provider;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.daya.live_teaching.R;

import io.rong.imkit.conversation.messgelist.provider.BaseNotificationMessageItemProvider;
import io.rong.imkit.widget.adapter.ViewHolder;
import io.rong.imlib.model.MessageContent;

/**
 * 显示提示消息用基础消息模版
 *
 * @param <T>
 */
public abstract class BaseNotificationProvider<T extends MessageContent> extends BaseNotificationMessageItemProvider<T> {


    @Override
    protected ViewHolder onCreateMessageContentViewHolder(ViewGroup parent, int viewType) {
        View contentView = LayoutInflater.from(parent.getContext()).inflate(R.layout.class_item_conversation_notify_message, parent, false);
        return new ViewHolder(parent.getContext(), contentView);
    }



}
