Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LC-446 Add missing premium state to IIdentityBase #929

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading