Example #1
0
        public override void onHttpStatusOK(QQHttpResponse response)
        {
            BitmapImage bmp = new BitmapImage();

            bmp.BeginInit();
            bmp.StreamSource = new MemoryStream(response.getResponseData());
            bmp.EndInit();
            user.setFace(bmp);
            notifyActionEvent(QQActionEvent.Type.EVT_OK, user);
        }
Example #2
0
 /** {@inheritDoc} */
 public override void onHttpStatusOK(QQHttpResponse response)
 {
     try {
         BitmapImage bmp = new BitmapImage();
         bmp.BeginInit();
         bmp.StreamSource = new MemoryStream(response.getResponseData());
         bmp.EndInit();
         notifyActionEvent(QQActionEvent.Type.EVT_OK, bmp);
     } catch (IOException e) {
         notifyActionEvent(QQActionEvent.Type.EVT_ERROR, new QQException(QQWpfApplication1.action.QQException.QQErrorCode.UNKNOWN_ERROR, e));
     }
 }