You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.8 KiB
64 lines
1.8 KiB
//-----------------------------------------------------------------------
|
|
// <copyright file="CMessageBase.cs" company="Origtek">
|
|
// CMessageBase belongs to Copyright (c) Origtek. All rights reserved.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace OT.COM.SignalerMessage
|
|
{
|
|
/// <summary>
|
|
/// Base of all message
|
|
/// </summary>
|
|
public class CMessageBase
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CMessageBase" /> class
|
|
/// </summary>
|
|
public CMessageBase()
|
|
{
|
|
this.param = new Dictionary<string, object>();
|
|
}
|
|
|
|
// 輔助Plugin Routing
|
|
|
|
/// <summary>
|
|
/// Gets or sets support plugin Routing
|
|
/// </summary>
|
|
public string project { get; set; }
|
|
|
|
// 輔助Plugin Routing
|
|
|
|
/// <summary>
|
|
/// Gets or sets support plugin Routing
|
|
/// </summary>
|
|
public string projectver { get; set; }
|
|
|
|
// 區分此Message主要用途分類
|
|
|
|
/// <summary>
|
|
/// Gets or sets main category message
|
|
/// </summary>
|
|
public string module { get; set; }
|
|
|
|
// 區分此Message次要用途分類
|
|
|
|
/// <summary>
|
|
/// Gets or sets sub category message
|
|
/// </summary>
|
|
public string method { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets parameters
|
|
/// </summary>
|
|
public Dictionary<string, object> param { get; set; }
|
|
|
|
[JsonIgnore]
|
|
/// <summary>
|
|
/// Only for backend usage
|
|
/// </summary>
|
|
public Dictionary<string, object> system_param { get; set; } = new Dictionary<string, object>();
|
|
}
|
|
}
|