Käynnissä

Create C# classes from documentation

Hi all,

** Overview

I want to call a JSON RPC server. I want the JSON objects to be easily serialized and deserialized into my C# POCO design.

I have put together the design template of a class structure written in C# that I wish you to implement. This included some basic interfaces and a requirement on ///summary notations.

** Technical

The RPC server I want to call is the Bitcoin daemon (bitcoind).

All of the BitcoinD RPC calls can be found documented here : [url removed, login to view]

I want you to implement:

1) A class for every RPC request (with the below interface and attribute)

2) A class for every RPC response (with the below interface and attribute)

3) Paste the method's documentation in ///summary notation in each Request class.

** Example

I have attached a sample C# DLL project and will walk you through this example.

Lets look at the list of RPC calls and choose an example call - AddNode -

[url removed, login to view]

1) First things first - we create an AddNodeRequest and AddNodeResponse class.

2) We implement the IBaseRequest and IBaseResponse interfaces which require an 'Operation' string.

3) We place the description of AddNode in //summary notation for the AddNodeRequest object.

4) We look at the parameters that AddNode call requires, add them into the AddNodeRequest class and decorate them with a RequestParameterIndex attribute.

5) We create /// notations for each parameter by pasting in the documented description.

5) If there are any strings which are fixed and suitable for enums we implement.

6) The AddNode call's request object is null - we we just have a blank POCO nice and easy.

7) We move to the next object!!!

public class AddNodeRequest : IBaseRequest

{

public string Operation { get; } = "AddNode"; //

Taidot: .NET, C# -ohjelmointi

Näytä lisää: blockchain bitcoin json rpc api, bitcoin json rpc api, bitcoin rpc api, vb6 api wrapper, google api wrapper, api wrapper google, google maps api wrapper delphi, google adwords api wrapper net, zoho rpc api, google ajax search api wrapper, xml rpc api united states map, yahoo net api wrapper, yahoo search api wrapper, google search api wrapper, php xml rpc api key

Tietoa työnantajasta:
( 0 arvostelua ) United Kingdom

Projektin tunnus: #15647817

Myönnetty käyttäjälle:

mauricemarinus

I was going to suggest : [url removed, login to view] .just paste your json in there and generate some classes. But then read the extra instructions... Yes I am bidding on this Relevant Skills and Experience 17 y Lisää

55 £ GBP 10 päivässä
(74 arvostelua)
5.8

5 freelanceria on tarjonnut keskimäärin 163 £ tähän työhön

talhaamin

I have great experience in writing C# classes, and i can follow instructions very precisely and timely. I have huge experience of writing POCO classes, even i have written a generator for POCO Relevant Skills and Exp Lisää

66 £ GBP 2 päivässä
(25 arvostelua)
8.5
papon13

Hi there, I am expert on C#. I have completed many project on Json serialized and deserialized. I can post json data and get json data. Thanks in advance, Noor All Safaet

100 £ GBP 5 päivässä
(73 arvostelua)
6.3
khp31

Sr. Software Professional having 8+ years experience. Relevant Skills and Experience Angular CLI, Angular 4, Angular 2, Angular Js, C# .Net, MVC , PHP, HTML, CSS, Bootstrap, Typescript, Javascript, Jquery, ASPBOILERPL Lisää

529 £ GBP 10 päivässä
(23 arvostelua)
5.0
BeautiCG

hello,dear. It's my pleasure meeting you. I have read your requirements and I fully went through it. I am confident and I am sure that I can do your project. Please contact me for further discussing. Thanks for your in Lisää

66 £ GBP 1 päivässä
(2 arvostelua)
2.8