1
This commit is contained in:
18
iMES.Bi.API/APIHelp.cs
Normal file
18
iMES.Bi.API/APIHelp.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace iMES.Bi.API
|
||||
{
|
||||
class APIHelp
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public static class APIExtensions
|
||||
{
|
||||
public static string Request(this JObject JData, string strPro, string strDefault = null)
|
||||
{
|
||||
return JData[strPro] != null ? JData[strPro].ToString() : strDefault;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user