Esempio n. 1
0
        //Static methods (e.g., plug-in capabilities or version)
        //ROUTE: ../plugin/test-plugin
        public static string test_plugin(string context_id)
        {
            api_version version = new api_version
            {
                valid           = true,
                g4l_api_version = "1.0"
            };

            var    javaScriptSerializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            string jsonString           = javaScriptSerializer.Serialize(version);

            return(jsonString);
        }
Esempio n. 2
0
        //Static methods (e.g., plug-in capabilities or version)
        //ROUTE: ../plugin/test-plugin
        public static string test_plugin(string context_id)
        {
            api_version version = new api_version
            {
                valid = true,
                g4l_api_version = "1.0"
            };

            var javaScriptSerializer = new System.Web.Script.Serialization.JavaScriptSerializer();
            string jsonString = javaScriptSerializer.Serialize(version);
            return jsonString;
        }