C# Class SIPSorcery.Entities.SimpleWizardRule

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Private Properties

Property Type Description
OnCommandChanged void
OnCommandChanging void
OnCommandParameter1Changed void
OnCommandParameter1Changing void
OnCommandParameter2Changed void
OnCommandParameter2Changing void
OnCommandParameter3Changed void
OnCommandParameter3Changing void
OnCommandParameter4Changed void
OnCommandParameter4Changing void
OnDescriptionChanged void
OnDescriptionChanging void
OnDialPlanIDChanged void
OnDialPlanIDChanging void
OnDirectionChanged void
OnDirectionChanging void
OnIDChanged void
OnIDChanging void
OnIsDisabledChanged void
OnIsDisabledChanging void
OnOwnerChanged void
OnOwnerChanging void
OnPatternChanged void
OnPatternChanging void
OnPatternTypeChanged void
OnPatternTypeChanging void
OnPriorityChanged void
OnPriorityChanging void
OnTimePatternChanged void
OnTimePatternChanging void
OnToMatchParameterChanged void
OnToMatchParameterChanging void
OnToMatchTypeChanged void
OnToMatchTypeChanging void
OnToProviderChanged void
OnToProviderChanging void
OnToSIPAccountChanged void
OnToSIPAccountChanging void

Public Methods

Method Description
CreateSimpleWizardRule ( global id, global owner, global dialPlanID, global direction, global priority, global command, global commandParameter1, global isDisabled ) : SimpleWizardRule

Create a new SimpleWizardRule object.

GetEndHour ( ) : int
GetEndMinute ( ) : int
GetStartHour ( ) : int
GetStartMinute ( ) : int
IsTimeMatch ( DateTimeOffset now, string timezone ) : bool

Determines if the current rule should be applied depending on the time pattern that has been applied to it.

MatchedDays ( ) : List

Gets a list of the days that the rule's time pattern matches.

Private Methods

Method Description
OnCommandChanged ( ) : void
OnCommandChanging ( global value ) : void
OnCommandParameter1Changed ( ) : void
OnCommandParameter1Changing ( global value ) : void
OnCommandParameter2Changed ( ) : void
OnCommandParameter2Changing ( global value ) : void
OnCommandParameter3Changed ( ) : void
OnCommandParameter3Changing ( global value ) : void
OnCommandParameter4Changed ( ) : void
OnCommandParameter4Changing ( global value ) : void
OnDescriptionChanged ( ) : void
OnDescriptionChanging ( global value ) : void
OnDialPlanIDChanged ( ) : void
OnDialPlanIDChanging ( global value ) : void
OnDirectionChanged ( ) : void
OnDirectionChanging ( global value ) : void
OnIDChanged ( ) : void
OnIDChanging ( global value ) : void
OnIsDisabledChanged ( ) : void
OnIsDisabledChanging ( global value ) : void
OnOwnerChanged ( ) : void
OnOwnerChanging ( global value ) : void
OnPatternChanged ( ) : void
OnPatternChanging ( global value ) : void
OnPatternTypeChanged ( ) : void
OnPatternTypeChanging ( global value ) : void
OnPriorityChanged ( ) : void
OnPriorityChanging ( global value ) : void
OnTimePatternChanged ( ) : void
OnTimePatternChanging ( global value ) : void
OnToMatchParameterChanged ( ) : void
OnToMatchParameterChanging ( global value ) : void
OnToMatchTypeChanged ( ) : void
OnToMatchTypeChanging ( global value ) : void
OnToProviderChanged ( ) : void
OnToProviderChanging ( global value ) : void
OnToSIPAccountChanged ( ) : void
OnToSIPAccountChanging ( global value ) : void

Method Details

CreateSimpleWizardRule() public static method

Create a new SimpleWizardRule object.
public static CreateSimpleWizardRule ( global id, global owner, global dialPlanID, global direction, global priority, global command, global commandParameter1, global isDisabled ) : SimpleWizardRule
id global Initial value of the ID property.
owner global Initial value of the Owner property.
dialPlanID global Initial value of the DialPlanID property.
direction global Initial value of the Direction property.
priority global Initial value of the Priority property.
command global Initial value of the Command property.
commandParameter1 global Initial value of the CommandParameter1 property.
isDisabled global Initial value of the IsDisabled property.
return SimpleWizardRule

GetEndHour() public method

public GetEndHour ( ) : int
return int

GetEndMinute() public method

public GetEndMinute ( ) : int
return int

GetStartHour() public method

public GetStartHour ( ) : int
return int

GetStartMinute() public method

public GetStartMinute ( ) : int
return int

IsTimeMatch() public method

Determines if the current rule should be applied depending on the time pattern that has been applied to it.
public IsTimeMatch ( DateTimeOffset now, string timezone ) : bool
now DateTimeOffset
timezone string The timezone to adjust for. This will typically be the timezone set by the user that owns /// the dialplan. If no timezone is specified UTC will be assumed.
return bool

MatchedDays() public method

Gets a list of the days that the rule's time pattern matches.
public MatchedDays ( ) : List
return List