public BatchDto(Clients.DebugApi.V1_2_1.Stamps2 stamps) { if (stamps is null) { throw new ArgumentNullException(nameof(stamps)); } BatchID = stamps.BatchID; BatchTTL = stamps.BatchTTL; BlockNumber = stamps.BlockNumber; BucketDepth = stamps.BucketDepth; Depth = stamps.Depth; ImmutableFlag = stamps.ImmutableFlag; Value = stamps.Value; Owner = stamps.Owner; }
public PostageBatchDto(Clients.DebugApi.V1_2_1.Stamps2 batch) { if (batch is null) { throw new ArgumentNullException(nameof(batch)); } Id = batch.BatchID; BatchTTL = batch.BatchTTL; BlockNumber = batch.BlockNumber; BucketDepth = batch.BucketDepth; Depth = batch.Depth; Exists = true; ImmutableFlag = batch.ImmutableFlag; NormalisedBalance = long.Parse(batch.Value, CultureInfo.InvariantCulture); OwnerAddress = batch.Owner; Usable = true; }