public LLContent(String id, double lon, double lat, String label, DateTime time, LLProperties properties) { this.id = id; this.lon = lon; this.lat = lat; //this.label = label; //this.time = time; this.properties = properties.properties; }
/// <summary> /// Updates an existing geofence referred by the provided id. /// </summary> /// <param name="id"> /// A <see cref="String"/> identify the geofence to be updated /// </param> /// <param name="properties"> /// A <see cref="LLProperties"/> object with updated values /// </param> /// <returns> /// A <see cref="System.Boolean"/> indicating success or failure of the call /// </returns> public bool Update(String id, LLProperties properties) { try { String http_url = this.SiteUrl + "/" + HttpUtility.HtmlEncode(id); Dictionary<String, String> http_headers = new Dictionary<string, string>(); http_headers.Add("Accept", "application/json"); http_headers.Add("Content-Type", "application/json"); String body = JsonConvert.SerializeObject(properties, Formatting.Indented); this.MakeRequest(http_url, "PUT", http_headers, body, null); return true; } catch (HttpError err) { return false; } }