Ejemplo n.º 1
0
 public CallInfo GetLastConnectionInfo(PhoneNumber source)
 {
     return(_connectionCollection.FirstOrDefault(info => (info.Source == source || info.Target == source)));
 }
Ejemplo n.º 2
0
 public ITerminal GetTerminal(PhoneNumber phoneNumber)
 {
     return(this._terminals.FirstOrDefault(terminal => terminal.PhoneNumber == phoneNumber));
 }
Ejemplo n.º 3
0
 public IEnumerable <CallInfo> GetCallInfo(PhoneNumber source)
 {
     return(_callCollection.Where(info => (info.Source == source || info.Target == source)));
 }
Ejemplo n.º 4
0
 public Request(PhoneNumber source, PhoneNumber target, int code)
 {
     this.Source = source;
     this.Target = target;
     this.Code   = code;
 }