C# Класс SIPSorcery.Entities.SimpleWizardRule

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CreateSimpleWizardRule() публичный статический Метод

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.
Результат SimpleWizardRule

GetEndHour() публичный Метод

public GetEndHour ( ) : int
Результат int

GetEndMinute() публичный Метод

public GetEndMinute ( ) : int
Результат int

GetStartHour() публичный Метод

public GetStartHour ( ) : int
Результат int

GetStartMinute() публичный Метод

public GetStartMinute ( ) : int
Результат int

IsTimeMatch() публичный Метод

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.
Результат bool

MatchedDays() публичный Метод

Gets a list of the days that the rule's time pattern matches.
public MatchedDays ( ) : List
Результат List