} // Index in PostsList public AccountXDataDetails Add(AccountXDataDetails other) { if (other == null) { throw new ArgumentNullException("other"); } PostsCount += other.PostsCount; PostsVirtualsCount += other.PostsVirtualsCount; PostsClearedCount += other.PostsClearedCount; PostsLast7Count += other.PostsLast7Count; PostsLast30Count += other.PostsLast30Count; PostsThisMountCount += other.PostsThisMountCount; if (!EarliestPost.IsValid() || (other.EarliestPost.IsValid() && other.EarliestPost < EarliestPost)) { EarliestPost = other.EarliestPost; } if (!EarliestClearedPost.IsValid() || (other.EarliestClearedPost.IsValid() && other.EarliestClearedPost < EarliestClearedPost)) { EarliestClearedPost = other.EarliestClearedPost; } if (!LatestPost.IsValid() || (other.LatestPost.IsValid() && other.LatestPost > LatestPost)) { LatestPost = other.LatestPost; } if (!LatestClearedPost.IsValid() || (other.LatestClearedPost.IsValid() && other.LatestClearedPost > LatestClearedPost)) { LatestClearedPost = other.LatestClearedPost; } _Filenames.UnionWith(other.Filenames); _AccountsReferenced.UnionWith(other.AccountsReferenced); _PayeesReferenced.UnionWith(other.PayeesReferenced); return(this); }
public AccountXData() { SelfDetails = new AccountXDataDetails(); FamilyDetails = new AccountXDataDetails(); ReportedPosts = new List <Post>(); }