//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; }
//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; }
/* * 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); }
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); }