예제 #1
0
 /// <summary>
 /// Initializes a new instance of the QueryResponse class.
 /// </summary>
 /// <param name="totalRecords">Number of total records matching the
 /// query.</param>
 /// <param name="count">Number of records returned in the current
 /// response. In the case of paging, this is the number of records in
 /// the current page.</param>
 /// <param name="resultTruncated">Indicates whether the query results
 /// are truncated. Possible values include: 'true', 'false'</param>
 /// <param name="data">Query output in tabular format.</param>
 /// <param name="skipToken">When present, the value can be passed to a
 /// subsequent query call (together with the same query and
 /// subscriptions used in the current request) to retrieve the next
 /// page of data.</param>
 /// <param name="facets">Query facets.</param>
 public QueryResponse(long totalRecords, long count, ResultTruncated resultTruncated, object data, string skipToken = default(string), IList <Facet> facets = default(IList <Facet>))
 {
     TotalRecords    = totalRecords;
     Count           = count;
     ResultTruncated = resultTruncated;
     SkipToken       = skipToken;
     Data            = data;
     Facets          = facets;
     CustomInit();
 }
예제 #2
0
        internal static string ToSerializedValue(this ResultTruncated value)
        {
            switch (value)
            {
            case ResultTruncated.True:
                return("true");

            case ResultTruncated.False:
                return("false");
            }
            return(null);
        }