示例#1
0
 //String file
 public ParamHttp(string _sURL, dHttpComplete _dComplete, Object _oContainer, Object _oObj, dHttpComplete _dCustom, string _sAltURL = "", string _sCustom = "", int _nCustom = 0)
 {
     sURL       = _sURL;
     dComplete  = _dComplete;
     oContainer = _oContainer;
     oObj       = _oObj;
     dCustom    = _dCustom;
     sAltURL    = _sAltURL;
     sCustom    = _sCustom;
     nCustom    = _nCustom;
 }
示例#2
0
 //Download file
 public ParamHttp(string _sURL, string _sToFile, dHttpComplete _dComplete, dHttpComplete _dProgress, Object _oContainer, Object _oObj, dHttpComplete _dCustom, string _sAltURL = "", string _sCustom = "", int _nCustom = 0)
 {
     bDownloadFile = true;
     sURL          = _sURL;
     sToFile       = _sToFile;
     dComplete     = _dComplete;
     oContainer    = _oContainer;
     oObj          = _oObj;
     dCustom       = _dCustom;
     sAltURL       = _sAltURL;
     sCustom       = _sCustom;
     nCustom       = _nCustom;
     dProgress     = _dProgress;
 }
示例#3
0
/*
 *              public static void fGetRelease(string _sData) {
 *
 *
 *                              Tags _aReleases = JSON.From<Tags>( _sData);
 *                              foreach(Tag _oRelease in _aReleases) {
 *                                      Debug.fTrace("----------------- " );
 *                                      Debug.fTrace("JSON name: " + _oRelease.name);
 *                                      Commit _Commit =
 *                                      Debug.fTrace("JSON tag_name: " + _oRelease.tag_name);
 *
 *
 *                              }
 *              }*/


        //	public static Tags aTags = new Tags() ;d

        public static void fGetAllTag(Tags _oContainer, string _sURL, dHttpComplete _dFinish, string _sAltURL, string _sRecommendedVer)
        {
            //	Debug.fTrace("getAll Tags");
            Http.fGetHttp(_sURL, fGetTagData, _oContainer, null, _dFinish, _sAltURL, _sRecommendedVer);
        }
示例#4
0
        public static void fDownload(string _sURL, string _sToFile, dHttpComplete _dComplete, dHttpComplete _dProgress, Object _oContainer = null, Object _oObj = null, dHttpComplete _dCustom = null, string _sAltURL = "", string _sCustom = "", int _nCustom = 0)
        {
            ParamHttp _oParam = new ParamHttp(_sURL, _sToFile, _dComplete, _dProgress, _oContainer, _oObj, _dCustom, _sAltURL, _sCustom, _nCustom);

            fGetHttp(_oParam);
        }