Class Window
Inheritance
System.Object
Window
Assembly: SensusAndroid.dll
Syntax
public class Window : Object, IComparable<Window>
Constructors
Window(String)
Declaration
public Window(string windowString)
Parameters
Type |
Name |
Description |
System.String |
windowString |
|
Properties
DayOfTheWeek
Declaration
public Nullable<DayOfWeek> DayOfTheWeek { get; }
Property Value
Type |
Description |
System.Nullable<System.DayOfWeek> |
|
Duration
Declaration
public TimeSpan Duration { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
End
Declaration
public TimeSpan End { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
Start
Declaration
public TimeSpan Start { get; }
Property Value
Type |
Description |
System.TimeSpan |
|
Methods
CompareTo(Window)
Declaration
public int CompareTo(Window comparee)
Parameters
Type |
Name |
Description |
Window |
comparee |
|
Returns
Type |
Description |
System.Int32 |
|
Encompasses(TimeSpan)
Declaration
public bool Encompasses(TimeSpan time)
Parameters
Type |
Name |
Description |
System.TimeSpan |
time |
|
Returns
Type |
Description |
System.Boolean |
|
TimeBetween(DateTime, DateTime)
Calculates time elapsed from a start to end.
Declaration
protected TimeSpan TimeBetween(DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
System.DateTime |
start |
Start.
|
System.DateTime |
end |
End.
|
Returns
Type |
Description |
System.TimeSpan |
Elapsed.
|
TimeTillFutureEnd(TimeSpan)
Calculates time from a reference until the next future occurrence of this window's end.
Declaration
protected TimeSpan TimeTillFutureEnd(TimeSpan reference)
Parameters
Type |
Name |
Description |
System.TimeSpan |
reference |
Reference.
|
Returns
Type |
Description |
System.TimeSpan |
The time till end.
|
TimeTillFutureStart(TimeSpan)
Calculates the time from a reference to the next future occurrence of this window's start.
Declaration
protected TimeSpan TimeTillFutureStart(TimeSpan reference)
Parameters
Type |
Name |
Description |
System.TimeSpan |
reference |
Reference.
|
Returns
Type |
Description |
System.TimeSpan |
The till future start.
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements
System.IComparable<>