Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
75c97b79
Commit
75c97b79
authored
May 26, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TumbleBit controller
parent
c0c1951b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
10 deletions
+65
-10
Breeze.TumbleBit.Client.csproj
...rc/Breeze.TumbleBit.Client/Breeze.TumbleBit.Client.csproj
+14
-2
Class1.cs
Breeze/src/Breeze.TumbleBit.Client/Class1.cs
+0
-8
TumbleBitController.cs
...reeze.TumbleBit.Client/Controllers/TumbleBitController.cs
+23
-0
RequestModels.cs
Breeze/src/Breeze.TumbleBit.Client/Models/RequestModels.cs
+28
-0
No files found.
Breeze/src/Breeze.TumbleBit.Client/Breeze.TumbleBit.Client.csproj
View file @
75c97b79
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
<TargetFramework>netstandard1.6</TargetFramework>
<AssemblyName>Breeze.TumbleBit.Client</AssemblyName>
<PackageId>Breeze.TumbleBit.Client</PackageId>
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="1.0.3" />
<PackageReference Include="Serilog.Extensions.Logging.File" Version="1.0.1" />
</ItemGroup>
</Project>
\ No newline at end of file
Breeze/src/Breeze.TumbleBit.Client/Class1.cs
deleted
100644 → 0
View file @
c0c1951b
using
System
;
namespace
Breeze.TumbleBit.Client
{
public
class
Class1
{
}
}
Breeze/src/Breeze.TumbleBit.Client/Controllers/TumbleBitController.cs
0 → 100644
View file @
75c97b79
using
Breeze.TumbleBit.Models
;
using
Microsoft.AspNetCore.Mvc
;
namespace
Breeze.TumbleBit.Controllers
{
/// <summary>
/// Controller providing TumbleBit operations.
/// </summary>
[
Route
(
"api/v{version:apiVersion}/[controller]"
)]
public
class
TumbleBitController
:
Controller
{
/// <summary>
/// Connect to a tumbler.
/// </summary>
/// <param name="request">The object containing the parameters used to connect to a tumbler.</param>
[
Route
(
"connect"
)]
[
HttpPost
]
public
IActionResult
Connect
([
FromBody
]
TumblerConnectionRequest
request
)
{
return
this
.
Ok
();
}
}
}
Breeze/src/Breeze.TumbleBit.Client/Models/RequestModels.cs
0 → 100644
View file @
75c97b79
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
Newtonsoft.Json
;
namespace
Breeze.TumbleBit.Models
{
/// <summary>
/// Base class for request objects received to the controllers
/// </summary>
public
class
RequestModel
{
public
override
string
ToString
()
{
return
JsonConvert
.
SerializeObject
(
this
,
Formatting
.
Indented
);
}
}
/// <summary>
/// Object used to connect to a tumbler.
/// </summary>
public
class
TumblerConnectionRequest
:
RequestModel
{
[
Required
(
ErrorMessage
=
"A server address is required."
)]
public
Uri
ServerAddress
{
get
;
set
;
}
public
string
Network
{
get
;
set
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment