internal static void UpdateTrack(string Token, GeoTag GTag) { List <GeoTag> tGTags; if (TrackingDetails.TryGetValue(Token, out tGTags)) { if (GTag.TimeStamp < tGTags.Last().TimeStamp) { tGTags.Add(GTag); tGTags = tGTags.OrderBy(x => x.TimeStamp).ToList(); } else { tGTags.Add(GTag); } } else { tGTags = new List <GeoTag>(); tGTags.Add(GTag); TrackingDetails.Add(Token, tGTags); //BroadCaster //1.1 Queue command //1.2 DB Delegate update DB - should go to track Table //if (Dummies4SOS.Members == null) Dummies4SOS.InitializeAllDataSet(); //Profile pr = Dummies4SOS.Members.Find(x => x.SOSToken == Token); //if (pr != null) //{ // pr.IsTrackingOn = true; //} //Triangulation } }
internal static List <GeoTag> FetchTrack(string Token) { List <GeoTag> tGTags = null; TrackingDetails.TryGetValue(Token, out tGTags); return(tGTags); }