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
13 changes: 13 additions & 0 deletions Contracts/Contracts.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MediatR.Contracts" Version="1.0.1" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions Contracts/Request/DeleteTicketRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Request
{
public class DeleteTicketRequest
{
public Guid BookedID { get; set; }
public string TicketCode { get; set; } = string.Empty;
public int Quantity { get; set; }
}
}
22 changes: 22 additions & 0 deletions Contracts/Request/GetTicketRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Contracts.Response;
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Request
{
public class GetTicketRequest : IRequest<GetTicketResponse>
{
public string CategoryName { get; set; } = string.Empty;
public string TicketCode { get; set; } = string.Empty;
public string TicketName { get; set;} = string.Empty;
public decimal Price { get; set; }
public DateTime MinDate { get; set; }
public DateTime MaxDate { get; set; }
public string OrderBy { get; set; } = string.Empty;
public string OrderState { get; set; } = string.Empty;
}
}
21 changes: 21 additions & 0 deletions Contracts/Request/PostTicketRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Contracts.Response;
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Request
{
public class PostTicketRequest : IRequest<PostTicketResponse>
{
public List<TicketModel> TicketList { get; set; } = new List<TicketModel>();
}

public class TicketModel
{
public string TicketCode { get; set; } = string.Empty;
public int Quantity { get; set; }
}
}
24 changes: 24 additions & 0 deletions Contracts/Request/PutTicketRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Contracts.Response;
using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Request
{
public class PutTicketRequest : PutTicketModel, IRequest<PutTicketResponse>
{
public Guid? BookedID { get; set; }
}
public class PutTicketModel
{
public List<TicketModel2> PutTicketList { get; set; }
}
public class TicketModel2
{
public string TicketCode { get; set; } = string.Empty;
public int Quantity { get; set; }
}
}
15 changes: 15 additions & 0 deletions Contracts/Response/DeleteTicketResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Response
{
public class DeleteTicketResponse
{
public string TicketCode { get; set; } = string.Empty;
public string TicketName { get; set;} = string.Empty;
public string CategoryName { get; set;} = string.Empty;
}
}
23 changes: 23 additions & 0 deletions Contracts/Response/GetTicketResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Response
{
public class GetTicketResponse
{
public List<TicketData> TicketDatas { get; set; } = new List<TicketData>();
}
public class TicketData
{
public Guid TicketID { get; set; }
public string CategoryName { get; set; } = string.Empty;
public string TicketCode { get; set; } = string.Empty;
public string TicketName { get; set; } = string.Empty;
public DateTime EventDate { get; set; }
public decimal Price { get; set; }
public int Quota { get; set; }
}
}
28 changes: 28 additions & 0 deletions Contracts/Response/PostTicketResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Response
{
public class PostTicketResponse
{
public decimal PriceSummary { get; set; }
public List<CategorySummary> Categories { get; set; } = new List<CategorySummary>();
}

public class CategorySummary
{
public string CategoryName { get; set; } = string.Empty;
public decimal SummaryPrice { get; set; }
public List<TicketSummary> TicketSummaries { get; set; } = new List<TicketSummary>();
}

public class TicketSummary
{
public string TicketCode { get; set; } = string.Empty;
public string TicketName { get; set; } = string.Empty;
public decimal Price { get; set; }
}
}
15 changes: 15 additions & 0 deletions Contracts/Response/PutTicketResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contracts.Response
{
public class PutTicketResponse
{
public string TicketCode { get; set; } = string.Empty;
public string TicketName { get; set; } = string.Empty;
public string CategoryName { get; set;} = string.Empty;
}
}
41 changes: 41 additions & 0 deletions Contracts/bin/Debug/net8.0/Contracts.deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"Contracts/1.0.0": {
"dependencies": {
"MediatR.Contracts": "1.0.1"
},
"runtime": {
"Contracts.dll": {}
}
},
"MediatR.Contracts/1.0.1": {
"runtime": {
"lib/netstandard2.0/MediatR.Contracts.dll": {
"assemblyVersion": "1.0.1.0",
"fileVersion": "1.0.1.0"
}
}
}
}
},
"libraries": {
"Contracts/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"MediatR.Contracts/1.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-NsRvOxthhkYml4DcBMyJsmym8C4MchioH7wxKVPEg7plFj9Euh/i4IcmZ3Gvgx6+K8obeuhPeJdoBl56wnuo3A==",
"path": "mediatr.contracts/1.0.1",
"hashPath": "mediatr.contracts.1.0.1.nupkg.sha512"
}
}
}
Binary file added Contracts/bin/Debug/net8.0/Contracts.dll
Binary file not shown.
Binary file added Contracts/bin/Debug/net8.0/Contracts.pdb
Binary file not shown.
74 changes: 74 additions & 0 deletions Contracts/obj/Contracts.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"format": 1,
"restore": {
"D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\Contracts\\Contracts.csproj": {}
},
"projects": {
"D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\Contracts\\Contracts.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\Contracts\\Contracts.csproj",
"projectName": "Contracts",
"projectPath": "D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\Contracts\\Contracts.csproj",
"packagesPath": "C:\\Users\\axela\\.nuget\\packages\\",
"outputPath": "D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\Contracts\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\axela\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"dependencies": {
"MediatR.Contracts": {
"target": "Package",
"version": "[1.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.202/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}
15 changes: 15 additions & 0 deletions Contracts/obj/Contracts.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\axela\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.9.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\axela\.nuget\packages\" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions Contracts/obj/Contracts.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
23 changes: 23 additions & 0 deletions Contracts/obj/Debug/net8.0/Contracts.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <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.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("Contracts")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+681184ef29f83f797ad525699016e2067c66a5fb")]
[assembly: System.Reflection.AssemblyProductAttribute("Contracts")]
[assembly: System.Reflection.AssemblyTitleAttribute("Contracts")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8720ef3742761ccaffa34134c02e176ad060b02013b8f8b9e3e92951841b2309
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Contracts
build_property.ProjectDir = D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
8 changes: 8 additions & 0 deletions Contracts/obj/Debug/net8.0/Contracts.GlobalUsings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file added Contracts/obj/Debug/net8.0/Contracts.assets.cache
Binary file not shown.
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
844e04543cf855ecd1ab69fc8e3aebbc4730ea9f77caafc07b45dbfa1c5186d1
13 changes: 13 additions & 0 deletions Contracts/obj/Debug/net8.0/Contracts.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.csproj.AssemblyReference.cache
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.GeneratedMSBuildEditorConfig.editorconfig
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.AssemblyInfoInputs.cache
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.AssemblyInfo.cs
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.csproj.CoreCompileInputs.cache
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.sourcelink.json
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\bin\Debug\net8.0\Contracts.deps.json
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\bin\Debug\net8.0\Contracts.dll
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\bin\Debug\net8.0\Contracts.pdb
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.dll
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\refint\Contracts.dll
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\Contracts.pdb
D:\Desktop\mine\accelist\ExamNETWebAPI\Contracts\obj\Debug\net8.0\ref\Contracts.dll
Binary file added Contracts/obj/Debug/net8.0/Contracts.dll
Binary file not shown.
Binary file added Contracts/obj/Debug/net8.0/Contracts.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions Contracts/obj/Debug/net8.0/Contracts.sourcelink.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documents":{"D:\\Desktop\\mine\\accelist\\ExamNETWebAPI\\*":"https://raw.githubusercontent.com/accelist/ExamNETWebAPI/681184ef29f83f797ad525699016e2067c66a5fb/*"}}
Binary file added Contracts/obj/Debug/net8.0/ref/Contracts.dll
Binary file not shown.
Binary file not shown.
Loading