Class TimeBounds
Inheritance
System.Object
TimeBounds
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class TimeBounds : object
Constructors
TimeBounds(DateTimeOffset, TimeSpan)
Timebounds constructor.
Declaration
public TimeBounds(DateTimeOffset minTime, TimeSpan duration)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTimeOffset | minTime | earliest time the transaction is valid from |
| TimeSpan | duration | duration window the transaction is valid for |
TimeBounds(Int64, Int64)
Declaration
public TimeBounds(long minTime, long maxTime)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | minTime | |
| System.Int64 | maxTime |
TimeBounds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Timebounds constructor.
Declaration
public TimeBounds(DateTimeOffset? minTime = null, DateTimeOffset? maxTime = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<DateTimeOffset> | minTime | earliest time the transaction is valid from |
| System.Nullable<DateTimeOffset> | maxTime | latest time the transaction is valid to |
TimeBounds(UInt64, UInt64)
Timebounds constructor.
Declaration
public TimeBounds(ulong minTime, ulong maxTime)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt64 | minTime | 64bit Unix timestamp, 0 if unset |
| System.UInt64 | maxTime | 64bit Unix timestamp, 0 if unset |
TimeBounds(TimeSpan)
Timebounds constructor.
Declaration
public TimeBounds(TimeSpan duration)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | duration | duration window the transaction is valid for from now |
Properties
MaxTime
Declaration
public long MaxTime { get; }
Property Value
|
System.Int64
|
MinTime
Declaration
public long MinTime { get; }
Property Value
|
System.Int64
|
Methods
Equals(Object)
Declaration
public override bool Equals(Object o)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | o |
Returns
|
System.Boolean
|
FromXdr(TimeBounds)
Declaration
public static TimeBounds FromXdr(TimeBounds timeBounds)
Parameters
| Type | Name | Description |
|---|---|---|
| stellar_dotnet_sdk.xdr.TimeBounds | timeBounds |
Returns
|
TimeBounds
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
System.Int32
|
ToXdr()
Declaration
public TimeBounds ToXdr()
Returns
|
stellar_dotnet_sdk.xdr.TimeBounds
|