コード例 #1
0
        public Silanis.ESL.SDK.Challenge ToSDKChallenge()
        {
            if (apiChallenge == null)
            {
                return sdkChallenge;
            }

            Silanis.ESL.SDK.Challenge result; 

            if (apiChallenge.MaskInput.Value)
            {
                result = new Silanis.ESL.SDK.Challenge(apiChallenge.Question, apiChallenge.Answer, Challenge.MaskOptions.MaskInput);
            }
            else
            {
                result = new Silanis.ESL.SDK.Challenge(apiChallenge.Question, apiChallenge.Answer);
            }

            return result;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Silanis.ESL.SDK.ChallengeConverter"/> class.
 /// </summary>
 /// <param name="sdkChallenge">Sdk challenge.</param>
 public ChallengeConverter(Silanis.ESL.SDK.Challenge sdkChallenge)
 {
     this.sdkChallenge = sdkChallenge;
 }