From: Philip Withnall Date: Fri, 21 Sep 2012 14:19:46 +0000 (+0100) Subject: individual: Clarify that Individuals must contain at least one Persona X-Git-Tag: FOLKS_0_8_0~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c57771050271705d06595f34ad08ab1ed71643f;p=platform%2Fupstream%2Ffolks.git individual: Clarify that Individuals must contain at least one Persona --- diff --git a/folks/individual.vala b/folks/individual.vala index 04888bd..f301dd9 100644 --- a/folks/individual.vala +++ b/folks/individual.vala @@ -62,7 +62,8 @@ public enum Folks.TrustLevel /** * A physical person, aggregated from the various {@link Persona}s the person - * might have, such as their different IM addresses or vCard entries. + * might have, such as their different IM addresses or vCard entries. An + * individual must always contain at least one {@link Persona}. * * When choosing the values of single-valued properties (such as * {@link Individual.alias} and {@link Individual.avatar}; but not multi-valued @@ -941,6 +942,8 @@ public class Folks.Individual : Object, /** * The set of {@link Persona}s encapsulated by this Individual. * + * There must always be at least one Persona in this set. + * * No order is specified over the set of personas, as such an order may be * different across each of the properties implemented by the personas (e.g. * should they be ordered by presence, name, star sign, etc.?).