public override void GetShortURL(IBranchUrlInterface callback, BranchUniversalObject universalObject, BranchLinkProperties linkProperties) { BranchUrlListener obj = new BranchUrlListener(callback); callbacksList.Add(obj as Object); IO.Branch.Indexing.BranchUniversalObject resBuo = IO.Branch.Indexing.BranchUniversalObject.CreateInstance(BranchAndroidUtils.ToJSONObject(universalObject.ToDictionary())); IO.Branch.Referral.Util.LinkProperties resBlp = new IO.Branch.Referral.Util.LinkProperties(); foreach (string tag in linkProperties.tags) { resBlp.AddTag(tag); } foreach (string key in linkProperties.controlParams.Keys) { resBlp.AddControlParameter(key, linkProperties.controlParams[key]); } resBlp.SetAlias(linkProperties.alias); resBlp.SetChannel(linkProperties.channel); resBlp.SetDuration(linkProperties.matchDuration); resBlp.SetFeature(linkProperties.feature); resBlp.SetStage(linkProperties.stage); resBuo.GenerateShortUrl(appContext, resBlp, obj); }
public override void GetShortURL(IBranchUrlInterface callback, BranchUniversalObject universalObject, BranchLinkProperties linkProperties) { BranchUrlListener obj = new BranchUrlListener(callback); callbacksList.Add(obj as Object); IO.Branch.Indexing.BranchUniversalObject resBuo = BranchAndroidUtils.ToNativeBUO(universalObject); IO.Branch.Referral.Util.LinkProperties resBlp = BranchAndroidUtils.ToNativeBLP(linkProperties); resBuo.GenerateShortUrl(appContext, resBlp, obj); }