コード例 #1
0
        public PreRegistUser()
        {
            //Ready Proccesing
            _success       = false;
            _httpCatchData = null;
            Dictionary <string, string> postDatas = new Dictionary <string, string> ();

#if !UNITY_EDITOR && UNITY_IOS
            postDatas.Add(HttpConstants.UIID_NAME, NativeRecieveManager.GetUiid(DomainData._bundle));

            if (DomainData._bundle == DomainData._parentBundle)
            {
                postDatas.Add(HttpConstants.UDID_NAME, NativeRecieveManager.GetUdid());
                postDatas.Add(HttpConstants.IDFV_NAME, NativeRecieveManager.GetIdfv());
            }
            else
            {
                postDatas.Add(HttpConstants.IDFV_NAME, NativeRecieveManager.GetUdid());
                postDatas.Add(HttpConstants.UDID_NAME, NativeRecieveManager.GetIdfv());
            }
#else
            postDatas.Add(HttpConstants.UIID_NAME, NativeRecieveManager.GetUiid(DomainData._bundle));
            postDatas.Add(HttpConstants.UDID_NAME, NativeRecieveManager.GetUdid());
            postDatas.Add(HttpConstants.IDFV_NAME, NativeRecieveManager.GetIdfv());
#endif


            postDatas.Add(HttpConstants.PLATFORM_ID_NAME, DeviceService.GetPlatformId());
            postDatas.Add(HttpConstants.API_VERSION_NAME, DeviceService.GetAppVersion());
            postDatas.Add(HttpConstants.BUNDLE, DomainData._bundle);

            Request(postDatas);
        }
コード例 #2
0
 /// <summary>
 /// Calls the back.
 /// </summary>
 /// <param name="result">Result.</param>
 private void CallBack(UserDataEntity.Result result)
 {
     _success = (result != null);
     if (_success == true)
     {
         GetUserApi._httpCatchData = result;
     }
 }
コード例 #3
0
        /// <summary>
        /// Calls the back.
        /// </summary>
        /// <param name="result">Result.</param>
        private void CallBack(UserDataEntity.Result result)
        {
            _success = (result != null);

            Debug.Log(result.result + " === trueならメッセージ画像のサーバー送信完了。");

            if (_success == true)
            {
                _httpCatchData = result;
            }
        }
コード例 #4
0
 /// <summary>
 /// Calls the back.
 /// </summary>
 /// <param name="result">Result.</param>
 private void CallBack(UserDataEntity.Result result)
 {
     _success = (result != null);
     if (_success == true)
     {
         if (_toUserId != "")
         {
             _httpOtherUserCatchData = result.result.user;
         }
         else
         {
             _httpCatchData = result;
         }
     }
 }