Example #1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("OTPResult(");
        bool __first = true;

        if (OtpId != null && __isset.otpId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("OtpId: ");
            OtpId.ToString(sb);
        }
        if (Otp != null && __isset.otp)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Otp: ");
            Otp.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
Example #2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.otpId)
            {
                hashcode = (hashcode * 397) + OtpId.GetHashCode();
            }
            if (__isset.otp)
            {
                hashcode = (hashcode * 397) + Otp.GetHashCode();
            }
        }
        return(hashcode);
    }