C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
OptionsResponse.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Runtime.Serialization;
4
6
7namespace AnalyzeRe.APITypes
8{
10 public class OptionsResponse : APIType
11 {
12 #region Public Properties
14 [DataMember(Order = 2)]
16 public List<string> features { get; set; }
17
20 public bool is_optimization_enabled => features.Contains("optimization_views");
21 #endregion Public Properties
22
25 public override string ToString()
26 {
27 return $"\"features\": [{String.Join(", ", features)}]";
28 }
29 }
30}
Base class used by all types and resources.
Definition APIType.cs:8
Used to deserialize server OPTIONS response.
override string ToString()
Creates and returns a string representation of the OPTIONS response.
List< string > features
The list of features supported by the server.
bool is_optimization_enabled
Indicates whether OptimizationViews is available according this OPTIONS response.
Describes a collection of resources which can be listed.
Specifies that a property is generated by the server and should not be specified on the client side d...