go
This commit is contained in:
57
C4IT.API.Contracts/C4IT.API.Contracts.csproj
Normal file
57
C4IT.API.Contracts/C4IT.API.Contracts.csproj
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6CF1365B-C5BC-479C-B7BF-9229DEC98988}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>C4IT.API.Contracts</RootNamespace>
|
||||
<AssemblyName>C4IT.API.Contracts</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\CommonAssembyInfo.cs">
|
||||
<Link>Properties\CommonAssembyInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Contracts.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
100
C4IT.API.Contracts/Contracts.cs
Normal file
100
C4IT.API.Contracts/Contracts.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
11
C4IT.API.Contracts/Properties/AssemblyInfo.cs
Normal file
11
C4IT.API.Contracts/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("C4IT.API.Contracts")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("6cf1365b-c5bc-479c-b7bf-9229dec98988")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
Reference in New Issue
Block a user