Exemplo n.º 1
0
 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
     });
 }
Exemplo n.º 3
0
 public static FeedData Create(IFeedData src)
 {
     return(new FeedData
     {
         Asset = src.Asset,
         Ask = src.Ask,
         Bid = src.Bid,
         DateTime = src.DateTime
     });
 }
Exemplo n.º 4
0
 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
     });
 }
Exemplo n.º 6
0
 public async Task SaveAsync(IFeedData feedData)
 {
     var newEntity = FeedDataEntity.Profile.CreateNew(feedData);
     await _tableStorage.InsertOrReplaceAsync(newEntity);
 }
Exemplo n.º 7
0
 public void PostToFeed(IFeedData data)
 {
     //work here with the Facebook SDK to post to the timeline.
 }
Exemplo n.º 8
0
 public FeedLogic(IFeedData feedData)
 {
     _feedData = feedData;
 }
Exemplo n.º 9
0
 public static double GetPriceForRateConverter(this IFeedData feedData)
 {        //ToDo - Why we take ask here?
     return(feedData.Ask);
 }
Exemplo n.º 10
0
 public void PostToFeed(IFeedData data)
 {
     selectedService.PostToFeed (data);
 }