public TweetController( ITweetQueryExecutor tweetQueryExecutor, ITweetFactory tweetFactory, IGeoFactory geoFactory) { _tweetQueryExecutor = tweetQueryExecutor; _tweetFactory = tweetFactory; _geoFactory = geoFactory; }
public TweetController( ITweetQueryExecutor tweetQueryExecutor, IUploadQueryExecutor uploadQueryExecutor, ITweetFactory tweetFactory, IGeoFactory geoFactory) { _tweetQueryExecutor = tweetQueryExecutor; _uploadQueryExecutor = uploadQueryExecutor; _tweetFactory = tweetFactory; _geoFactory = geoFactory; }
public TweetSearchParameters( IUnityFactory <IGeoCode> geoCodeUnityFactory, IGeoFactory geoFactory) { _geoCodeUnityFactory = geoCodeUnityFactory; _geoFactory = geoFactory; MaximumNumberOfResults = -1; SinceId = -1; MaxId = -1; TweetSearchFilter = TweetSearchFilter.All; }
public TweetController( ITweetQueryExecutor tweetQueryExecutor, ITweetQueryValidator tweetQueryValidator, IUploadQueryExecutor uploadQueryExecutor, ITweetFactory tweetFactory, IGeoFactory geoFactory) { _tweetQueryExecutor = tweetQueryExecutor; _tweetQueryValidator = tweetQueryValidator; _uploadQueryExecutor = uploadQueryExecutor; _tweetFactory = tweetFactory; _geoFactory = geoFactory; }
private static void Initialize() { _geoFactory = TweetinviContainer.Resolve <IGeoFactory>(); _geoController = TweetinviContainer.Resolve <IGeoController>(); }
private static void Initialize() { _geoFactory = TweetinviContainer.Resolve<IGeoFactory>(); _geoController = TweetinviContainer.Resolve<IGeoController>(); }
/// <summary> /// Creates a new parser instance /// </summary> /// <param name="fallbackRadius">fallback radius</param> /// <param name="factory">used factory to create geoCircles. ignore or set this value to default or null to use the default factory.</param> /// <param name="doubleArrayParser">used parser for the input values. set default or null to use the default parser.</param> public GeoCircleParser(double fallbackRadius = DefaultFallbackRadius, IGeoFactory?factory = default, IParser <double>?doubleArrayParser = default) { _fallbackRadius = fallbackRadius; _doubleParser = doubleArrayParser ?? new DoubleParser(); _factory = factory ?? new GeoFactory(); }