private ReferenceIdCI UpdateReferenceIds(URN id, IDictionary <string, string> referenceIds) { if (id.Type.Equals(SdkInfo.SimpleTeamIdentifier, StringComparison.InvariantCultureIgnoreCase)) { if (referenceIds == null || !referenceIds.Any()) { referenceIds = new Dictionary <string, string> { { "betradar", id.Id.ToString() } }; } if (!referenceIds.ContainsKey("betradar")) { referenceIds = new Dictionary <string, string>(referenceIds) { { "betradar", id.Id.ToString() } }; } } if (_referenceId == null) { return(new ReferenceIdCI(referenceIds)); } _referenceId.Merge(referenceIds, true); return(_referenceId); }
private ReferenceIdCI UpdateReferenceIds(URN id, IDictionary <string, string> referenceIds) { if (id.IsSimpleTeam()) { if (referenceIds == null || !referenceIds.Any()) { referenceIds = new Dictionary <string, string> { { "betradar", id.Id.ToString() } }; } if (!referenceIds.ContainsKey("betradar")) { referenceIds = new Dictionary <string, string>(referenceIds) { { "betradar", id.Id.ToString() } }; } } if (_referenceId == null) { return(new ReferenceIdCI(referenceIds)); } _referenceId.Merge(referenceIds, true); return(_referenceId); }