Пример #1
0
 public static IEnumerable <PhoneActivityEntry> FromBinary(BinaryReader binaryReader)
 {
     while (!binaryReader.IsEOF())
     {
         yield return(PhoneActivityEntry.SingleFromBinary(binaryReader));
     }
 }
Пример #2
0
 public static IEnumerable <(string, PhoneActivityEntry)> ExtractWithTimestamp(Stream dataStream)
 {
     foreach (var line in dataStream.ReadLines())
     {
         var phoneActivityEntry = PhoneActivityEntry.TryParse(line);
         if (phoneActivityEntry.HasValue)
         {
             yield return(phoneActivityEntry.Value);
         }
     }
 }
Пример #3
0
 public bool Equals(PhoneActivityEntry other) => From == other.From && To == other.To && Amount.Equals(other.Amount);