Snapshot Class¶
-
class
rosteron.Snapshot(time: datetime.datetime, items: Sequence[Item])¶ A
Snapshotobject represents the state of a RosterOn user’s roster at a specific point in time.Snapshotobjects are returned directly by theSession.get_roster()method, are subscriptable, are iterable, and have a length corresponding to the number of containedItems:>>> snapshot[0] == snapshot.items[0] True >>> [item for item in snapshot][0] == snapshot.items[0] True >>> len(snapshot) == len(snapshot.items) True
Parameters: