예제 #1
0
 public RequestEvents(int eventsToSend, long lastProcessedId, FeedId feedId, DateTime earliestEventsToSend)
 {
     EventsToSend         = eventsToSend;
     LastProcessedId      = lastProcessedId;
     FeedId               = feedId;
     EarliestEventsToSend = earliestEventsToSend;
 }
예제 #2
0
 public AtomFeedCreated(DocumentId documentId, string feedTitle, string feedAuthor, FeedId feedId)
 {
     DocumentId = documentId;
     FeedTitle = feedTitle;
     FeedAuthor = feedAuthor;
     FeedId = feedId;
 }
예제 #3
0
 public AtomFeedCreated(DocumentId documentId, string feedTitle, string feedAuthor, FeedId feedId)
 {
     DocumentId = documentId;
     FeedTitle  = feedTitle;
     FeedAuthor = feedAuthor;
     FeedId     = feedId;
 }
예제 #4
0
 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));
 }
예제 #6
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                FeedId.ToBytes(),
                Channels.ToBytes(),
                AlsoNewlyJoined.ToBytes()));
 }
예제 #7
0
        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));
        }
예제 #8
0
 public AtomFeedCreationCommand(
     string title,
     string author,
     FeedId feedId,
     DocumentId earlierEventsDocumentId)
 {
     Title  = title;
     Author = author;
     FeedId = feedId;
     EarlierEventsDocumentId = earlierEventsDocumentId;
 }
 public AtomFeedCreationCommand(
     string title,
     string author,
     FeedId feedId,
     DocumentId earlierEventsDocumentId)
 {
     Title = title;
     Author = author;
     FeedId = feedId;
     EarlierEventsDocumentId = earlierEventsDocumentId;
 }
예제 #10
0
 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;
 }
예제 #12
0
 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 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;
 }
예제 #14
0
 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;
 }
예제 #15
0
 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;
 }
예제 #16
0
 public List <ItemEnvelope <T> > Get(int maxEventsToSend, long lastNumberProcessed, FeedId requester)
 {
     return(items.Where(x => x.ItemSequenceNumber > lastNumberProcessed).Take(maxEventsToSend).ToList());
 }
예제 #17
0
 public FeedDeleted(FeedId feedId)
 {
     FeedId = feedId;
 }
예제 #18
0
 public DocumentFull(FeedId feedId, DocumentId documentId)
 {
     FeedId     = feedId;
     DocumentId = documentId;
 }