public RequestEvents(int eventsToSend, long lastProcessedId, FeedId feedId, DateTime earliestEventsToSend) { EventsToSend = eventsToSend; LastProcessedId = lastProcessedId; FeedId = feedId; EarliestEventsToSend = earliestEventsToSend; }
public AtomFeedCreated(DocumentId documentId, string feedTitle, string feedAuthor, FeedId feedId) { DocumentId = documentId; FeedTitle = feedTitle; FeedAuthor = feedAuthor; FeedId = feedId; }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), FeedId.ToBytes(), MaxPosition.ToBytes())); }
private void CreateFeed() { feedId = new FeedId(Guid.NewGuid().ToString()); var atomFeedCreationCommand = new AtomFeedCreationCommand("title", "author", feedId, new DocumentId(Guid.NewGuid().ToString())); atomActorRef.Tell(atomFeedCreationCommand); Thread.Sleep(TimeSpan.FromSeconds(1)); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), FeedId.ToBytes(), Channels.ToBytes(), AlsoNewlyJoined.ToBytes())); }
public AtomFeedCreationCommand( string title, string author, FeedId feedId, DocumentId earlierEventsDocumentId) { Title = title; Author = author; FeedId = feedId; EarlierEventsDocumentId = earlierEventsDocumentId; }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Flags.ToBytes(), FeedId.ToBytes(), ToBytes(OffsetPosition, Flags, (int)GetFeedFlags.OffsetPosition), AddOffset.ToBytes(), Limit.ToBytes(), ToBytes(MaxPosition, Flags, (int)GetFeedFlags.MaxPosition), ToBytes(MinPosition, Flags, (int)GetFeedFlags.MinPosition), Hash.ToBytes())); }
public AtomDocumentCreatedEvent( string title, string author, FeedId feedId, DocumentId documentId, DocumentId earlierEventsDocumentId, DocumentId nextEventsDocumentId) { Title = title; Author = author; FeedId = feedId; DocumentId = documentId; EarlierEventsDocumentId = earlierEventsDocumentId; NextEventsDocumentId = nextEventsDocumentId; }
protected override void Prepare() { base.Prepare(); try { _timeZone = TimeZoneInfo.FindSystemTimeZoneById(OutputTimeZone); } catch (Exception) { Console.WriteLine("Invalid Time Zone Name:" + OutputTimeZone); _timeZone = TimeZoneInfo.Local; } feed = new SyndicationFeed(FeedName, "Provided By StalkerProject", new Uri("http://127.0.0.1"), "id=" + FeedId.ToString(), DateTime.Now); }
public AtomFeedState( FeedId atomFeedId, DocumentId currentFeedHeadDocument, DocumentId lastHeadDocument, string feedTitle, string feedAuthor, int numberOfEventsInCurrentHeadDocument, int currentHeadDocumentIndex) { AtomFeedId = atomFeedId; CurrentFeedHeadDocument = currentFeedHeadDocument; LastHeadDocument = lastHeadDocument; FeedTitle = feedTitle; FeedAuthor = feedAuthor; NumberOfEventsInCurrentHeadDocument = numberOfEventsInCurrentHeadDocument; CurrentHeadDocumentIndex = currentHeadDocumentIndex; }
public List <ItemEnvelope <T> > Get(int maxEventsToSend, long lastNumberProcessed, FeedId requester) { return(items.Where(x => x.ItemSequenceNumber > lastNumberProcessed).Take(maxEventsToSend).ToList()); }
public FeedDeleted(FeedId feedId) { FeedId = feedId; }
public DocumentFull(FeedId feedId, DocumentId documentId) { FeedId = feedId; DocumentId = documentId; }