예제 #1
0
 public AnswerArgsEvent(int number, int target, StatusCall status, Guid id)
 {
     TelephoneNumber       = number;
     ObjectTelephoneNumber = target;
     StatusInCall          = status;
     Id = id;
 }
예제 #2
0
 public void AnswerToCall(int target, StatusCall state, Guid id)
 {
     DoAnswerEvent(target, state, id); //вызов события
 }
예제 #3
0
 public virtual void DoAnswerEvent(int objectNumber, StatusCall status, Guid id)        //генерация события
 {
     AnswerEvent?.Invoke(this, new AnswerArgsEvent(_number, objectNumber, status, id)); //запуск события
 }
예제 #4
0
 protected virtual void DoAnswerCallEvent(int number, int objectNumber, StatusCall status)
 {
     PortAnswerEvent?.Invoke(this, new AnswerArgsEvent(number, objectNumber, status));//запуск события
 }
예제 #5
0
 public void AnswerCall(int number, int objectNumber, StatusCall state)
 {
     DoAnswerCallEvent(number, objectNumber, state);
 }