Ejemplo n.º 1
0
        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);
        }