Example #1
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(OneAllToken objToCopy)
        {
            if (objToCopy == null)
            {
                return(false);
            }

            //save the values of the properties with private setters:
            UserID         = objToCopy.UserID;
            Token          = objToCopy.Token;
            Provider       = objToCopy.Provider;
            OneAllNickname = objToCopy.OneAllNickname;
            TokenIsValid   = objToCopy.TokenIsValid;

            return(true);
        }
Example #2
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(OneAllToken objToCopy)
        {
            if (objToCopy == null)
                return false;

            //save the values of the properties with private setters:
            UserID = objToCopy.UserID;
            Token = objToCopy.Token;
            Provider = objToCopy.Provider;
            OneAllNickname = objToCopy.OneAllNickname;
            TokenIsValid = objToCopy.TokenIsValid;

            return true;
        }