示例#1
0
        /// <summary>
        ///     Indicates whether the current <see cref="SmsMessageRecord" /> instance is equal to another <see cref="SmsMessageRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="SmsMessageRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(SmsMessageRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.SmtId == that.SmtId);
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify());
            result = result && (this.Text.TrimOrNullify() == that.Text.TrimOrNullify());
            result = result && (this.Current == that.Current);
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            return(result);
        }
示例#2
0
        /// <summary>
        ///     Creates a new <see cref="SmsMessageRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="SmsMessageRecord" /> object instance.
        /// </returns>
        public SmsMessageRecord Clone()
        {
            SmsMessageRecord record = new SmsMessageRecord();

            record.Id          = this.Id;
            record.AddDate     = this.AddDate;
            record.AddBy       = this.AddBy;
            record.ModDate     = this.ModDate;
            record.ModBy       = this.ModBy;
            record.SmtId       = this.SmtId;
            record.Name        = this.Name;
            record.Description = this.Description;
            record.Text        = this.Text;
            record.Current     = this.Current;
            record.SelcoSpId   = this.SelcoSpId;
            return(record);
        }