canSubmitFlip method
Implementation
bool canSubmitFlip(DnaIdentityResponse dnaIdentityResponse) {
var identityStatus1 = [
IdentityStatus.Newbie,
IdentityStatus.Verified,
IdentityStatus.Human
];
return (identityStatus1.contains(dnaIdentityResponse.result.state) &&
dnaIdentityResponse.result.requiredFlips > 0 &&
(dnaIdentityResponse.result.flips == null ||
(dnaIdentityResponse.result.flips.length <
dnaIdentityResponse.result.availableFlips)));
}