Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
fix code indent
Browse files Browse the repository at this point in the history
  • Loading branch information
vfa-thanhnh committed Nov 27, 2018
1 parent 186d8a4 commit 8d35a21
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions ncmb_unity/Assets/NCMB/NCMBManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void OnRegistration (string message)
Inited = true;

//Exceute NCMBDeviceTokenCallbackQueue
if(message != null && message.Length > 0){
if(message != null && String.Compare(message,"") != 0 ){
NCMBDeviceTokenCallbackQueue.GetInstance().execQueue(null,
new NCMBException (new Exception (message)));
} else {
Expand Down Expand Up @@ -257,27 +257,26 @@ internal void onTokenReceived (string token)
installation.SaveAsync ((NCMBException saveError) => { //更新実行
if (saveError != null) {
//対処可能なエラー
OnRegistration(saveError.ErrorMessage);
if (saveError.ErrorCode.Equals(NCMBException.DUPPLICATION_ERROR)){
//過去に登録したデバイストークンと衝突。アプリの再インストール後などに発生
updateExistedInstallation (installation, path);
} else if (saveError.ErrorCode.Equals(NCMBException.DATA_NOT_FOUND)) {
//保存失敗 : 端末情報の該当データがない
installation.ObjectId = null;
installation.SaveAsync((NCMBException updateError) => {
if (updateError != null){
OnRegistration(updateError.ErrorMessage);
} else {
OnRegistration("");
}
});
} else {
//想定外のエラー
OnRegistration (saveError.ErrorMessage);
if (saveError.ErrorCode.Equals(NCMBException.DUPPLICATION_ERROR)){
//過去に登録したデバイストークンと衝突。アプリの再インストール後などに発生
updateExistedInstallation (installation, path);
} else if (saveError.ErrorCode.Equals(NCMBException.DATA_NOT_FOUND)) {
//保存失敗 : 端末情報の該当データがない
installation.ObjectId = null;
installation.SaveAsync((NCMBException updateError) => {
if (updateError != null){
OnRegistration(updateError.ErrorMessage);
} else {
OnRegistration("");
}
});
} else {
//想定外のエラー
OnRegistration (saveError.ErrorMessage);
}
} else {
OnRegistration ("");
}
} else {
OnRegistration ("");
}
});
}

Expand Down

0 comments on commit 8d35a21

Please sign in to comment.