private void TrackThirdPartySharing() { var isEnabledS = Command.GetFirstParameterValue("isEnabled"); ADJThirdPartySharing thirdPartySharing; if (isEnabledS != null) { thirdPartySharing = new ADJThirdPartySharing(NSNumber.FromBoolean(bool.Parse(isEnabledS))); } else { thirdPartySharing = new ADJThirdPartySharing(); } // TODO: seems to be broken, fix it later if (Command.ContainsParameter("granularOptions")) { var granularOptions = Command.Parameters["granularOptions"]; for (var i = 0; i < granularOptions.Count; i = i + 3) { var partnerName = granularOptions[i]; var key = granularOptions[i + 1]; var value = granularOptions[i + 2]; thirdPartySharing.AddGranularOption(partnerName, key, value); } } Adjust.TrackThirdPartySharing(thirdPartySharing); }
private void TrackThirdPartySharing() { var isEnabledS = Command.GetFirstParameterValue("isEnabled"); AdjustThirdPartySharing thirdPartySharing = new AdjustThirdPartySharing( isEnabledS == null ? null : Java.Lang.Boolean.ValueOf(isEnabledS)); if (Command.ContainsParameter("granularOptions")) { var granularOptions = Command.Parameters["granularOptions"]; for (var i = 0; i < granularOptions.Count; i = i + 3) { var partnerName = granularOptions[i]; var key = granularOptions[i + 1]; var value = granularOptions[i + 2]; thirdPartySharing.AddGranularOption(partnerName, key, value); } } Adjust.TrackThirdPartySharing(thirdPartySharing); }