コード例 #1
0
        public String ToString(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            String        i2 = HttpClientHelper.Indent(indentLevel + 1);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("CropioResponse: ").Append(CropioResponse.ToString(indentLevel + 1));

            if (Data != null)
            {
                sb.Append(i).Append("Data:           ").Append(Data.GetTextView(indentLevel + 1));
            }
            return(sb.ToString());
        }
コード例 #2
0
        public String ToString(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("CropioResponse:  ").Append(CropioResponse.ToString(indentLevel + 1));

            sb.AppendLine();
            if (Data != null)
            {
                sb.Append(i).Append("Data: ").Append(String.Join(", ", Data));
            }
            if (Meta != null)
            {
                sb.Append(i).Append("Meta: ").Append(Meta.ToString(indentLevel + 1));
            }
            return(sb.ToString());
        }
コード例 #3
0
        public String ToString(Int32 indentLevel)
        {
            String        i  = HttpClientHelper.Indent(indentLevel);
            String        i2 = HttpClientHelper.Indent(indentLevel + 1);
            StringBuilder sb = new StringBuilder()
                               .Append(i).Append("CropioResponse:  ").Append(CropioResponse.ToString(indentLevel + 1));

            if (Data != null)
            {
                sb.Append(i).Append("Data: ");
                Int32 itemNumber = 0;
                foreach (T item in Data)
                {
                    sb.Append(i2).Append("──────────────── ").Append(itemNumber++)
                    .Append(item.GetTextView(indentLevel + 1));
                }
            }
            if (Meta != null)
            {
                sb.Append(i).Append("Meta: ").Append(Meta.ToString(indentLevel + 1));
            }
            return(sb.ToString());
        }