Ejemplo n.º 1
0
        public string GetNameForRequestField(CodeGenerationSdkMessageRequest request, Entities.SdkMessageRequestField requestField)
        {
            if (this._knowNames.ContainsKey(request.Id.ToString() + requestField.Position.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)))
            {
                return(this._knowNames[request.Id.ToString() + requestField.Position.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)]);
            }

            string validName = NamingService.CreateValidName(requestField.Name);

            this._knowNames.Add(request.Id.ToString() + requestField.Position.GetValueOrDefault().ToString(CultureInfo.InvariantCulture), validName);

            return(validName);
        }
Ejemplo n.º 2
0
 public IEnumerable <string> GetCommentsForRequestField(CodeGenerationSdkMessageRequest request, Entities.SdkMessageRequestField requestField)
 {
     return(Enumerable.Empty <string>());
 }
Ejemplo n.º 3
0
        public CodeTypeReference GetTypeForRequestField(CodeGenerationSdkMessageRequest request, Entities.SdkMessageRequestField requestField)
        {
            var isGeneric = request.MessagePair.Message.IsGeneric(requestField);

            return(this.GetTypeForField(requestField.ClrParser, isGeneric));
        }