Пример #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="ApiResult"/>
 /// <typeparam name="T">Type of expected data.</typeparam>
 /// </summary>
 public ApiResult(T data, IRestResponse response, ApiContext context, Response.Context responseContext,
                  Request requestInResponse)
 {
     ResponseContext   = responseContext;
     RequestInResponse = requestInResponse;
     InitializeCommonParameters(data, response, context);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="ApiException"/>
 /// </summary>
 public ApiException(IRestResponse response, ApiContext requestContext, Response.Context contextInResponse,
                     Request requestInResponse)
 {
     RequestInResponse = requestInResponse;
     ContextInResponse = contextInResponse;
     Context           = requestContext;
     Response          = response;
 }