• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision57aed83181d8a3ec04095600d75d41de3abd5713 (tree)
Time2022-06-05 00:39:18
Authoryoshy <yoshy.org.bitbucket@gz.j...>
Commiteryoshy

Log Message

[MOD] UseCaseResponse のエラー取得系メソッドをプロパティ化

Change Summary

Incremental Difference

--- a/Adaptor/Controller/Handler/AbstractErrorHandler.cs
+++ b/Adaptor/Controller/Handler/AbstractErrorHandler.cs
@@ -23,12 +23,12 @@ namespace CleanAuLait48.Adaptor.Controller.Handler
2323
2424 //string statusText = !String.IsNullOrEmpty(res.Message) ? res.Message : AppConst.STATUS_BAR_READY;
2525
26- if (res.HasSomeErrors())
26+ if (res.HasSomeErrors)
2727 {
2828 //dialog.ShowError(res.Message, req.UIInfo);
2929 dialog.ShowError(res.Message);
3030 }
31- else if (res.IsAborted())
31+ else if (res.IsAborted)
3232 {
3333 //dialog.ShowInfo(res.Message, req.UIInfo);
3434 dialog.ShowInfo(res.Message);
--- a/UseCase/Response/UseCaseResponse.cs
+++ b/UseCase/Response/UseCaseResponse.cs
@@ -57,20 +57,11 @@
5757 };
5858 }
5959
60- public bool IsSuccess()
61- {
62- return (Result & UseCaseResultTypes.ABORTED) == 0;
63- }
60+ public bool IsSuccess => (Result & UseCaseResultTypes.ABORTED) == 0;
6461
65- public bool IsAborted()
66- {
67- return (Result & UseCaseResultTypes.ABORTED) != 0;
68- }
62+ public bool IsAborted => (Result & UseCaseResultTypes.ABORTED) != 0;
6963
70- public bool HasSomeErrors()
71- {
72- return (Result & UseCaseResultTypes.SOME_ERRORS_IGNORED) != 0;
73- }
64+ public bool HasSomeErrors => (Result & UseCaseResultTypes.SOME_ERRORS_IGNORED) != 0;
7465
7566 }
7667 }