Esempio n. 1
0
            public override void HandleSuccess(CallbackInfo <WebObjects.User.NetdriveFetchResponse> info)
            {
                //TODO: Move this into the ParseXML function in NetdriveFetchResponse

                /*
                 * string value = "";
                 * string str = null;
                 *
                 * IXMLNode nd = info.data.GetNode("roar>0>user>0>netdrive_get>0>netdrive_field>0>data>0");
                 * if(nd!=null)
                 * {
                 * str = nd.Text;
                 * }
                 * if (str!=null) value = str;
                 *
                 * data.Data_[key] = value;
                 * info.msg = value;
                 *
                 * if ( value==null || value == "")
                 * {
                 * data.logger_.DebugLog("[roar] -- No data for key: "+key);
                 * info.code = IWebAPI.UNKNOWN_ERR;
                 * info.msg = "No data for key: "+key;
                 * cbx( new CallbackInfo<string>( null, IWebAPI.UNKNOWN_ERR, "no data for key: "+key ) );
                 * }
                 */

                data.Data_[key] = info.data;


                cbx(new CallbackInfo <string>(info.data.data, IWebAPI.OK, null));
                RoarManager.OnDataLoaded(key, info.data.data);
            }