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

            return((castObj != null) && (this.Id == castObj.Id));
        }
Ejemplo n.º 2
0
        public SECUserCompany(SECUserCompany 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.Company = (data.Company != null) ? new SECCompany(data.Company, Options.Light) : null;
                    this.User    = (data.User != null) ? new SECUser(data.User, Options.Light) : null;
                }
            }
        }