C4W-BOT
Loading...
Searching...
No Matches
Library.CustomerManager Class Reference

Administra la colección global de clientes del sistema. Provee métodos para CRUD, búsquedas, registro de interacciones y generación de reportes. More...

Public Member Functions

 CustomerManager ()
List< CustomerSearchByName (string name)
Customer SearchByMail (string mail)
Customer SearchByPhone (string phone)
List< CustomerSearchByFamilyName (string familyname)
Customer SearchById (string id)
void AddCustomer (Customer customer)
void Delete (Customer customer)
void Modify (string id, string field, string newValue)
 Modifica un campo específico de un cliente según su ID. Soporta cambios en nombre, apellido, mail, teléfono, género o fecha de nacimiento.
void RegisterInteraction (Customer customer, Seller seller, Interaction interaction)
 Registra una interacción entre un cliente y un vendedor. Actualiza el estado del cliente según el tipo de intercambio (Recibido o Enviado) y asocia la interacción a ambos.
DashboardSummary GetDashboard ()
List< CustomerGetInactiveCustomers (int days)
List< CustomerGetUnansweredCustomers (int days)
void AssignCustomerToSeller (Customer customer, Seller seller)
List< InteractionGetCustomerInteractions (Customer customer)
bool TagExists (string id)
void CreateTag (string id, string name, string description)
void AddTagToCustomer (string customerId, string tagId)

Properties

List< CustomerCustomers [get]
List< TagTags [get]

Detailed Description

Administra la colección global de clientes del sistema. Provee métodos para CRUD, búsquedas, registro de interacciones y generación de reportes.

Constructor & Destructor Documentation

◆ CustomerManager()

Library.CustomerManager.CustomerManager ( )

Member Function Documentation

◆ AddCustomer()

void Library.CustomerManager.AddCustomer ( Customer customer)

◆ AddTagToCustomer()

void Library.CustomerManager.AddTagToCustomer ( string customerId,
string tagId )

◆ AssignCustomerToSeller()

void Library.CustomerManager.AssignCustomerToSeller ( Customer customer,
Seller seller )

◆ CreateTag()

void Library.CustomerManager.CreateTag ( string id,
string name,
string description )

◆ Delete()

void Library.CustomerManager.Delete ( Customer customer)

◆ GetCustomerInteractions()

List< Interaction > Library.CustomerManager.GetCustomerInteractions ( Customer customer)

◆ GetDashboard()

DashboardSummary Library.CustomerManager.GetDashboard ( )

◆ GetInactiveCustomers()

List< Customer > Library.CustomerManager.GetInactiveCustomers ( int days)

◆ GetUnansweredCustomers()

List< Customer > Library.CustomerManager.GetUnansweredCustomers ( int days)

◆ Modify()

void Library.CustomerManager.Modify ( string id,
string field,
string newValue )

Modifica un campo específico de un cliente según su ID. Soporta cambios en nombre, apellido, mail, teléfono, género o fecha de nacimiento.

Parameters
idIdentificador del cliente a modificar.
fieldNombre del campo a cambiar (en minúsculas).
newValueNuevo valor para el campo.

◆ RegisterInteraction()

void Library.CustomerManager.RegisterInteraction ( Customer customer,
Seller seller,
Interaction interaction )

Registra una interacción entre un cliente y un vendedor. Actualiza el estado del cliente según el tipo de intercambio (Recibido o Enviado) y asocia la interacción a ambos.

◆ SearchByFamilyName()

List< Customer > Library.CustomerManager.SearchByFamilyName ( string familyname)

◆ SearchById()

Customer Library.CustomerManager.SearchById ( string id)

◆ SearchByMail()

Customer Library.CustomerManager.SearchByMail ( string mail)

◆ SearchByName()

List< Customer > Library.CustomerManager.SearchByName ( string name)

◆ SearchByPhone()

Customer Library.CustomerManager.SearchByPhone ( string phone)

◆ TagExists()

bool Library.CustomerManager.TagExists ( string id)

Property Documentation

◆ Customers

List<Customer> Library.CustomerManager.Customers
get

◆ Tags

List<Tag> Library.CustomerManager.Tags
get

The documentation for this class was generated from the following file: