Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inID"></param>
        /// <returns></returns>
        public string ServiceDisplayNameWithID(MenumateServicesIdentifier inID)
        {
            switch (inID)
            {
            case MenumateServicesIdentifier.AccountingIntegration: return("Menumate Accounting Integration");

            case MenumateServicesIdentifier.SmartLink: return("Menumate SmartLink");

            case MenumateServicesIdentifier.WebMate: return("Menumate WebMate");

            case MenumateServicesIdentifier.LoyaltyMate: return("Menumate LoyaltyMate");

            case MenumateServicesIdentifier.ChefMate: return("Menumate ChefMate");

            case MenumateServicesIdentifier.EFTPosIntegration: return("Menumate EFTPOS Integration");

            case MenumateServicesIdentifier.PosIntegration: return("Menumate FloorPlan Integration");


            case MenumateServicesIdentifier.Reservations: return("Menumate Table Reservation Integration");

            case MenumateServicesIdentifier.ClippIntegration: return("Menumate Clipp Integration");

            case MenumateServicesIdentifier.ThorLink: return("Menumate Thor Link Integration");

            case MenumateServicesIdentifier.PocketVoucher: return("Menumate Pocket Voucher Service");

            case MenumateServicesIdentifier.SalesForceIntegration: return("Sales-Force Integration Service");

            default: return(@"");
            }
        }
Ejemplo n.º 2
0
        public string ServiceNameWithID(MenumateServicesIdentifier inID)
        {
            switch (inID)
            {
            case MenumateServicesIdentifier.AccountingIntegration: return("MenumateServiceAccounting");

            case MenumateServicesIdentifier.Reservations: return("MenumateServiceReservations");

            case MenumateServicesIdentifier.WebMate: return("MenumateServiceWebMate");

            case MenumateServicesIdentifier.LoyaltyMate: return("MenumateServiceLoyaltyMate");

            case MenumateServicesIdentifier.ChefMate: return("MenumateServiceChefMate");

            case MenumateServicesIdentifier.EFTPosIntegration: return("MenumateServiceEFTPosIntegration");

            case MenumateServicesIdentifier.PosIntegration: return("MenumateServicePosIntegration");

            case MenumateServicesIdentifier.SmartLink: return("MenumateServiceSmartLink");

            case MenumateServicesIdentifier.ClippIntegration: return("ClippIntegrationWebService");

            case MenumateServicesIdentifier.ThorLink: return("MenumateServiceThorlink");

            case MenumateServicesIdentifier.PocketVoucher: return("PocketVoucherWebService");

            case MenumateServicesIdentifier.SalesForceIntegration: return("SalesForceIntegrationWebService");

            default: return(@"");
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inID"></param>
        /// <returns></returns>
        public string ServiceDescriptionWithID(MenumateServicesIdentifier inID)
        {
            switch (inID)
            {
            case MenumateServicesIdentifier.AccountingIntegration: return("Menumate Interface to Accounting server");

            case MenumateServicesIdentifier.WebMate: return("Menumate WebMate server");

            case MenumateServicesIdentifier.LoyaltyMate: return("Menumate LoyaltyMate server");

            case MenumateServicesIdentifier.ChefMate: return("Menumate ChefMate server");

            case MenumateServicesIdentifier.SmartLink: return("Menumate SmartLink Server");

            case MenumateServicesIdentifier.EFTPosIntegration: return("Not implemented in this version. Menumate Interface to EFTPOS Devices");

            case MenumateServicesIdentifier.PosIntegration: return("Not implemented in this version. Menumate Interface to FloorPlan");

            case MenumateServicesIdentifier.Reservations: return("Not implemented in this version. Menumate Interface to Table Reservation");

            case MenumateServicesIdentifier.ClippIntegration: return("Menumate Clipp Integration server");

            case MenumateServicesIdentifier.ThorLink: return("Menumate Thor Link server");

            case MenumateServicesIdentifier.PocketVoucher: return("Menumate Pocket Voucher Service");

            case MenumateServicesIdentifier.SalesForceIntegration: return("Sales-Force Integration Service");

            default: return(@"");
            }
        }
Ejemplo n.º 4
0
 private void AddService(List <ServiceBase> services, MenumateServicesIdentifier serviceIdentifier)
 {
     try
     {
         services.Add(LoadService(serviceIdentifier));
     }
     catch (Exception e)
     {
         ServiceLogger.LogException(String.Format(@"Error loading Service {0}. Does this file really exist?", serviceName(serviceIdentifier)), e);
     }
 }
Ejemplo n.º 5
0
        public ServiceBase LoadService(MenumateServicesIdentifier serviceIdentifier)
        {
            ServiceLogger.Log(string.Format(@"Loading Service: {0} ...", serviceName(serviceIdentifier)));

            switch (serviceIdentifier)
            {
            case MenumateServicesIdentifier.AccountingIntegration:
                return(new MenumateServiceAccounting());

            case MenumateServicesIdentifier.LoyaltyMate:
                return(new MenumateServiceLoyaltyMate());

            case MenumateServicesIdentifier.WebMate:
                return(new MenumateServiceWebMate());

            case MenumateServicesIdentifier.ChefMate:
                return(new MenumateServiceChefMate());

            case MenumateServicesIdentifier.ClippIntegration:
                return(new MenumateServiceClippIntegration());

            case MenumateServicesIdentifier.SmartLink:
                return(new MenumateServiceSmartLink());

            case MenumateServicesIdentifier.ThorLink:
                return(new MenumateServiceThorlink());

            case MenumateServicesIdentifier.PocketVoucher:
                return(new MenumateServicePocketVoucher());

            case MenumateServicesIdentifier.SalesForceIntegration:
                return(new MenumateServiceSalesForce());

            default: throw new Exception(String.Format("Unknown Service: {0}", serviceIdentifier));
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inID"></param>
 /// <returns></returns>
 private string serviceDescription(MenumateServicesIdentifier inID)
 {
     return(ServiceNameManager.Instance.ServiceDescriptionWithID(inID));
 }
Ejemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="inID"></param>
 /// <returns></returns>
 private string serviceDisplayName(MenumateServicesIdentifier inID)
 {
     return(ServiceNameManager.Instance.ServiceDisplayNameWithID(inID));
 }