public void InitCallback(NSDictionary data, NSError error) { if (callback == null) { return; } if (error == null) { callback.InitSessionComplete(BranchIOSUtils.ToDictionary(data)); } else { BranchError err = new BranchError(error.Description, (int)error.Code); callback.SessionRequestError(err); } }
public void SetIdentityCallback(NSDictionary data, NSError error) { if (callback == null) { return; } if (error == null) { callback.IdentitySet(BranchIOSUtils.ToDictionary(data)); } else { BranchError err = new BranchError(error.Description, (int)error.Code); callback.IdentityRequestError(err); } }
public void GetCreditHistoryCallback(NSObject[] list, NSError error) { if (callback == null) { return; } if (error == null) { callback.CreditHistory(BranchIOSUtils.ToCreditHistoryArray(list)); } else { BranchError err = new BranchError(error.Description, (int)error.Code); callback.RewardsRequestError(err); } }
public void InitCallback(IOSNativeBranch.BranchUniversalObject buo, IOSNativeBranch.BranchLinkProperties blp, NSError error) { if (callback == null) { return; } if (error == null) { callback.InitSessionComplete(new BranchUniversalObject(BranchIOSUtils.ToDictionary(buo)), new BranchLinkProperties(BranchIOSUtils.ToDictionary(blp))); } else { BranchError err = new BranchError(error.Description, (int)error.Code); callback.SessionRequestError(err); } }