예제 #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);