Esempio n. 1
0
        internal RelationshipComposer(uint userID, UserDataFactory data)
        {
            this.UserID = userID;
            foreach (Relationship relation in data.GetRelationships())
            {
                if (!this.composedRelations.ContainsKey(relation.targetID))
                {
                    composedRelations.Add(relation.targetID, relation.relationshipStatus);

                    switch (relation.relationshipStatus)
                    {
                    case 1:
                        relationshipStatusIndex[0]++;
                        break;

                    case 2:
                        relationshipStatusIndex[1]++;
                        break;

                    case 3:
                        relationshipStatusIndex[2]++;
                        break;
                    }
                }
            }
        }