| @@ -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 | |||
| @@ -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}"); | |||
| @@ -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 | |||
| { | |||
| } | |||
| } | |||
| @@ -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; } | |||
| } | |||
| } | |||
| @@ -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; } | |||
| } | |||
| } | |||
| @@ -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; } | |||
| } | |||
| } | |||