Skip to content

Commit

Permalink
LC-446 Add missing premium state to IIdentityBase (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipocelka authored Sep 5, 2024
1 parent 7548818 commit 6d05256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public interface IIdentityBase {
int STATE_ANONYMOUS = 4;
int STATE_PROHIBITED_TO_BE_REGISTERED = 5;
int STATE_TO_BE_VERIFIED = 6;
int STATE_PREMIUM = 7;

int TYPE_INTERNAL = 0; //must not be instantiated by extension
int TYPE_EXTERNAL = 1; //this identity was created externally
Expand Down Expand Up @@ -69,6 +70,7 @@ public interface IIdentityBase {
* <li>{@link IIdentity#STATE_ANONYMOUS} = 4 - "Anonymous"</li>
* <li>{@link IIdentity#STATE_PROHIBITED_TO_BE_REGISTERED} = 5 - "Rejected Wants To Be Registered"</li>
* <li>{@link IIdentity#STATE_TO_BE_VERIFIED} = 6 - "Awaiting Verification"</li>
* <li>{@link IIdentity#STATE_PREMIUM} = 7 - "Premium"</li>
* </ul>
*
* @return int value representing current identity state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ private String formatIdentityStatus(int state) {
return "REJECTED WANTS TO BE REGISTERED";
case IIdentity.STATE_TO_BE_VERIFIED:
return "AWAITING VERIFICATION";
case IIdentity.STATE_PREMIUM:
return "PREMIUM";
}
return "UNKNOWN";
}
Expand Down

0 comments on commit 6d05256

Please sign in to comment.