Пример #1
0
        private static HttpContent ConstructApplyValidatorBodyFromJson(string dataType, string json, string validatorId)
        {
            var submitDataBody       = new ApplyValidatorBody(dataType, null, validatorId);
            var submitBodyJsonObject = JObject.FromObject(submitDataBody);

            submitBodyJsonObject["Data"] = JObject.Parse(json);
            return(PostBodyBuilder.ConstructBodyFromJObject(submitBodyJsonObject));
        }
Пример #2
0
        private static HttpContent ConstructSubmitBodyFromJson(string dataType, string json, bool overwrite, string id)
        {
            var submitDataBody       = new SubmitDataBody(dataType, null, overwrite, id);
            var submitBodyJsonObject = JObject.FromObject(submitDataBody);

            submitBodyJsonObject["Data"] = JObject.Parse(json);
            return(PostBodyBuilder.ConstructBodyFromJObject(submitBodyJsonObject));
        }