Exemplo n.º 1
0
 public void AddRecord(ISSPosition position)
 {
     if (history.Count > 500)
     {
         history.RemoveAt(0);
     }
     history.Add(position);
 }
Exemplo n.º 2
0
        public static async Task <ISSPosition> GetISSPositionAsync(string path)
        {
            ISSPosition         position = null;
            HttpResponseMessage response = await client.GetAsync(path);

            if (response.IsSuccessStatusCode)
            {
                position = await response.Content.ReadAsAsync <ISSPosition>();
            }
            return(position);
        }