Ejemplo n.º 1
0
 public static IEnumerable <PhoneActivityEntry> FromBinary(BinaryReader binaryReader)
 {
     while (!binaryReader.IsEOF())
     {
         yield return(PhoneActivityEntry.SingleFromBinary(binaryReader));
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 3
0
 public bool Equals(PhoneActivityEntry other) => From == other.From && To == other.To && Amount.Equals(other.Amount);