コード例 #1
0
ファイル: Commands.cs プロジェクト: marcpiechura/bigml-csharp
        /// <summary>
        /// Create a new resource using supplied arguments
        /// </summary>
        public Task <T> Create <T>(Response.Arguments <T> arguments) where T : Response, new()
        {
            this._requestContent = arguments.ToJson();
            var content = new JsonContent(this._requestContent);

            return(Create <T>(content));
        }
コード例 #2
0
        /// <summary>
        /// Create a new resource using supplied arguments
        /// </summary>
        public Task <T> Create <T>(Response.Arguments <T> arguments) where T : Response, new()
        {
            var content = new JsonContent(arguments.ToJson());

            return(Create <T>(content));
        }