Skip to content

Commit fe17db2

Browse files
committed
Push properties down into Model project
1 parent fb620e2 commit fe17db2

19 files changed

+55
-75
lines changed

IntegrationEngine.Client/InEngineClient.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using InEngineTimeZone = IntegrationEngine.Model.TimeZone;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using IntegrationEngine.Model;
@@ -107,11 +108,11 @@ public SimpleTrigger DeleteSimpleTrigger(string id)
107108
#endregion
108109

109110
#region TimeZone
110-
public IList<TimeZone> GetTimeZones()
111+
public IList<InEngineTimeZone> GetTimeZones()
111112
{
112113
var request = new RestRequest(EndpointName.TimeZone, Method.GET);
113114
var result = RestClient.Execute(request);
114-
return JsonConvert.DeserializeObject<IList<TimeZone>>(result.Content);
115+
return JsonConvert.DeserializeObject<IList<InEngineTimeZone>>(result.Content);
115116
}
116117
#endregion
117118

IntegrationEngine.Model.net40/IHasStateId.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

IntegrationEngine.Model.net40/IntegrationEngine.Model.net40.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<Compile Include="..\IntegrationEngine.Model\ISimpleTrigger.cs">
5353
<Link>ISimpleTrigger.cs</Link>
5454
</Compile>
55-
<Compile Include="IHasStateId.cs" />
5655
<Compile Include="Properties\AssemblyInfo.cs" />
5756
<Compile Include="..\IntegrationEngine.Model\SimpleTrigger.cs">
5857
<Link>SimpleTrigger.cs</Link>
@@ -63,6 +62,12 @@
6362
<Compile Include="..\IntegrationEngine.Model\IIntegrationJobTrigger.cs">
6463
<Link>IIntegrationJobTrigger.cs</Link>
6564
</Compile>
65+
<Compile Include="..\IntegrationEngine.Model\ITimeZone.cs">
66+
<Link>ITimeZone.cs</Link>
67+
</Compile>
68+
<Compile Include="..\IntegrationEngine.Model\TimeZone.cs">
69+
<Link>TimeZone.cs</Link>
70+
</Compile>
6671
</ItemGroup>
6772
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6873
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

IntegrationEngine.Model/CronTrigger.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ public class CronTrigger : ICronTrigger
99
public string CronExpressionString { get; set; }
1010
public string TimeZoneId { get; set; }
1111
public int StateId { get; set; }
12+
13+
public string CronExpressionDescription { get { throw new NotImplementedException(); } }
14+
public TimeZoneInfo TimeZoneInfo { get { throw new NotImplementedException(); } }
15+
public string StateDescription { get { throw new NotImplementedException(); } }
1216
}
1317
}

IntegrationEngine.Model/ICronTrigger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
namespace IntegrationEngine.Model
88
{
9-
public interface ICronTrigger : IHasStringId, IIntegrationJobTrigger
9+
public interface ICronTrigger : IIntegrationJobTrigger
1010
{
1111
string CronExpressionString { get; set; }
12+
string CronExpressionDescription { get; }
1213
string TimeZoneId { get; set; }
14+
TimeZoneInfo TimeZoneInfo { get; }
1315
}
1416
}

IntegrationEngine.Model/IHasStateId.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

IntegrationEngine.Model/IIntegrationJobTrigger.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace IntegrationEngine.Model
44
{
5-
public interface IIntegrationJobTrigger : IHasStringId, IHasStateId
5+
public interface IIntegrationJobTrigger : IHasStringId
66
{
77
string JobType { get; set; }
8+
int StateId { get; set; }
9+
string StateDescription { get; }
810
}
911
}

IntegrationEngine.Model/ISimpleTrigger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace IntegrationEngine.Model
88
{
9-
public interface ISimpleTrigger : IHasStringId, IIntegrationJobTrigger
9+
public interface ISimpleTrigger : IIntegrationJobTrigger
1010
{
1111
int RepeatCount { get; set; }
1212
TimeSpan RepeatInterval { get; set; }

IntegrationEngine/Scheduler/ITimeZone.cs renamed to IntegrationEngine.Model/ITimeZone.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace IntegrationEngine.Scheduler
7+
namespace IntegrationEngine.Model
88
{
99
public interface ITimeZone
1010
{

IntegrationEngine.Model/IntegrationEngine.Model.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@
4646
<Link>Properties\SharedAssemblyInfo.cs</Link>
4747
</Compile>
4848
<Compile Include="ICronTrigger.cs" />
49-
<Compile Include="IHasStateId.cs" />
5049
<Compile Include="IHasStringId.cs" />
5150
<Compile Include="ISimpleTrigger.cs" />
5251
<Compile Include="Properties\AssemblyInfo.cs" />
5352
<Compile Include="CronTrigger.cs" />
5453
<Compile Include="SimpleTrigger.cs" />
5554
<Compile Include="IIntegrationJobTrigger.cs" />
55+
<Compile Include="TimeZone.cs" />
56+
<Compile Include="ITimeZone.cs" />
5657
</ItemGroup>
5758
<ItemGroup>
5859
<None Include="package.nuspec">

0 commit comments

Comments
 (0)