* IndividualAggregator.individuals now has type Map<string, Individual>
* PersonaStore.personas now has type Map<string, Persona>
* LocalIdDetails.local_ids now has type Set<string>
+* NoteDetails.notes now has type Set<Note>
Overview of changes from libfolks 0.4.0 to libfolks 0.5.0
=========================================================
}
internal async void _set_notes (Folks.Persona persona,
- owned Gee.HashSet<Note> notes)
+ Set<Note> notes)
{
const string del_t = "DELETE { " +
"?p " + Trf.OntologyDefs.NCO_NOTE + " ?n " +
/**
* {@inheritDoc}
*/
- public HashSet<Note> notes
+ public Set<Note> notes
{
get { return this._notes; }
private set
public string calendar_event_id { get; set; }
private HashSet<Note> _notes;
+
/**
* {@inheritDoc}
*/
- public HashSet<Note> notes
+ public Set<Note> notes
{
get { return this._notes; }
private set
{
- this._notes = value;
+ this._notes = new HashSet<Note> ();
+ foreach (var note in value)
+ this._notes.add (note);
this.notify_property ("notes");
}
}
/**
* The notes about the contact.
*
- * @since 0.4.0
+ * @since UNRELEASED
*/
- public abstract HashSet<Note> notes { get; set; }
+ public abstract Set<Note> notes { get; set; }
}
details.insert (
Folks.PersonaStore.detail_key (PersonaDetail.IM_ADDRESSES), v9);
- Value? v10 = Value (typeof (Gee.HashSet<Note>));
- Gee.HashSet<Note> notes = new Gee.HashSet<Note> ();
+ Value? v10 = Value (typeof (Set<Note>));
+ var notes = new HashSet<Note> ();
Note n1 = new Note (this._note_1);
notes.add (n1);
v10.set_object (notes);
return output_string;
}
+ else if (prop_name == "notes")
+ {
+ Set<Note> notes = (Set<Note>) prop_value.get_object ();
+
+ output_string = "{ ";
+ bool first = true;
+
+ foreach (var note in notes)
+ {
+ if (!first)
+ {
+ output_string += ", ";
+ }
+ output_string += note.uid;
+ first = false;
+ }
+ output_string += " }";
+
+ return output_string;
+ }
else if (prop_name == "structured-name")
{
unowned StructuredName sn = (StructuredName) prop_value.get_object ();