Esempio n. 1
0
        public override Boolean Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            SECUser castObj = (SECUser)obj;

            return((castObj != null) && (this.Id == castObj.Id));
        }
Esempio n. 2
0
        public SECUser(SECUser data, Options option) : base(data, option)
        {
            if (option == Options.Light || option == Options.Me || option == Options.All)
            {
                //OptionName.Light

                if (option == Options.Me || option == Options.All)
                {
                    this.Role = (data.Role != null) ? new SECRole(data.Role, Options.Light) : null;
                }
            }
        }