Initial Commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
using Meta.WitAi.Json;
|
||||
|
||||
namespace Meta.WitAi.Data.Intents
|
||||
{
|
||||
public class WitIntentData
|
||||
{
|
||||
public WitResponseNode responseNode;
|
||||
|
||||
public string id;
|
||||
public string name;
|
||||
public float confidence;
|
||||
|
||||
public WitIntentData() {}
|
||||
|
||||
public WitIntentData(WitResponseNode node)
|
||||
{
|
||||
FromIntentWitResponseNode(node);
|
||||
}
|
||||
|
||||
public WitIntentData FromIntentWitResponseNode(WitResponseNode node)
|
||||
{
|
||||
WitIntentData result = this;
|
||||
JsonConvert.DeserializeIntoObject(ref result, node);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa212f2366174f8a900d2f10b9402ac9
|
||||
timeCreated: 1646062501
|
||||
Reference in New Issue
Block a user