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

Link to this function

list_contact_groups(args)

View Source
@spec list_contact_groups(map()) :: [Glific.Groups.ContactGroup.t()]

Returns the list of contact groups structs.

examples

Examples

iex> list_contact_groups()
[%ContactGroup{}, ...]
Link to this function

update_contact_groups(attrs)

View Source
@spec update_contact_groups(map()) :: t()

Creates and/or deletes a list of contact groups, each group attached to the same contact