Esempio n. 1
0
        public IEnumerable <LiveLinkEvent> GetEventsForVenue(IPublishedContent venueContent, int?limit)
        {
            var identifier = _umbracoWrapper
                             .GetPropertyValue <string>(venueContent, "developerFacebookPageIdentifier");

            var eventsConfiguration = new FacebookEventsOptions
            {
                Limit = limit
            };

            var config   = new GetEventsConfiguration(eventsConfiguration, identifier);
            var response = _getEventsCall.Call(config);

            return(AsLiveLinkEvents(response.Events, venueContent.Id));
        }
Esempio n. 2
0
 public GetEventsConfiguration(FacebookEventsOptions eventsConfiguration, string identifier)
 {
     EventsConfiguration = eventsConfiguration;
     Identifier          = identifier;
 }
 /// <summary>
 /// Gets a list of events for a user or page with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or name) of the page or user.</param>
 /// <param name="options">The options for the call to the API.</param>
 public SocialHttpResponse GetEvents(string identifier, FacebookEventsOptions options) {
     return Client.DoAuthenticatedGetRequest("/" + identifier + "/events", options);
 }
 /// <summary>
 /// Gets a list of events of a user or page with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The ID of the object.</param>
 /// <param name="options">The options for the call to the API.</param>
 public FacebookEventsResponse GetEvents(string identifier, FacebookEventsOptions options)
 {
     return(FacebookEventsResponse.ParseResponse(Raw.GetEvents(identifier, options)));
 }
 /// <summary>
 /// Gets a list of events of a user or page with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The ID of the object.</param>
 /// <param name="options">The options for the call to the API.</param>
 public FacebookEventsResponse GetEvents(string identifier, FacebookEventsOptions options) {
     return FacebookEventsResponse.ParseResponse(Raw.GetEvents(identifier, options));
 }
 /// <summary>
 /// Gets a list of events for a user or page with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or name) of the page or user.</param>
 /// <param name="options">The options for the call to the API.</param>
 public SocialHttpResponse GetEvents(string identifier, FacebookEventsOptions options)
 {
     return(Client.DoAuthenticatedGetRequest("/" + identifier + "/events", options));
 }