Esempio n. 1
0
 private Model(
     Guid id,
     string name,
     string description,
     CultureInfo locale,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     string modelKind,
     Model baseModel,
     IEnumerable <Dataset> datasets,
     IReadOnlyDictionary <string, string> properties,
     Identity project)
 {
     this.Id                 = id;
     this.Name               = name;
     this.CreatedDateTime    = createdDateTime;
     this.LastActionDateTime = lastActionDateTime;
     this.Status             = status;
     this.Description        = description;
     this.Locale             = locale.Name;
     this.ModelKind          = modelKind;
     this.BaseModel          = baseModel;
     this.Datasets           = datasets;
     this.Properties         = properties;
     this.Project            = project;
 }
Esempio n. 2
0
        private VoiceTest(
            Guid id,
            Uri audioUri,
            Uri textUri,
            string voiceTestKind,
            Model model,
            DateTime createdDateTime,
            DateTime lastActionDateTime,
            OneApiState status)
        {
            if (audioUri != null)
            {
                this.AudioUri = audioUri.ToString();
            }

            if (textUri != null)
            {
                this.TextUri = textUri.ToString();
            }

            this.Id = id;
            this.CreatedDateTime    = createdDateTime;
            this.LastActionDateTime = lastActionDateTime;
            this.Status             = status;
            this.Model         = model;
            this.VoiceTestKind = voiceTestKind;
        }
Esempio n. 3
0
 public static Model Create(
     Guid id,
     string name,
     string description,
     CultureInfo locale,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     string modelKind,
     Model baseModel,
     IEnumerable <Dataset> datasets,
     IReadOnlyDictionary <string, string> properties,
     Identity project)
 {
     return(new Model(
                id,
                name,
                description,
                locale,
                createdDateTime,
                lastActionDateTime,
                status,
                modelKind,
                baseModel,
                datasets,
                properties,
                project));
 }
Esempio n. 4
0
 public static Endpoint Create(
     Guid id,
     string endpointKind,
     IEnumerable <Model> models,
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     int concurrentRecognitions,
     bool isContentLoggingEnabled,
     CultureInfo locale,
     IReadOnlyDictionary <string, Uri> endpointUrls,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status)
 {
     return(new Endpoint(
                name,
                description,
                properties,
                locale,
                id,
                createdDateTime,
                lastActionDateTime,
                status,
                endpointKind,
                models,
                concurrentRecognitions,
                isContentLoggingEnabled,
                endpointUrls));
 }
Esempio n. 5
0
 private Endpoint(
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     Guid id,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     string endpointKind,
     IEnumerable <Model> models,
     int concurrentRecognitions,
     bool isContentLoggingEnabled,
     IReadOnlyDictionary <string, Uri> endpointUrls)
 {
     this.Id                      = id;
     this.Name                    = name;
     this.CreatedDateTime         = createdDateTime;
     this.LastActionDateTime      = lastActionDateTime;
     this.Status                  = status;
     this.Description             = description;
     this.Locale                  = locale.Name;
     this.EndpointKind            = endpointKind;
     this.Models                  = models;
     this.ConcurrentRecognitions  = concurrentRecognitions;
     this.IsContentLoggingEnabled = isContentLoggingEnabled;
     this.Properties              = properties;
     this.EndpointUrls            = endpointUrls.ToDictionary(kv => kv.Key, kv => kv.Value.ToString());
 }
 public static BatchSynthesis Create(
     Guid id,
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     Uri resultsUrl,
     Model model,
     string statusMessage)
 {
     return(new BatchSynthesis(
                name,
                description,
                properties,
                locale,
                id,
                createdDateTime,
                lastActionDateTime,
                status,
                resultsUrl,
                model,
                statusMessage));
 }
 private BatchSynthesis(
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     Guid id,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     Uri resultsUrl,
     Model model,
     string statusMessage)
 {
     this.Name               = name;
     this.Description        = description;
     this.Properties         = properties;
     this.Locale             = locale.Name;
     this.Id                 = id;
     this.CreatedDateTime    = createdDateTime;
     this.LastActionDateTime = lastActionDateTime;
     this.Status             = status;
     this.ResultsUrl         = resultsUrl;
     this.Model              = model;
     this.StatusMessage      = statusMessage;
 }
Esempio n. 8
0
 public static Dataset Create(
     Guid id,
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     string dataImportKind)
 {
     return(new Dataset(id, name, description, properties, locale, createdDateTime, lastActionDateTime, status, dataImportKind));
 }
 public static Project Create(
     string self,
     string projectKind,
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     DateTime createdDateTime,
     OneApiState status)
 {
     return(new Project(
                self,
                projectKind,
                name,
                description,
                properties,
                locale,
                createdDateTime));
 }
Esempio n. 10
0
 public static VoiceTest Create(
     Guid id,
     Uri audioUri,
     Uri textUri,
     string voiceTestKind,
     Model model,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status)
 {
     return(new VoiceTest(
                id,
                audioUri,
                textUri,
                voiceTestKind,
                model,
                createdDateTime,
                lastActionDateTime,
                status));
 }
Esempio n. 11
0
 private Dataset(
     Guid id,
     string name,
     string description,
     IReadOnlyDictionary <string, string> properties,
     CultureInfo locale,
     DateTime createdDateTime,
     DateTime lastActionDateTime,
     OneApiState status,
     string dataImportKind)
 {
     this.Id                 = id;
     this.Name               = name;
     this.Description        = description;
     this.Properties         = properties;
     this.Locale             = locale.Name;
     this.CreatedDateTime    = createdDateTime;
     this.LastActionDateTime = lastActionDateTime;
     this.Status             = status;
     this.DataImportKind     = dataImportKind;
 }