View Source Glific.Groups.ContactGroups (Glific v5.1.6)
Simple container to hold all the contact groups we associate with one contact
Link to this section Summary
Functions
Returns the list of contact groups structs.
Creates and/or deletes a list of contact groups, each group attached to the same contact
Link to this section Types
@type t() :: %Glific.Groups.ContactGroups{ contact_groups: [Glific.Groups.ContactGroup.t()], number_deleted: non_neg_integer() }
Link to this section Functions
@spec list_contact_groups(map()) :: [Glific.Groups.ContactGroup.t()]
Returns the list of contact groups structs.
examples
Examples
iex> list_contact_groups()
[%ContactGroup{}, ...]
Creates and/or deletes a list of contact groups, each group attached to the same contact