Fixes: bgo#643957 - Deal handle birthday and postal-addresses.
* Bug 643956 — Use the correct signal name for postal addresses
* Bug 643954 — Add to_string () to PostalAddress class
* Bug 643955 — Add to_string () to RoleOwner class
+* Bug 643957 — Deal handle birthday and postal-addresses.
API changes:
* Add RoleDetails interface
return output_string;
}
+ else if (prop_name == "birthday")
+ {
+ unowned DateTime dobj = (DateTime) prop_value.get_boxed ();
+ if (dobj != null)
+ return dobj.to_string ();
+ else
+ return "";
+ }
+ else if (prop_name == "postal-addresses")
+ {
+ output_string = "{ ";
+ bool first = true;
+ unowned GLib.List<PostalAddress> prop_list =
+ (GLib.List<PostalAddress>) prop_value.get_pointer ();
+
+ foreach (var p in prop_list)
+ {
+ if (!first)
+ {
+ output_string += ". ";
+ }
+ output_string += p.to_string ();
+ first = false;
+ }
+ output_string += " }";
+
+ return output_string;
+ }
return Utils.transform_value_to_string (prop_value);
}