Ejemplo n.º 1
0
        public Startup(IHttpJsonClient httpJsonClient = null,
            ITranslatorClient translatorClient = null,
            ITranslationService translationService = null,
            TranslationServicesConfiguration translationServicesConfiguration = null)
        {
            _httpJsonClient = httpJsonClient;
            _translatorClient = translatorClient;
            _translationService = translationService;
            _translationServicesConfiguration = translationServicesConfiguration;

            IoC = BuildContainer();
        }
Ejemplo n.º 2
0
        public void ChatterboxInvitation(UUID sessionID, string sessionName,
                                         UUID fromAgent, string message, UUID toAgent, string fromName, byte dialog,
                                         uint timeStamp, bool offline, int parentEstateID, Vector3 position,
                                         uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket)
        {
            GroupToClient g2c = new GroupToClient();

            g2c.eqgm           = this;
            g2c.sessionID      = sessionID;
            g2c.sessionName    = sessionName;
            g2c.fromAgent      = fromAgent;
            g2c.toAgent        = toAgent;
            g2c.fromName       = fromName;
            g2c.dialog         = dialog;
            g2c.timeStamp      = timeStamp;
            g2c.offline        = offline;
            g2c.parentEstateID = parentEstateID;
            g2c.position       = position;
            g2c.ttl            = ttl;
            g2c.transactionID  = transactionID;
            g2c.fromGroup      = fromGroup;
            g2c.binaryBucket   = binaryBucket;

            ITranslatorClient xc = null;
            IClientAPI        client;

            if (m_scene.TryGetClient(toAgent, out client))
            {
                xc = client.TranslatorClient;
            }
            if (xc == null)
            {
                g2c.Finished(message);
            }
            else
            {
                xc.WhatevToClient(g2c.Finished, message);
            }
            //m_log.InfoFormat("########### eq ChatterboxInvitation #############\n{0}", item);
        }
Ejemplo n.º 3
0
 public TranslatorController(ITranslatorClient translatorClient)
 {
     this.translatorClient = translatorClient;
 }
Ejemplo n.º 4
0
 public PokemonRetriever(IPokeAPIClient pokemonClient, ITranslatorClient translationClient)
 {
     _pokemonClient     = pokemonClient;
     _translationClient = translationClient;
 }
Ejemplo n.º 5
0
 public UlisClient(ITranslatorClient translatorClient,
                   string luisModelId, string luisSubscriptionKey, string luisDomain)
 {
     _translatorClient = translatorClient;
     _luisClient       = new LuisClient(luisModelId, luisSubscriptionKey, luisDomain);
 }
 public TranslationService(TranslationServicesConfiguration configuration, ITranslatorClient translationHttpClient)
 {
     _translationHttpClient = translationHttpClient;
     _translationHttpClient.SetServiceUri(configuration.TranslationServiceUri);            
 }
Ejemplo n.º 7
0
 public PokemonService(IPokemonClient pokemonClient, ITranslatorClient translatorClient)
 {
     _pokemonClient    = pokemonClient;
     _translatorClient = translatorClient;
 }