Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution Class Reference
Inheritance diagram for Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution:

Public Member Functions

 DateTimeResolution (Reference?reference=null, int?year=null, int?month=null, int?day=null, int?week=null, DayOfWeek?dayOfWeek=null, DayPart?dayPart=null, int?hour=null, int?minute=null, int?second=null)
 
 DateTimeResolution (System.DateTime dateTime)
 
bool Equals (DateTimeResolution other)
 
override bool Equals (object other)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool TryParse (string text, out DateTimeResolution resolution)
 

Public Attributes

const RegexOptions Options = RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace
 
const string PatternDate
 
const string PatternTime
 

Static Public Attributes

static readonly string Pattern = $"^({PatternDate}{PatternTime} | {PatternDate} | {PatternTime})$"
 
static readonly Regex Regex = new Regex(Pattern, Options)
 

Properties

int Day [get]
 
DayOfWeek DayOfWeek [get]
 
DayPart DayPart [get]
 
int Hour [get]
 
int Minute [get]
 
int Month [get]
 
Reference Reference [get]
 
int Second [get]
 
int Week [get]
 
int Year [get]
 

Detailed Description

Definition at line 100 of file Resolution.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.DateTimeResolution ( Reference reference = null,
int?  year = null,
int?  month = null,
int?  day = null,
int?  week = null,
DayOfWeek dayOfWeek = null,
DayPart dayPart = null,
int?  hour = null,
int?  minute = null,
int?  second = null 
)
inline

Definition at line 117 of file Resolution.cs.

Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.DateTimeResolution ( System.DateTime  dateTime)
inline

Definition at line 137 of file Resolution.cs.

Member Function Documentation

bool Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Equals ( DateTimeResolution  other)
inline

Definition at line 146 of file Resolution.cs.

override bool Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Equals ( object  other)
inline

Definition at line 160 of file Resolution.cs.

override int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.GetHashCode ( )
inline

Definition at line 164 of file Resolution.cs.

override string Microsoft.Bot.Builder.Luis.Resolution.ToString ( )
inlineinherited

Definition at line 47 of file Resolution.cs.

static bool Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.TryParse ( string  text,
out DateTimeResolution  resolution 
)
inlinestatic

Definition at line 265 of file Resolution.cs.

Member Data Documentation

const RegexOptions Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Options = RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace

Definition at line 207 of file Resolution.cs.

readonly string Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Pattern = $"^({PatternDate}{PatternTime} | {PatternDate} | {PatternTime})$"
static

Definition at line 206 of file Resolution.cs.

const string Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.PatternDate
Initial value:
=
@"
(?:
(?<year>X+|\d+)
(?:
-
(?<weekM>W)?
(?<month>X+|\d+)
(?:
-
(?<weekD>W)?
(?<day>X+|\d+)
)?
)?
)
"

Definition at line 169 of file Resolution.cs.

const string Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.PatternTime
Initial value:
=
@"
(?:
T
(?:
(?<part>MO|MI|AF|EV|NI)
|
(?<hour>X+|\d+)
(?:
:
(?<minute>X+|\d+)
(?:
:
(?<second>X+|\d+)
)?
)?
)
)
"

Definition at line 186 of file Resolution.cs.

readonly Regex Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Regex = new Regex(Pattern, Options)
static

Definition at line 208 of file Resolution.cs.

Property Documentation

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Day
get

Definition at line 106 of file Resolution.cs.

DayOfWeek Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.DayOfWeek
get

Definition at line 109 of file Resolution.cs.

DayPart Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.DayPart
get

Definition at line 111 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Hour
get

Definition at line 113 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Minute
get

Definition at line 114 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Month
get

Definition at line 105 of file Resolution.cs.

Reference Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Reference
get

Definition at line 102 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Second
get

Definition at line 115 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Week
get

Definition at line 108 of file Resolution.cs.

int Microsoft.Bot.Builder.Luis.BuiltIn.DateTime.DateTimeResolution.Year
get

Definition at line 104 of file Resolution.cs.


The documentation for this class was generated from the following file: