using Ropin.Inspection.Model;
using Ropin.Inspection.Model.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ropin.Inspection.Repository
{
    public interface ITmtnPushMsgToRepository : IRepositoryBase<TMTN_PushMsgTo>, IRepositoryBaseById<TMTN_PushMsgTo, string>
    {
        Task<IEnumerable<TSYS_User>> GetPushMsgUserByAsync(string devStoreCode, string msgTypeCode);
        Task<int> DeleteByDevPersonIdAsync(string devId, string personId);
        Task<int> DeleteByDevPersonIdMultipleAsync(string devId, string personStr);
        Task<IEnumerable<TmtnPushMsgToUserViewModel>> GetPushMsgToUsersByAsync(string devStoreCode);
        Task<TmtnUserPushMsgToViewModel> GetPushMsgTosByAsync(string devStoreCode, string userCode);
        Task<bool> PushAlarmMsgAsync(TpushMsgModel pushModel);
    }
}