/// <summary> /// Return a JSON representation of this object. /// </summary> public JObject ToJSON(CustomJObjectSerializerDelegate <NamedGeoCoordinate> CustomNamedGeoCoordinateSerializer = null) { var JSON = JSONObject.Create( new JProperty("geoCoordinate", GeoCoordinate.ToJSON()), Description.IsNeitherNullNorEmpty() ? new JProperty("description", Description.ToJSON()) : null, AttachedImages.SafeAny() ? new JProperty("attachedImages", new JArray(AttachedImages)) : null, AttachedImages.SafeAny() ? new JProperty("attachedFiles", new JArray(AttachedImages)) : null, CustomData.SafeAny() ? new JProperty("customData", new JObject(CustomData.SafeSelect(data => new JProperty(data.Key, data.Value)))) : null ); return(CustomNamedGeoCoordinateSerializer != null ? CustomNamedGeoCoordinateSerializer(this, JSON) : JSON); }
public async Task SaveAttachedImages(string idnotes, string albumPath) { //MÉTODO PARA ALMACENAR LAS IMÁGENES ADJUNTAS POR EL USUARIO await connection.CreateTableAsync <AttachedImages>(); var attached = new AttachedImages(idnotes, albumPath); await connection.InsertOrReplaceAsync(attached); }