IMConfig PlusConfigToIMConfig(TalkPlusConfig conf) { var imConf = new IMConfig(); imConf.ServerZone = conf.ServerZone; imConf.LogLevel = conf.LogLevel; return(imConf); }
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); }
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); }