101 lines
3.3 KiB
C#
101 lines
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Media;
|
|
|
|
namespace C4IT.API.Contracts
|
|
{
|
|
public class Announcement
|
|
{
|
|
public string _message = String.Empty;
|
|
public string _subject = String.Empty;
|
|
public int Type = 0;
|
|
public DateTime _createdDate;
|
|
public DateTime? _visibleFrom;
|
|
public Guid _objectID;
|
|
public string _prioColor;
|
|
public int _priority = 0;
|
|
public bool _isAdhoc = false;
|
|
|
|
public SolidColorBrush getPrioColorBrush()
|
|
{
|
|
if (!string.IsNullOrEmpty(_prioColor))
|
|
{
|
|
if (_prioColor.StartsWith("0x"))
|
|
{
|
|
return new SolidColorBrush((Color)ColorConverter.ConvertFromString(_prioColor.Replace("0xFF", "#")));
|
|
}
|
|
return new SolidColorBrush((Color)ColorConverter.ConvertFromString(_prioColor));
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public class Ticket
|
|
{
|
|
public string _ticketNumber;
|
|
public string _subject;
|
|
public string _state;
|
|
public DateTime _createdDate;
|
|
public Int32 _lastJournalEntryAction;
|
|
public DateTime _lastJournalEntryDate;
|
|
public Guid _objectID;
|
|
public string _sysEntity;
|
|
public Int32 _stateValue;
|
|
public bool _newInformation;
|
|
public string _lastJournalEntryActionText;
|
|
public string _ticketType;
|
|
public Ticket()
|
|
{
|
|
_lastJournalEntryAction = 0;
|
|
_stateValue = 0;
|
|
}
|
|
}
|
|
|
|
public enum enumMainFunctions { Announcement = 0, Information, Ssp, Incident, CustomLinks };
|
|
public class CustomerPanelConfig
|
|
{
|
|
public string _remoteAppPath = String.Empty;
|
|
public bool _disableClosing = false;
|
|
public int _iconColor = 10;
|
|
public int _mainIconTextColor = 10;
|
|
public Version _ServerVersion;
|
|
public bool _isStartApplicationMinimized;
|
|
public string _logoUrl = null;
|
|
public string _trayIconUrl = null;
|
|
public Dictionary<String, String> _uiColors = new Dictionary<string, string>();
|
|
public bool _isDraggable = false;
|
|
public Dictionary<string, string> _linkList = new Dictionary<string, string>();
|
|
public int _timerIntervalTicket = 10;
|
|
public int _timerIntervalAdHocAnnouncements = 2;
|
|
public int _timerIntervalRegularAnnouncements = 10;
|
|
public string _createNewTicketDirectLink = String.Empty;
|
|
public bool _isUUX = true;
|
|
public string _encryptedApiToken = String.Empty;
|
|
public int _reloginIntervalDays = 14;
|
|
public Dictionary<enumMainFunctions, bool> MainFunctionActivation = new Dictionary<enumMainFunctions, bool>()
|
|
{
|
|
{enumMainFunctions.Announcement, false },
|
|
{enumMainFunctions.Incident, false },
|
|
{enumMainFunctions.Ssp, false },
|
|
{enumMainFunctions.Information, true },
|
|
{enumMainFunctions.CustomLinks, false }
|
|
};
|
|
|
|
public CustomerPanelConfig()
|
|
{
|
|
_uiColors["activeButtonColor"] = "#186292";
|
|
_uiColors["inactiveButtonColor"] = "#186292";
|
|
_uiColors["backgroundColor"] = "#FFCDC9C9";
|
|
_uiColors["headerColor"] = "#FFCDC9C9";
|
|
}
|
|
}
|
|
|
|
public enum announcementType
|
|
{
|
|
Adhoc = 1,
|
|
Regular = 2
|
|
}
|
|
|
|
}
|