private Dictionary <string, ILine> GetLinesMap() { if (_linesMap != null) { return(_linesMap); } _linesMap = new Dictionary <string, ILine>(LinesCount); for (var i = 0; i < LinesCount; i++) { ILine line = new YasnaCallerIdLine(i + 1) { Status = (LineStatus)Math.Min(i + 1, 3), }; //حالت های مختلف نمایش شماره توسط مخابرات var strings = new List <string> { "9122800039", "+989122800039", "09122800039", "+989121991334", "00989122800039", "09121991334", "00989121991334", "00982122514321", "02122514321", "2122514321", "22514321", "+982122514321", "09104400039" }; if (LogObjectValue != null) { LogObjectValue("ListOfSampleNumbers", strings); } //انتخاب یک شماره به صورت اختیاری line.Number = strings.OrderBy(x => Guid.NewGuid()).FirstOrDefault(); _linesMap.Add(GetLineKey(line.LineNumber), line); } return(_linesMap); }
private Dictionary <string, ILine> GetLinesMap() { if (_linesMap == null) { _linesMap = new Dictionary <string, ILine>(LinesCount); for (var i = 0; i < LinesCount; i++) { ILine line = new YasnaCallerIdLine(i + 1); _linesMap.Add(GetLineKey(line.LineNumber), line); } } return(_linesMap); }