Exemplo n.º 1
0
 public GetCourseList(string id, string password, Action <string> logDelegate)
 {
     _httpHelper   = new HTTPHelper(5000);
     _jpgreader    = new Readjpg();
     _userId       = id;
     _userPassword = password;
     _logDelegate  = logDelegate;
 }
Exemplo n.º 2
0
 public GetCourseList(string id, string password, Action<string> logDelegate)
 {
     _httpHelper = new HTTPHelper(5000);
     _jpgreader = new Readjpg();
     _userId = id;
     _userPassword = password;
     _logDelegate = logDelegate;
 }
Exemplo n.º 3
0
        public static string GetResponseJpgCode(HttpWebRequest request, Readjpg jpgreader)
        {
            HttpWebResponse response  = (HttpWebResponse)request.GetResponse();
            Stream          RawStream = response.GetResponseStream();

            string jpgcode = jpgreader.Bmp2Text(RawStream);

            RawStream.Close();

            return(jpgcode);
        }
Exemplo n.º 4
0
        public static string GetResponseJpgCode(HttpWebRequest request, Readjpg jpgreader)
        {
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            Stream RawStream = response.GetResponseStream();

            string jpgcode = jpgreader.Bmp2Text(RawStream);

            RawStream.Close();

            return jpgcode;
        }