Exemplo n.º 1
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            PurchaseLog log = obj as PurchaseLog;

            return(log.GetType() == obj.GetType() &&
                   log.isVerified == this.isVerified &&
                   log.Time.Equals(this.Time) &&
                   log.Id == this.Id &&
                   log.Username == this.Username);
        }
Exemplo n.º 2
0
 public LogRelation(ref PurchaseLog purchaseLog, User user, double amount)
 {
     PurchaseLog = purchaseLog;
     User        = user;
     Amount      = amount;
 }