public IEnumerable <IRelationshipStateDTO> GetRelationshipStatesWith(IEnumerable <long> targetUsersId) { string userIds = _userFactoryQueryGenerator.GenerateListOfIdsParameter(targetUsersId); string userIdsParameter = String.Format("user_id={0}", userIds); string query = String.Format(Resources.Friendship_GetRelationships, userIdsParameter); return(_twitterAccessor.ExecuteGETQuery <IEnumerable <IRelationshipStateDTO> >(query)); }
// Lookup public List <IUserDTO> LookupUserIds(List <long> userIds) { if (userIds.Count > MAX_LOOKUP_USERS) { throw new InvalidOperationException("Cannot retrieve that quantity of users at once"); } string userIdsParameter = _queryGenerator.GenerateListOfIdsParameter(userIds); string query = String.Format(Resources.User_GetUsersFromIds, userIdsParameter); return(_twitterAccessor.ExecutePOSTQuery <List <IUserDTO> >(query)); }