Beispiel #1
0
 public NormalizationApiOperationResponse(NormalizationApiOperationResponse copyFrom) : base(copyFrom)
 {
     if (copyFrom == null)
     {
         return;
     }
     CopyFrom(copyFrom);
 }
        public NormalizationApiOperation(NormalizationApiOperation copyFrom)
            : base(copyFrom)
        {
            BasePath = copyFrom.BasePath;
            Description = copyFrom.Description;
            HttpMethod = copyFrom.HttpMethod;
            Name = copyFrom.Name;
            Path = copyFrom.Path;
            ResourcePath = copyFrom.ResourcePath;
            Response = new NormalizationApiOperationResponse(copyFrom.Response);
            SupportsStreaming = copyFrom.SupportsStreaming;

            if (copyFrom.Parameters.Any())
            {
                Parameters.AddRange(copyFrom.Parameters);
            }
        }
Beispiel #3
0
        public NormalizationApiOperation(NormalizationApiOperation copyFrom) : base(copyFrom)
        {
            BasePath                  = copyFrom.BasePath;
            Description               = copyFrom.Description;
            HttpMethod                = copyFrom.HttpMethod;
            Name                      = copyFrom.Name;
            Path                      = copyFrom.Path;
            ResourcePath              = copyFrom.ResourcePath;
            Response                  = new NormalizationApiOperationResponse(copyFrom.Response);
            SupportsStreamingUpload   = copyFrom.SupportsStreamingUpload;
            SupportsStreamingDownload = copyFrom.SupportsStreamingDownload;

            if (copyFrom.Parameters.Any())
            {
                Parameters.AddRange(copyFrom.Parameters);
            }
        }
        private NormalizationApiOperationResponse ParseResponse(dynamic op)
        {
            var dataType = SimpleNormalizationApiDataType.ParseFromJObject(op);
            var resp = new NormalizationApiOperationResponse();
            resp.CopyFrom(dataType);

            return resp;
        }
 public NormalizationApiOperationResponse(NormalizationApiOperationResponse copyFrom) : base(copyFrom)
 {
     if (copyFrom == null) return;
     CopyFrom(copyFrom);
 }