Exemplo n.º 1
0
        public override string ToString()
        {
            var sb    = new StringBuilder("ResponseBase(");
            int tmp11 = 0;

            if ((Results != null) && __isset.results)
            {
                if (0 < tmp11++)
                {
                    sb.Append(", ");
                }
                sb.Append("Results: ");
                Results.ToString(sb);
            }
            if (__isset.maxSeverityLevel)
            {
                if (0 < tmp11++)
                {
                    sb.Append(", ");
                }
                sb.Append("MaxSeverityLevel: ");
                MaxSeverityLevel.ToString(sb);
            }
            if (__isset.success)
            {
                if (0 < tmp11++)
                {
                    sb.Append(", ");
                }
                sb.Append("Success: ");
                Success.ToString(sb);
            }
            if ((BusinessKey != null) && __isset.businessKey)
            {
                if (0 < tmp11++)
                {
                    sb.Append(", ");
                }
                sb.Append("BusinessKey: ");
                BusinessKey.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((Results != null) && __isset.results)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Results);
                }
                if (__isset.maxSeverityLevel)
                {
                    hashcode = (hashcode * 397) + MaxSeverityLevel.GetHashCode();
                }
                if (__isset.success)
                {
                    hashcode = (hashcode * 397) + Success.GetHashCode();
                }
                if ((BusinessKey != null) && __isset.businessKey)
                {
                    hashcode = (hashcode * 397) + BusinessKey.GetHashCode();
                }
            }
            return(hashcode);
        }