Ejemplo n.º 1
0
        public ResponseEnvelope(Dictionary <string, string> map, string prefix)
        {
            string key = "";

            key = prefix + "timestamp";
            if (map.ContainsKey(key))
            {
                this.timestamp = map[key];
            }
            key = prefix + "ack";
            if (map.ContainsKey(key))
            {
                this.ack = (AckCode)EnumUtils.getValue(map[key], typeof(AckCode));;
            }
            key = prefix + "correlationId";
            if (map.ContainsKey(key))
            {
                this.correlationId = map[key];
            }
            key = prefix + "build";
            if (map.ContainsKey(key))
            {
                this.build = map[key];
            }
        }
Ejemplo n.º 2
0
        public ErrorData(Dictionary <string, string> map, string prefix)
        {
            string key = "";
            int    i;

            key = prefix + "errorId";
            if (map.ContainsKey(key))
            {
                this.errorId = System.Convert.ToInt32(map[key]);
            }
            key = prefix + "domain";
            if (map.ContainsKey(key))
            {
                this.domain = map[key];
            }
            key = prefix + "subdomain";
            if (map.ContainsKey(key))
            {
                this.subdomain = map[key];
            }
            key = prefix + "severity";
            if (map.ContainsKey(key))
            {
                this.severity = (ErrorSeverity)EnumUtils.getValue(map[key], typeof(ErrorSeverity));;
            }
            key = prefix + "category";
            if (map.ContainsKey(key))
            {
                this.category = (ErrorCategory)EnumUtils.getValue(map[key], typeof(ErrorCategory));;
            }
            key = prefix + "message";
            if (map.ContainsKey(key))
            {
                this.message = map[key];
            }
            key = prefix + "exceptionId";
            if (map.ContainsKey(key))
            {
                this.exceptionId = map[key];
            }
            i = 0;
            while (true)
            {
                key = prefix + "parameter" + '(' + i + ")";
                if (map.ContainsKey(key + ".name"))
                {
                    this.parameter.Add(new ErrorParameter(map, key + '.'));
                }
                else
                {
                    break;
                }
                i++;
            }
        }
Ejemplo n.º 3
0
        public PersonalData(Dictionary <string, string> map, string prefix)
        {
            string key = "";
            int    i;

            key = prefix + "personalDataKey";
            if (map.ContainsKey(key))
            {
                this.personalDataKey = (PersonalAttribute)EnumUtils.getValue(map[key], typeof(PersonalAttribute));;
            }
            key = prefix + "personalDataValue";
            if (map.ContainsKey(key))
            {
                this.personalDataValue = map[key];
            }
        }