Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
WebApi/obj/Debug/net6.0/WebApi.assets.cache
Application/bin
Application/obj
Gateway/bin
Gateway/obj
IOC/bin
IOC/obj
WebApi/appsettings.Development.json
WebApi/appsettings.json
IOC/obj/Debug/net6.0/IOC.assets.cache
Domain/obj/Debug/net6.0/Domain.assets.cache
Persistence/obj/Debug/net6.0/Persistence.assets.cache
Application/obj/Debug/net6.0/Application.assets.cache
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
35 changes: 35 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/WebApi/bin/Debug/net6.0/WebApi.dll",
"args": [],
"cwd": "${workspaceFolder}/WebApi",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Application/Application.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Application/Application.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/Application/Application.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
22 changes: 20 additions & 2 deletions Application/Implementations/Utilities/MessageService.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
using Application.Interfaces.Repositories;
using Application.Interfaces.Services.ApplicationServices;

namespace Application.Implementations.Utilities;

public class MessageService : IMessageService
{
public Task<bool> CreateMessageAsync(string content, string farmerPhoneNumber, string farmLocation, DateTime dateOfIncidence)
private readonly IFarmRepository _farmRepo;
private readonly IMessageRepository _messageRepo;

public MessageService(IFarmRepository farmRepo, IMessageRepository messageRepo)
{
throw new NotImplementedException();
_farmRepo = farmRepo;
_messageRepo = messageRepo;
}

public async Task<bool> CreateMessageAsync(string content, string farmerPhoneNumber,
string farmLocation, DateTime dateOfIncidence)
{
var weatherResponses = await _farmRepo.Hazard();

foreach (var item in weatherResponses)
{
// var messageExists = await _messageRepo.ExistsAsync(p => p.FarmerPhoneNumber == item.FarmerPhoneNumber
// && p.DateOfIncidence == item.DateOfIncidence);
}

}
}
Binary file modified Application/bin/Debug/net6.0/Application.dll
Binary file not shown.
Binary file modified Application/bin/Debug/net6.0/Application.pdb
Binary file not shown.
Binary file modified Application/bin/Debug/net6.0/Domain.dll
Binary file not shown.
Binary file modified Application/bin/Debug/net6.0/Domain.pdb
Binary file not shown.
40 changes: 21 additions & 19 deletions Application/obj/Application.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
{
"format": 1,
"restore": {
"c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Application\\Application.csproj": {}
"C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Application\\Application.csproj": {}
},
"projects": {
"c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Application\\Application.csproj": {
"C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Application\\Application.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Application\\Application.csproj",
"projectUniqueName": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Application\\Application.csproj",
"projectName": "Application",
"projectPath": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Application\\Application.csproj",
"projectPath": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Application\\Application.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Application\\obj\\",
"outputPath": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Application\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config"
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\Domain.csproj": {
"projectPath": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\Domain.csproj"
"C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\Domain.csproj": {
"projectPath": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\Domain.csproj"
}
}
}
Expand Down Expand Up @@ -69,8 +71,7 @@
"net47",
"net471",
"net472",
"net48",
"net481"
"net48"
],
"assetTargetFallback": true,
"warn": true,
Expand All @@ -79,26 +80,28 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.403\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.300\\RuntimeIdentifierGraph.json"
}
}
},
"c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\Domain.csproj": {
"C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\Domain.csproj",
"projectUniqueName": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\Domain.csproj",
"projectName": "Domain",
"projectPath": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\Domain.csproj",
"projectPath": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\Domain.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "c:\\Users\\user\\Desktop\\Extern\\AARR\\AARR-Backend\\Domain\\obj\\",
"outputPath": "C:\\Users\\user\\Desktop\\AARR2\\AARR-Backend\\Domain\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config"
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
Expand All @@ -122,8 +125,7 @@
"net47",
"net471",
"net472",
"net48",
"net481"
"net48"
],
"assetTargetFallback": true,
"warn": true,
Expand All @@ -132,7 +134,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.403\\RuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.300\\RuntimeIdentifierGraph.json"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Application/obj/Application.csproj.nuget.g.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.1</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\user\.nuget\packages\" />
Expand Down
1 change: 0 additions & 1 deletion Application/obj/Debug/net6.0/Application.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Application
build_property.ProjectDir = c:\Users\user\Desktop\Extern\AARR\AARR-Backend\Application\
build_property.ProjectDir = C:\Users\user\Desktop\AARR2\AARR-Backend\Application\
Binary file modified Application/obj/Debug/net6.0/Application.assets.cache
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
<<<<<<< HEAD
cad091292b31bab7b83f543b6b315cd4df4208a6
=======
e0972a51f207da9a0e71a4cc536ab9899d1b2048
>>>>>>> c0d6bcf55d26d6de98fb96417bfd34c39c20abb2
1106d89111b4bbdefbcaaba36e5813f7850c3af9
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ c:\Users\user\Desktop\Extern\new\AARR-Backend\Application\obj\Debug\net6.0\refin
c:\Users\user\Desktop\Extern\new\AARR-Backend\Application\obj\Debug\net6.0\Application.pdb
c:\Users\user\Desktop\Extern\new\AARR-Backend\Application\obj\Debug\net6.0\ref\Application.dll
>>>>>>> c0d6bcf55d26d6de98fb96417bfd34c39c20abb2
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\bin\Debug\net6.0\Application.deps.json
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\bin\Debug\net6.0\Application.dll
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\bin\Debug\net6.0\Application.pdb
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\bin\Debug\net6.0\Domain.dll
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\bin\Debug\net6.0\Domain.pdb
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.csproj.AssemblyReference.cache
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.AssemblyInfoInputs.cache
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.AssemblyInfo.cs
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.csproj.CoreCompileInputs.cache
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.csproj.CopyComplete
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.dll
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\refint\Application.dll
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\Application.pdb
C:\Users\user\Desktop\AARR2\AARR-Backend\Application\obj\Debug\net6.0\ref\Application.dll
Binary file added Application/obj/Debug/net6.0/Application.dll
Binary file not shown.
Binary file modified Application/obj/Debug/net6.0/Application.pdb
Binary file not shown.
Binary file modified Application/obj/Debug/net6.0/ref/Application.dll
Binary file not shown.
Binary file modified Application/obj/Debug/net6.0/refint/Application.dll
Binary file not shown.
Loading