Esempio n. 1
0
        IMConfig PlusConfigToIMConfig(TalkPlusConfig conf)
        {
            var imConf = new IMConfig();

            imConf.ServerZone = conf.ServerZone;
            imConf.LogLevel   = conf.LogLevel;
            return(imConf);
        }
Esempio n. 2
0
 public void Initialize(string appKey, string secretKey, TalkPlusConfig config, Action <InitEvent> initCallBack)
 {
     if (config == null)
     {
         Log.e("config can't not be null.");
         return;
     }
     im.Initialize(appKey, secretKey, PlusConfigToIMConfig(config));//IM目前不需要等回调通知
     talk.Initialize(appKey, secretKey, PlusConfigToTalkConfig(config), initCallBack);
 }
Esempio n. 3
0
        TalkConfig PlusConfigToTalkConfig(TalkPlusConfig conf)
        {
            var talkConf = new TalkConfig();

            talkConf.AllowMultiChannel = conf.AllowMultiChannel;
            talkConf.ExtServerZone     = conf.ExtServerZone;
            talkConf.LogLevel          = conf.LogLevel;
            talkConf.ServerZone        = (YOUME_RTC_SERVER_REGION)conf.ServerZone;
            return(talkConf);
        }