Map<Individual, MatchResult>
* IndividualAggregator.individuals now has type Map<string, Individual>
* PersonaStore.personas now has type Map<string, Persona>
+* LocalIdDetails.local_ids now has type Set<string>
Overview of changes from libfolks 0.4.0 to libfolks 0.5.0
=========================================================
/**
* Transform HashSet<string> to "id1,id2,.."
*
- * @since 0.5.0
+ * @since UNRELEASED
*/
- public static string serialize_local_ids (Gee.HashSet<string> local_ids)
+ public static string serialize_local_ids (Set<string> local_ids)
{
var str = "";
/**
* Transform from id1,id2,.. to HashSet<string>
*
- * @since 0.5.0
+ * @since UNRELEASED
*/
- public static Gee.HashSet<string> unserialize_local_ids (string local_ids)
+ public static Set<string> unserialize_local_ids (string local_ids)
{
- Gee.HashSet<string> ids = new Gee.HashSet<string> ();
+ var ids = new HashSet<string> ();
if (local_ids != "")
{
}
internal async void _set_local_ids (Trf.Persona persona,
- Gee.HashSet<string> local_ids)
+ Set<string> local_ids)
{
string ids = Trf.PersonaStore.serialize_local_ids (local_ids);
yield this._set_tracker_property (persona,
}
private HashSet<string> _local_ids = new HashSet<string> ();
+
/**
* IDs used to link {@link Trf.Persona}s.
*/
- public HashSet<string> local_ids
+ public Set<string> local_ids
{
get
{
internal bool _set_local_ids (string local_ids)
{
- this._local_ids = Trf.PersonaStore.unserialize_local_ids (local_ids);
+ this._local_ids =
+ (HashSet<string>) Trf.PersonaStore.unserialize_local_ids (local_ids);
this.notify_property ("local-ids");
return true;
}
if (local_ids.size > 0)
{
- var local_ids_value = Value (typeof (Gee.HashSet<string>));
+ var local_ids_value = Value (typeof (Set<string>));
local_ids_value.set_object (local_ids);
details.insert (
Folks.PersonaStore.detail_key (PersonaDetail.LOCAL_IDS),
}
private HashSet<string> _local_ids;
+
/**
* {@inheritDoc}
*/
- public HashSet<string> local_ids
+ public Set<string> local_ids
{
get { return this._local_ids; }
private set
{
- this._local_ids = value;
+ this._local_ids = new HashSet<string> ();
+ foreach (var id in value)
+ this._local_ids.add (id);
this.notify_property ("local-ids");
}
}
* The IDs corresponding to contacts in a
* backend that we fully trust.
*
- * @since 0.5.0
+ * @since UNRELEASED
*/
- public abstract HashSet<string> local_ids { get; set; }
+ public abstract Set<string> local_ids { get; set; }
}
(Map<string, Persona>) prop_value.get_object ();
return "Set of %u personas".printf (personas.size);
}
- else if (prop_name == "groups")
+ else if (prop_name == "groups" ||
+ prop_name == "local-ids")
{
Set<string> groups = (Set<string>) prop_value.get_object ();
output_string = "{ ";