Skip to content

Instantly share code, notes, and snippets.

@gra-moore
Created July 7, 2012 16:01
Show Gist options
  • Save gra-moore/3067001 to your computer and use it in GitHub Desktop.
Save gra-moore/3067001 to your computer and use it in GitHub Desktop.
EventFeed Service Interface
public interface IEventFeedService
{
void AssertSubscriber(string userName, IEnumerable<Uri> topicsOfInterest);
IEnumerable<IEvent> GetSubscriberTimeline(string userName, DateTime since);
IEnumerable<IEvent> GetTopicTimeline(string topicId, DateTime since);
void AssertTopic(Uri topicId, string label, string description);
dynamic GetEventData(IEvent feedEvent);
void RaiseEvent(string description, DateTime when, IEnumerable<string> topicIds,
Dictionary<string, object> eventProperties = null);
void RegisterInterest(string userName, string topicId);
void RemoveInterest(string userName, string topicId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment