예제 #1
0
        public string GetLatestMessagesReceivedQuery(IMessageGetLatestsReceivedRequestParameters queryParameters)
        {
            var query = new StringBuilder(String.Format(Resources.Message_GetMessagesReceived, queryParameters.MaximumNumberOfMessagesToRetrieve));

            query.Append(_queryParameterGenerator.GenerateMaxIdParameter(queryParameters.MaxId));
            query.Append(_queryParameterGenerator.GenerateSinceIdParameter(queryParameters.SinceId));
            query.Append(_queryParameterGenerator.GenerateIncludeEntitiesParameter(queryParameters.IncludeEntities));
            query.Append(_queryParameterGenerator.GenerateSkipStatusParameter(queryParameters.SkipStatus));
            query.Append(_queryParameterGenerator.GenerateAdditionalRequestParameters(queryParameters.FormattedCustomQueryParameters));

            return(query.ToString());
        }
예제 #2
0
        public string GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters queryParameters)
        {
            string query = _messageQueryGenerator.GetLatestMessagesReceivedQuery(queryParameters);

            return(_twitterAccessor.ExecuteJsonGETQuery(query));
        }
예제 #3
0
 public static string GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters queryParameters)
 {
     return MessageJsonController.GetLatestMessagesReceived(queryParameters);
 }
예제 #4
0
 public static async Task <IEnumerable <IMessage> > GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
 {
     return(await Sync.ExecuteTaskAsync(() => Message.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters)));
 }
예제 #5
0
        public IEnumerable <IMessageDTO> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters queryParameters)
        {
            string query = _messageQueryGenerator.GetLatestMessagesReceivedQuery(queryParameters);

            return(_twitterAccessor.ExecuteGETQuery <IEnumerable <IMessageDTO> >(query));
        }
예제 #6
0
 public static async Task<IEnumerable<IMessage>> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
 {
     return await Sync.ExecuteTaskAsync(() => Message.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters));
 }
예제 #7
0
 public IEnumerable<IMessage> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
 {
     var messagesDTO = _messageQueryExecutor.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters);
     return _messageFactory.GenerateMessagesFromMessagesDTO(messagesDTO);
 }
예제 #8
0
 public static IEnumerable <IMessage> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
 {
     return(MessageController.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters));
 }
 public string GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters queryParameters)
 {
     string query = _messageQueryGenerator.GetLatestMessagesReceivedQuery(queryParameters);
     return _twitterAccessor.ExecuteJsonGETQuery(query);
 }
예제 #10
0
 public static IEnumerable<IMessage> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
 {
     return MessageController.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters);
 }
예제 #11
0
 public static string GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters queryParameters)
 {
     return(MessageJsonController.GetLatestMessagesReceived(queryParameters));
 }
예제 #12
0
        public IEnumerable <IMessage> GetLatestMessagesReceived(IMessageGetLatestsReceivedRequestParameters messageGetLatestsReceivedRequestParameters)
        {
            var messagesDTO = _messageQueryExecutor.GetLatestMessagesReceived(messageGetLatestsReceivedRequestParameters);

            return(_messageFactory.GenerateMessagesFromMessagesDTO(messagesDTO));
        }