コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((UnitsRange != null ? UnitsRange.GetHashCode() : 0) * 397) ^ (Signature != null ? Signature.GetHashCode() : 0));
     }
 }
コード例 #2
0
 public DataDeliveryReceiptRequest(uint number, Keccak depositId, UnitsRange unitsRange,
                                   bool isSettlement = false, IEnumerable <DataDeliveryReceiptToMerge> receiptsToMerge = null)
 {
     Number          = number;
     DepositId       = depositId;
     UnitsRange      = unitsRange;
     IsSettlement    = isSettlement;
     ReceiptsToMerge = receiptsToMerge ?? Enumerable.Empty <DataDeliveryReceiptToMerge>();
 }
コード例 #3
0
 public DataDeliveryReceiptRequest WithRange(UnitsRange range, uint number)
 => new DataDeliveryReceiptRequest(number, DepositId, range, IsSettlement, ReceiptsToMerge);
コード例 #4
0
 public DataDeliveryReceiptToMerge(UnitsRange unitsRange, Signature signature)
 {
     UnitsRange = unitsRange;
     Signature  = signature;
 }