using System;
using System.Text.Json.Serialization;
using System.Text.Json;
namespace Socialvoid.JObjects
{
///
/// A object which contains basic information
/// about an error returned by the server.
/// since: v0.0.0
///
[Serializable]
public sealed class JRequest
{
//-------------------------------------------------
#region Constant's Region
// some members here
#endregion
//-------------------------------------------------
#region static Properties Region
// some members here
#endregion
//-------------------------------------------------
#region Properties Region
///
/// The JSON-RPC version. Should be equal to "2.0".
/// since: v0.0.0
///
[JsonPropertyName("jsonrpc")]
public string JsonRPC { get; set; } = "2.0";
///
/// The error message.
/// since: v0.0.0
///
[JsonPropertyName("method")]
public string Method { get; set; }
///
/// The error message.
/// since: v0.0.0
///
[JsonPropertyName("id")]
public long ID { get; set; }
///
/// The error message.
/// since: v0.0.0
///
[JsonPropertyName("params")]
public JArgs Arguments { get; set; }
#endregion
//-------------------------------------------------
#region static field's Region
// some members here
#endregion
//-------------------------------------------------
#region field's Region
// some members here
#endregion
//-------------------------------------------------
#region static event field's Region
// some members here
#endregion
//-------------------------------------------------
#region event field's Region
// some members here
#endregion
//-------------------------------------------------
#region Constructor's Region
#endregion
//-------------------------------------------------
#region Destructor's Region
// some members here
#endregion
//-------------------------------------------------
#region Initialize Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region Graphical Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region event Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region overrided Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region ordinary Method's Region
///
/// Changes the ID property of this value to DateTime.Now.Ticks.
/// since: v0.0.0
///
public void ChangeID()
{
ID = DateTime.Now.Ticks;
}
#endregion
//-------------------------------------------------
#region Get Method's Region
///
/// Serializes this request as a string.
/// since: v0.0.0
///
public string Serialize()
{
return JsonSerializer.Serialize(this);
}
#endregion
//-------------------------------------------------
#region Set Method's Region
// some methods here
#endregion
//-------------------------------------------------
#region static Method's Region
#endregion
//-------------------------------------------------
}
}