Exemplo n.º 1
0
        private static Message GetStepValidateResponseMessage(bool isValid, Message request, StepValidateResponse.Types.ErrorType errorType, string errorMessage)
        {
            var stepValidateResponse = StepValidateResponse.CreateBuilder()
                                       .SetErrorMessage(errorMessage)
                                       .SetIsValid(isValid)
                                       .SetErrorType(errorType)
                                       .Build();

            return(Message.CreateBuilder()
                   .SetMessageId(request.MessageId)
                   .SetMessageType(Message.Types.MessageType.StepValidateResponse)
                   .SetStepValidateResponse(stepValidateResponse)
                   .Build());
        }
Exemplo n.º 2
0
        private static Message GetStepValidateResponseMessage(bool isValid, Message request, StepValidateResponse.Types.ErrorType errorType, string errorMessage)
        {
            var stepValidateResponse = new StepValidateResponse()
            {
                ErrorMessage = errorMessage,
                IsValid      = isValid,
                ErrorType    = errorType,
            };

            return(new Message()
            {
                MessageId = request.MessageId,
                MessageType = Message.Types.MessageType.StepValidateResponse,
                StepValidateResponse = stepValidateResponse
            });
        }