示例#1
0
        public VenueStocks GetStocks()
        {
            var heartbeatUri = new Uri(Uri + "/stocks");

            return(JsonHttpHelper.GetDeserializedResponse <VenueStocks>(heartbeatUri));
        }
示例#2
0
        public Stock GetStock(string symbol)
        {
            var heartbeatUri = new Uri(Uri + "/stocks/" + symbol);

            return(JsonHttpHelper.GetDeserializedResponse <Stock>(heartbeatUri));
        }
示例#3
0
        public static T GetHeartbeat <T>(this IHeartbeatable topic)
        {
            var heartbeatUri = new Uri(topic.Uri + "/heartbeat");

            return(JsonHttpHelper.GetDeserializedResponse <T>(heartbeatUri));
        }