using System.Windows.Input;
using DTS.Common.Enums;
using DTS.Common.Enums.Channels;
namespace DTS.Common.Interface.Channels.ChannelCodes
{
///
/// used to describe the behavior of channelcodes for the UI
///
public interface IChannelCode
{
///
/// id of the channel code in the database
///
int Id { get; }
///
/// codevalue (either user code or isocode depending on codetype)
///
string Code { get; set; }
///
/// name associated with code (either user channel name or iso channel name)
///
string Name { get; set; }
///
/// the type of code (iso or user)
///
ChannelEnumsAndConstants.ChannelCodeType CodeType { get; }
///
/// handler for paste command
/// this is used for when data is pasted into either a channel code or name
/// it's needed because you can paste many rows, a CSV for example, into one field
///
ICommand PasteCommand { get; set; }
///
/// the status of the item in the UI
/// (failed/success/etc)
///
UIItemStatus ItemStatus { get; set; }
}
}