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.
|
|
using OT.COM.SignalerMessage; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text;
namespace CounsellorBL {
public class MessageBase { protected string _getCustomData(CRequestMessage i_joRequest, string i_sKey) { string sRes = null;
if(i_joRequest.CUSTOMDATA != null && i_joRequest.CUSTOMDATA.ContainsKey(i_sKey) == true) { sRes = i_joRequest.CUSTOMDATA[i_sKey]; }
return sRes; }
protected string _fetchString(CRequestMessage i_joRequest, string i_sKey) { return _fetchString(i_joRequest.DATA, i_sKey); }
protected string _fetchString(Dictionary<string, object> i_dic, string i_sKey) { string sRes = null;
if (true == i_dic.ContainsKey(i_sKey)) { object obj = i_dic[i_sKey]; if (null != obj) { sRes = obj.ToString(); } } return sRes; }
protected string _getKeyStr(Dictionary<string, object> i_dic, string i_sKey) { string sRes = "";
if (true == i_dic.ContainsKey(i_sKey)) { object obj = i_dic[i_sKey]; if (null != obj) { sRes = obj.ToString(); } } return sRes; }
} }
|