Example #1
0
        // =========================================================================================================

        /// <summary>
        /// 建構子,經由繼承後使用反射取得類別的名稱當作,檔案名稱及WebAPI的方法名稱
        /// </summary>
        public BaseWebAPI()
        {
            CurrentFolderName = TopDataFolderName;
            restURL           = "";
            DataFileName      = this.GetType().Name;
            //子資料夾名稱 = 資料檔案名稱;
            this.ManagerResult = new APIResult();
            EncodingType       = EnctypeMethod.JSON;
        }
Example #2
0
        // =========================================================================================================

        /// <summary>
        /// 建構子,經由繼承後使用反射取得類別的名稱當作,檔案名稱及WebAPI的方法名稱
        /// </summary>
        public BaseWebAPI()
        {
            SetWebAccessCondition("/api/", this.GetType().Name, "Datas", this.GetType().Name);
            encodingType = EnctypeMethod.FORMURLENCODED;
            現在資料夾名稱      = 最上層資料夾名稱;
            url          = "";
            資料檔案名稱       = this.GetType().Name;
            子資料夾名稱       = 資料檔案名稱;
        }