/// <summary> /// Ctor. /// </summary> /// <param name="httpClient">the HTTP client</param> /// <param name="inputID">the input ID</param> /// <param name="action">the action</param> /// <param name="positiveConcepts">positive concepts</param> /// <param name="negativeConcepts">negative concepts</param> /// <param name="regionFeedbacks">region feedbacks</param> public ModifyInputRequest(IClarifaiHttpClient httpClient, string inputID, ModifyAction action, IEnumerable <Concept> positiveConcepts, IEnumerable <Concept> negativeConcepts, IEnumerable <RegionFeedback> regionFeedbacks = null) : base(httpClient) { _inputID = inputID; _action = action; _positiveConcepts = positiveConcepts; _negativeConcepts = negativeConcepts; _regionFeedbacks = regionFeedbacks; }
/// <summary> /// Ctor. /// </summary> /// <param name="httpClient">the Clarifai client</param> /// <param name="modelID">the model ID</param> /// <param name="name">the model name</param> /// <param name="concepts">the concepts to include in the model</param> /// <param name="areConceptsMutuallyExclusive">are concepts mutually exclusive</param> /// <param name="isEnvironmentClosed">is environment closed</param> /// <param name="language">the language</param> public CreateModelRequest(IClarifaiHttpClient httpClient, string modelID, string name = null, IEnumerable <Concept> concepts = null, bool?areConceptsMutuallyExclusive = null, bool?isEnvironmentClosed = null, string language = null) : base(httpClient) { _modelId = modelID; _name = name; _concepts = concepts; _areConceptsMutuallyExclusive = areConceptsMutuallyExclusive; _isEnvironmentClosed = isEnvironmentClosed; _language = language; }
/// <summary> /// Ctor. /// </summary> /// <param name="httpClient">the HTTP client</param> /// <param name="modelID">the model ID</param> /// <param name="imageUrl">the image URL</param> /// <param name="inputID">the input ID</param> /// <param name="outputID">the output ID</param> /// <param name="endUserID">the end user ID</param> /// <param name="sessionID">the session ID</param> /// <param name="concepts">the concepts</param> /// <param name="regions">the regions</param> /// <param name="modelVersionID">the model version ID</param> public ModelFeedbackRequest(IClarifaiHttpClient httpClient, string modelID, string imageUrl, string inputID, string outputID, string endUserID, string sessionID, IEnumerable <ConceptFeedback> concepts = null, IEnumerable <RegionFeedback> regions = null, string modelVersionID = null) : base(httpClient) { _modelID = modelID; _imageUrl = imageUrl; _inputID = inputID; _outputID = outputID; _endUserID = endUserID; _sessionID = sessionID; _concepts = concepts; _regions = regions; _modelVersionID = modelVersionID; }
/// <summary> /// Ctor. /// </summary> public PublicModels(IClarifaiHttpClient httpClient) { ColorModel = new ColorModel(httpClient, "eeed0b6733a644cea07cf4c60f87ebb7"); ApparelModel = new ConceptModel(httpClient, "e0be3b9d6a454f0493ac3a30784001ff"); FoodModel = new ConceptModel(httpClient, "bd367be194cf45149e75f01d59f77ba7"); GeneralModel = new ConceptModel(httpClient, "aaa03c23b3724a16a56b629203edc62c"); LandscapeQualityModel = new ConceptModel(httpClient, "bec14810deb94c40a05f1f0eb3c91403"); ModerationModel = new ConceptModel(httpClient, "d16f390eb32cad478c7ae150069bd2c6"); NsfwModel = new ConceptModel(httpClient, "e9576d86d2004ed1a38ba0cf39ecb4b1"); PortraitQualityModel = new ConceptModel(httpClient, "de9bd05cfdbf4534af151beb2a5d0953"); TexturesAndPatternsModel = new ConceptModel(httpClient, "fbefb47f9fdb410e8ce14f24f54b47ff"); TravelModel = new ConceptModel(httpClient, "eee28c313d69466f836ab83287a54ed9"); WeddingModel = new ConceptModel(httpClient, "c386b7a870114f4a87477c0824499348"); DemographicsModel = new DemographicsModel(httpClient, "c0c0ac362b03416da06ab3fa36fb58e3"); GeneralEmbeddingModel = new EmbeddingModel(httpClient, "bbb5f41425b8468d9b7a554ff10f8581"); CelebrityModel = new FaceConceptsModel(httpClient, "e466caa0619f444ab97497640cefc4dc"); FaceEmbeddingModel = new FaceEmbeddingModel(httpClient, "d02b4508df58432fbb84e800597b8959"); FaceDetectionModel = new FaceDetectionModel(httpClient, "a403429f2ddf4b49b307e318f00e528b"); FocusModel = new FocusModel(httpClient, "c2cf7cecd8a6427da375b9f35fcd2381"); LogoModel = new LogoModel(httpClient, "c443119bf2ed4da98487520d01a0b1e3"); ApparelVideoModel = new VideoModel(httpClient, "e0be3b9d6a454f0493ac3a30784001ff"); FoodVideoModel = new VideoModel(httpClient, "bd367be194cf45149e75f01d59f77ba7"); GeneralVideoModel = new VideoModel(httpClient, "aaa03c23b3724a16a56b629203edc62c"); NsfwVideoModel = new VideoModel(httpClient, "e9576d86d2004ed1a38ba0cf39ecb4b1"); TravelVideoModel = new VideoModel(httpClient, "eee28c313d69466f836ab83287a54ed9"); WeddingVideoModel = new VideoModel(httpClient, "c386b7a870114f4a87477c0824499348"); }
/// <summary> /// Ctor. /// </summary> /// <param name="httpClient">the HTTP client</param> /// <param name="inputID">the input ID</param> public GetInputRequest(IClarifaiHttpClient httpClient, string inputID) : base(httpClient) { _inputID = inputID; }