浏览代码

Added data models.

master
NikolaJovanovic 3 年前
父节点
当前提交
4295a52448

+ 1
- 1
BlackRockReportFunction.sln 查看文件

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32526.322
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlackRockReportFunction", "BlackRockReportFunction\BlackRockReportFunction.csproj", "{6CD8D684-3C42-400E-9921-979539C58729}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlackRockReportFunction", "BlackRockReportFunction\BlackRockReportFunction.csproj", "{6CD8D684-3C42-400E-9921-979539C58729}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

+ 3
- 3
BlackRockReportFunction/ClockifyApiIntegrationFunction.cs 查看文件

@@ -30,12 +30,12 @@ namespace BlackRockReportFunction
HttpApiClient.DefaultRequestHeaders.Add("X-Api-Key", "*********");

//making request
}

[Function("ClockifyApiIntegrationFunction")]
public void Run([TimerTrigger("*/5 * * * * *")] MyInfo myTimer)
public void Run([TimerTrigger("* * * */5 * *")] MyInfo myTimer)
{
_logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");


+ 0
- 12
BlackRockReportFunction/ClockifyReport.cs 查看文件

@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackRockReportFunction
{
internal class ClockifyReport
{
}
}

+ 15
- 0
BlackRockReportFunction/Models/ClockifyRecord.cs 查看文件

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackRockReportFunction.Models
{
internal class ClockifyRecord
{
string recordDescription { get; set; }
TimeOnly recordTime { get; set; }
decimal amount { get; set; }
}
}

+ 15
- 0
BlackRockReportFunction/Models/ClockifyReport.cs 查看文件

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackRockReportFunction.Models
{
internal class ClockifyReport
{
string ReportName { get; set; }
string ReportDescription { get; set; }
List<Person> reportPeople { get; set; }
}
}

+ 14
- 0
BlackRockReportFunction/Models/Person.cs 查看文件

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackRockReportFunction.Models
{
internal class Person
{
string FullName { get; set; }
List<ClockifyRecord> records { get; set; }
}
}

正在加载...
取消
保存