Ejemplo n.º 1
0
        public void removeMember(string memberName)
        {
            lock (members)
            {
                FCMember removeObject = null;
                foreach (FCMember member in members)
                {
                    if (member.handle.Equals(memberName))
                    {
                        removeObject = member;
                    }
                }

                if (removeObject != null)
                {
                    members.Remove(removeObject);
                }
            }
        }
Ejemplo n.º 2
0
        public void inviteMember(string memberName)
        {
            bool alreadyExists = false;

            foreach (FCMember member in members)
            {
                if (member.handle.Equals(memberName))
                {
                    alreadyExists = true;
                }
            }

            if (!alreadyExists)
            {
                FCMember member = new FCMember();
                member.handle          = memberName;
                member.timestampInvite = TimeUtils.getUnixTimeUint32();
                members.Add(member);
            }
        }