示例#1
0
        public static WebData <TData> Load_v1(WebDataManager <TData> webDataManager, WebRequest request)
        {
            WebData <TData> webData = new WebData <TData>(webDataManager, request);

            webData.Load_v1();
            return(webData);
        }
示例#2
0
        //[Obsolete]
        //public Action<TData> LoadImages { get { return _loadImages; } set { _loadImages = value; } }

        //public WebDataManager()
        //{
        //    InitSerializer();
        //}

        public WebData <TData> Load(WebRequest request)
        {
            if (_version == 1)
            {
                return(Load_v1(request));
            }
            else if (_version == 2)
            {
                return(WebData <TData> .Load_v1(this, request));
            }
            //else // if (_version == 3)
            //    return WebData<TData>.Load_v2(this, request);
            throw new PBException($"bad version {_version}");
        }