Exemplo n.º 1
0
 public bool ChangeGroupProfile(Group modified)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////


        #region Cache Methods
        /////////////////////////////////////////////////////////////////////////////////////////////////////

        public void UpdateCache(Group group)
        {
            //no cache available on client
        }
Exemplo n.º 3
0
        /// <summary>
        /// This is the init/copy method for this class.
        /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
        /// </summary>
        /// <param name="objToCopy"></param>
        protected bool Init(Group objToCopy)
        {
            if (objToCopy == null)
                return false;

            //save the values of the properties with private setters:
            ID = objToCopy.ID;
            Name = objToCopy.Name;
            Policy = objToCopy.Policy;
            Preferences = objToCopy.Preferences;
            ShortDescription = objToCopy.ShortDescription;
            Description = objToCopy.Description;
            CreatorID = objToCopy.CreatorID;
            NumOfSnippets = objToCopy.NumOfSnippets;

            //if the object to copy comes from a JSON deserialization, take the arguments from the helper class:
            if (objToCopy is GroupComm)
            {
                GroupComm jsonObj = (GroupComm)objToCopy;
                ID = (objToCopy.ID > 0) ? objToCopy.ID : jsonObj.CommID;
                Preferences = (objToCopy.Preferences == null) ? objToCopy.Preferences : jsonObj.CommPreferences;
                CreatorID = (objToCopy.CreatorID > 0) ? objToCopy.CreatorID : jsonObj.CommCreatorID;
                m_membersCount = (objToCopy.MembersCount > 0) ? objToCopy.MembersCount : jsonObj.CommMembersCount;
            }

            return true;
        }