package io.innofang.autosms.module.contacts.history_contact;

import android.view.View;
import android.widget.TextView;

import io.innofang.autosms.R;
import io.innofang.autosms.base.BaseViewHolder;
import io.innofang.autosms.bean.Message;

/**
 * Author: Inno Fang
 * Time: 2017/6/17 13:28
 * Description:
 */


public class HistoryContactViewHolder extends BaseViewHolder<Message> {

    private TextView mDateTextView;
    private TextView mContactTextView;

    public HistoryContactViewHolder(View itemView) {
        super(itemView);

        mDateTextView = (TextView) itemView.findViewById(R.id.date_text_view);
        mContactTextView = (TextView) itemView.findViewById(R.id.contact_text_view);
    }

    @Override
    public void bindHolder(Message model) {
        mDateTextView.setText(model.getDate() + " " + model.getTime());
        mContactTextView.setText(model.getPhoneNumbers());
    }
}
