Esempio n. 1
0
 /// <summary>
 /// Deserializes the JSON object to a new instance of this class.
 /// </summary>
 /// <param name="client">the Clarifai client</param>
 /// <param name="model">the JSON object</param>
 /// <returns>a new instance</returns>
 public new static LogoModel Deserialize(IClarifaiClient client, dynamic model)
 {
     return(new LogoModel(
                client,
                (string)model.id,
                name: (string)model.name,
                createdAt: (DateTime)model.created_at,
                appID: (string)model.app_id,
                outputInfo: LogoOutputInfo.Deserialize(model.output_info),
                modelVersion: Models.ModelVersion.Deserialize(model.model_version)));
 }
Esempio n. 2
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="client">the Clarifai client</param>
 /// <param name="modelID">the model ID</param>
 /// <param name="name">the model name</param>
 /// <param name="createdAt">date & time of model creation</param>
 /// <param name="appID">the application ID</param>
 /// <param name="modelVersion">the model version</param>
 /// <param name="outputInfo">the output info</param>
 public LogoModel(IClarifaiClient client, string modelID, string name = null,
                  DateTime?createdAt        = null, string appID = null, ModelVersion modelVersion = null,
                  LogoOutputInfo outputInfo = null)
     : base(client, modelID, name, createdAt, appID, modelVersion, outputInfo)
 {
 }