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

Clase fachada que centraliza las operaciones de clientes, vendedores e interacciones. Permite acceder a las funcionalidades del sistema sin exponer su estructura interna. More...

Public Member Functions

string GetAllCustomerInteractions (string customerId)
 Obtiene todas las interacciones de un cliente sin filtros.
string GetCustomerInteractionsByType (string customerId, string interactionType)
string GetCustomerInteractionsByDate (string customerId, string dateStr)
string GetCustomerInteractionsByTypeAndDate (string customerId, string interactionType, string dateStr)

Static Public Member Functions

static DateTime ParseDate (string dateString)
static double ParseDouble (string value)
static ExchangeType ParseExchangeType (string typeString)
static string CreateCustomer (string id, string name, string familyName, string mail, string phone, string gender, string birthDate)
 Crea un nuevo cliente a partir de los datos ingresados y lo agrega al sistema. Devuelve un mensaje de éxito o el mensaje de la excepción lanzada.
static string DeleteCustomer (string id)
 Elimina un cliente del sistema según su ID. Verifica primero si el ID es válido y si el cliente existe.
static string ModifyCustomer (string id, string field, string newValue)
static string SearchCustomer_ById (string id)
static string SearchCostumer_ByName (string name)
static string SearchCostumer_ByFamilyName (string familyname)
static string SearchCostumer_ByPhone (string phone)
static string SearchCostumer_ByMail (string mail)
static string ShowCustomers_BySellerId (string sellerId)
 Muestra todos los clientes asociados a un vendedor específico. Devuelve un listado con los nombres o un mensaje si no hay clientes asignados.
static string AddCustomer (Customer customer)
static string CreateTag (string tagId, string tagName, string tagDescription)
static string AddTag_Customer (string customerId, string tagId)
static string AddNoteToInteraction (string customerId, string interactionType, string interactionTopic, string interactionDate)
static string LastInteraction (string customerId)
static string UnansweredInteractions (string customerId)
static string CreateSeller (string id, string name, string mail, string phone)
static string SearchSeller_ById (string id)
static string AssignCustomer (string customerId, string sellerId)
 Asigna un cliente a un vendedor para distribuir el trabajo en el equipo. Historia de usuario: Como vendedor, quiero poder asignar un cliente a otro vendedor para distribuir el trabajo en el equipo.
static string ExchangeCustomer (string customerId, string oldSellerId, string newSellerId)
static string CallRegister (string dateStr, string topic, string typeStr, string customerId, string sellerId)
static string MeetingRegister (string place, string dateStr, string topic, string typeStr, string customerId, string sellerId)
static string MessageRegister (string dateStr, string topic, string typeStr, string customerId, string sellerId)
static string MailRegister (string dateStr, string topic, string typeStr, string customerId, string sellerId)
static string QuoteRegister (string dateStr, string topic, string typeStr, string amountStr, string description, string customerId, string sellerId)
static string SaleFromQuote (string dateStr, string topic, string typeStr, string amountStr, string product, string customerId, string sellerId)
 Genera una venta a partir de una cotización previa (Quote). Verifica que la cotización coincida con los datos provistos antes de crear la venta.
static string SuspendSeller (string sellerId)
static string EnableSeller (string sellerId)
static string DeleteSeller (string sellerId)
static string GetTotalSales (string startStr, string endStr)
static string GetInactiveCustomersFormatted (int days)
static string GetUnansweredCustomersFormatted (int days)
static string GetDashboardFormatted ()

Static Public Attributes

static CustomerManager cm = Singleton<CustomerManager>.GetInstance()
static SellerManager sm = Singleton<SellerManager>.GetInstance()

Detailed Description

Clase fachada que centraliza las operaciones de clientes, vendedores e interacciones. Permite acceder a las funcionalidades del sistema sin exponer su estructura interna.

Member Function Documentation

◆ AddCustomer()

string Library.Facade.AddCustomer ( Customer customer)
static

◆ AddNoteToInteraction()

string Library.Facade.AddNoteToInteraction ( string customerId,
string interactionType,
string interactionTopic,
string interactionDate )
static

◆ AddTag_Customer()

string Library.Facade.AddTag_Customer ( string customerId,
string tagId )
static

◆ AssignCustomer()

string Library.Facade.AssignCustomer ( string customerId,
string sellerId )
static

Asigna un cliente a un vendedor para distribuir el trabajo en el equipo. Historia de usuario: Como vendedor, quiero poder asignar un cliente a otro vendedor para distribuir el trabajo en el equipo.

◆ CallRegister()

string Library.Facade.CallRegister ( string dateStr,
string topic,
string typeStr,
string customerId,
string sellerId )
static

◆ CreateCustomer()

string Library.Facade.CreateCustomer ( string id,
string name,
string familyName,
string mail,
string phone,
string gender,
string birthDate )
static

Crea un nuevo cliente a partir de los datos ingresados y lo agrega al sistema. Devuelve un mensaje de éxito o el mensaje de la excepción lanzada.

◆ CreateSeller()

string Library.Facade.CreateSeller ( string id,
string name,
string mail,
string phone )
static

◆ CreateTag()

string Library.Facade.CreateTag ( string tagId,
string tagName,
string tagDescription )
static

◆ DeleteCustomer()

string Library.Facade.DeleteCustomer ( string id)
static

Elimina un cliente del sistema según su ID. Verifica primero si el ID es válido y si el cliente existe.

◆ DeleteSeller()

string Library.Facade.DeleteSeller ( string sellerId)
static

◆ EnableSeller()

string Library.Facade.EnableSeller ( string sellerId)
static

◆ ExchangeCustomer()

string Library.Facade.ExchangeCustomer ( string customerId,
string oldSellerId,
string newSellerId )
static

◆ GetAllCustomerInteractions()

string Library.Facade.GetAllCustomerInteractions ( string customerId)

Obtiene todas las interacciones de un cliente sin filtros.

◆ GetCustomerInteractionsByDate()

string Library.Facade.GetCustomerInteractionsByDate ( string customerId,
string dateStr )

◆ GetCustomerInteractionsByType()

string Library.Facade.GetCustomerInteractionsByType ( string customerId,
string interactionType )

◆ GetCustomerInteractionsByTypeAndDate()

string Library.Facade.GetCustomerInteractionsByTypeAndDate ( string customerId,
string interactionType,
string dateStr )

◆ GetDashboardFormatted()

string Library.Facade.GetDashboardFormatted ( )
static

◆ GetInactiveCustomersFormatted()

string Library.Facade.GetInactiveCustomersFormatted ( int days)
static

◆ GetTotalSales()

string Library.Facade.GetTotalSales ( string startStr,
string endStr )
static

◆ GetUnansweredCustomersFormatted()

string Library.Facade.GetUnansweredCustomersFormatted ( int days)
static

◆ LastInteraction()

string Library.Facade.LastInteraction ( string customerId)
static

◆ MailRegister()

string Library.Facade.MailRegister ( string dateStr,
string topic,
string typeStr,
string customerId,
string sellerId )
static

◆ MeetingRegister()

string Library.Facade.MeetingRegister ( string place,
string dateStr,
string topic,
string typeStr,
string customerId,
string sellerId )
static

◆ MessageRegister()

string Library.Facade.MessageRegister ( string dateStr,
string topic,
string typeStr,
string customerId,
string sellerId )
static

◆ ModifyCustomer()

string Library.Facade.ModifyCustomer ( string id,
string field,
string newValue )
static

◆ ParseDate()

DateTime Library.Facade.ParseDate ( string dateString)
static

◆ ParseDouble()

double Library.Facade.ParseDouble ( string value)
static

◆ ParseExchangeType()

ExchangeType Library.Facade.ParseExchangeType ( string typeString)
static

◆ QuoteRegister()

string Library.Facade.QuoteRegister ( string dateStr,
string topic,
string typeStr,
string amountStr,
string description,
string customerId,
string sellerId )
static

◆ SaleFromQuote()

string Library.Facade.SaleFromQuote ( string dateStr,
string topic,
string typeStr,
string amountStr,
string product,
string customerId,
string sellerId )
static

Genera una venta a partir de una cotización previa (Quote). Verifica que la cotización coincida con los datos provistos antes de crear la venta.

◆ SearchCostumer_ByFamilyName()

string Library.Facade.SearchCostumer_ByFamilyName ( string familyname)
static

◆ SearchCostumer_ByMail()

string Library.Facade.SearchCostumer_ByMail ( string mail)
static

◆ SearchCostumer_ByName()

string Library.Facade.SearchCostumer_ByName ( string name)
static

◆ SearchCostumer_ByPhone()

string Library.Facade.SearchCostumer_ByPhone ( string phone)
static

◆ SearchCustomer_ById()

string Library.Facade.SearchCustomer_ById ( string id)
static

◆ SearchSeller_ById()

string Library.Facade.SearchSeller_ById ( string id)
static

◆ ShowCustomers_BySellerId()

string Library.Facade.ShowCustomers_BySellerId ( string sellerId)
static

Muestra todos los clientes asociados a un vendedor específico. Devuelve un listado con los nombres o un mensaje si no hay clientes asignados.

◆ SuspendSeller()

string Library.Facade.SuspendSeller ( string sellerId)
static

◆ UnansweredInteractions()

string Library.Facade.UnansweredInteractions ( string customerId)
static

Member Data Documentation

◆ cm

CustomerManager Library.Facade.cm = Singleton<CustomerManager>.GetInstance()
static

◆ sm

SellerManager Library.Facade.sm = Singleton<SellerManager>.GetInstance()
static

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