-
Notifications
You must be signed in to change notification settings - Fork 0
Docの追加、内部処理改善 #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コードの方はLGTMかと思います。
英文だけ自分ならこう書くかなくらいにコメント書いときました
data?.also { | ||
CertificationStore.create(context).update(it) | ||
if (data == null) { | ||
Log.e("StudyplusSDK", "The data is null. Please check your code. If the received data is already null, please contact Studyplus Dev team.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正します!
fun postRecord(context: Context, studyRecord: StudyRecord, listener: OnPostRecordListener?) { | ||
if (!isAuthenticated(context)) { | ||
throw IllegalStateException("Please check your application's authentication before this method call.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDKの利用デベロッパーに「チェックして認証されていなければ叩かない(先に認証してから叩く)」ことを通知したいため、こちらはこのメッセージでいきたいです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.