示例#1
0
 public static Snapshot TakeSnapshotFromBundle(Bundle bundle)
 {
     // Is Snapshot not a type of bundle???
     Snapshot snapshot = new Snapshot();
     snapshot.FeedTitle = bundle.Title;
     snapshot.Id = Guid.NewGuid().ToString();
     snapshot.FeedSelfLink = bundle.Links.SelfLink.ToString();
     snapshot.Contents = bundle.SelfLinks();
     snapshot.MatchCount = snapshot.Contents.Count();
     return snapshot;
 }