public override void HandleError(Roar.RequestResult info) { if (urbanAirshipRegistrationFailed != null) { urbanAirshipRegistrationFailed(info.msg); } }
public void OnError(Roar.RequestResult info) { // Reset this function call model.isServerCalling = false; if (cb != null) { cb(new Roar.CallbackInfo <IDictionary <string, CT> >(null, info.code, info.msg)); } }
public void OnRequest(Roar.RequestResult info) { Prologue(); if (info.code != IWebAPI.OK) { if (cb_ != null) { cb_.OnError(info); } OnFailure(info); } else { T result_data = converter_.Build(info.data); Roar.CallbackInfo <T> result = new Roar.CallbackInfo <T> (result_data, info.code, info.msg); if (cb_ != null) { cb_.OnSuccess(result); } OnSuccess(result); } Epilogue(); }
public virtual void OnFailure(Roar.RequestResult info) { }