Beispiel #1
0
 public void UpdateUserInfo(UserConfig userConfig)
 {
     unity_updateUserInfo(userConfig.GetUserId(), userConfig.GetUserName(),
                          userConfig.GetServerId(), userConfig.GetUserTags(),
                          userConfig.GetCustomData(), userConfig.GetWhetherSyncCrmInfo(),
                          userConfig.GetPushToken(), getPushPlatform(userConfig.GetPushPlatform()));
 }
        private AndroidJavaObject getUserConfig(UserConfig config)
        {
            AndroidJavaObject builder = new AndroidJavaObject("net.aihelp.config.UserConfig$Builder");

            builder.Call <AndroidJavaObject>("setUserId", config.GetUserId());
            builder.Call <AndroidJavaObject>("setUserName", config.GetUserName());
            builder.Call <AndroidJavaObject>("setServerId", config.GetServerId());
            builder.Call <AndroidJavaObject>("setUserTags", config.GetUserTags());
            builder.Call <AndroidJavaObject>("setCustomData", config.GetCustomData());
            builder.Call <AndroidJavaObject>("setSyncCrmInfo", config.GetWhetherSyncCrmInfo());
            return(builder.Call <AndroidJavaObject>("build"));
        }