Create C# classes from documentation
£20-100 GBP
Paid on delivery
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"; //
Project ID: #15647817
About the project
4 freelancers are bidding on average £190 for this job
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