public HomeController(ILogData logData, ITipsData tipsData, IArticlesData articlesData, ICompanyData companyData, IFeedData FeedData, IShingleData ShingleData) { _logData = logData; _tipsData = tipsData; _articlesData = articlesData; _companyData = companyData; _feedData = FeedData; _shingleData = ShingleData; }
public static ApiAssetPairRateModel ToApiModel(this IFeedData feedData) { return(new ApiAssetPairRateModel { Ask = feedData.Ask, Bid = feedData.Bid, Id = feedData.Asset }); }
public static FeedData Create(IFeedData src) { return(new FeedData { Asset = src.Asset, Ask = src.Ask, Bid = src.Bid, DateTime = src.DateTime }); }
public static FeedDataEntity CreateNew(IFeedData feedData) { return(new FeedDataEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(feedData.Asset), DateTime = feedData.DateTime, Bid = feedData.Bid, Ask = feedData.Ask }); }
public static ApiMarketData ToApiModel(this IMarketData marketData, IFeedData feedData) { return(new ApiMarketData { Ask = feedData.Ask, AssetPair = marketData.AssetPairId, Bid = feedData.Bid, LastPrice = marketData.LastPrice, Volume24H = marketData.Volume }); }
public async Task SaveAsync(IFeedData feedData) { var newEntity = FeedDataEntity.Profile.CreateNew(feedData); await _tableStorage.InsertOrReplaceAsync(newEntity); }
public void PostToFeed(IFeedData data) { //work here with the Facebook SDK to post to the timeline. }
public FeedLogic(IFeedData feedData) { _feedData = feedData; }
public static double GetPriceForRateConverter(this IFeedData feedData) { //ToDo - Why we take ask here? return(feedData.Ask); }
public void PostToFeed(IFeedData data) { selectedService.PostToFeed (data); }