Files
DP44/Common/DTS.CommonCore/.svn/pristine/9a/9aaf690b2ed01eeb281292684b4f2724e3ae8e9e.svn-base

41 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using System.Windows.Input;
using DTS.Common.Enums;
using DTS.Common.Enums.Channels;
namespace DTS.Common.Interface.Channels.ChannelCodes
{
/// <summary>
/// used to describe the behavior of channelcodes for the UI
/// </summary>
public interface IChannelCode
{
/// <summary>
/// id of the channel code in the database
/// </summary>
int Id { get; }
/// <summary>
/// codevalue (either user code or isocode depending on codetype)
/// </summary>
string Code { get; set; }
/// <summary>
/// name associated with code (either user channel name or iso channel name)
/// </summary>
string Name { get; set; }
/// <summary>
/// the type of code (iso or user)
/// </summary>
ChannelEnumsAndConstants.ChannelCodeType CodeType { get; }
/// <summary>
/// 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
/// </summary>
ICommand PasteCommand { get; set; }
/// <summary>
/// the status of the item in the UI
/// (failed/success/etc)
/// </summary>
UIItemStatus ItemStatus { get; set; }
}
}