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