コード例 #1
0
        public void init()
        {
            SentenceStructure s = new SentenceStructure
            {
                ID = 1,
                Codes = new List<int> { (int)WordsEnum.City, (int)WordsEnum.You, (int)WordsEnum.Live },
                Text = "What city do you live in?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 2,
                Codes = new List<int> { (int)WordsEnum.You, (int)WordsEnum.Name },
                Text = "What is your name?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 3,
                Codes = new List<int> { (int)WordsEnum.You, (int)WordsEnum.Drive },
                Text = "Can you drive [a car]?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 4,
                Codes = new List<int> { (int)WordsEnum.Age, (int)WordsEnum.You },
                Text = "How old are you?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 5,
                Codes = new List<int> { (int)WordsEnum.You, (int)WordsEnum.Drive, (int)WordsEnum.Bicycle },
                Text = "Can you drive a bicycle?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 6,
                Codes = new List<int> { (int)WordsEnum.What, (int)WordsEnum.You, (int)WordsEnum.Food },
                Text = "What do you want to eat?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID = 7,
                Codes = new List<int> { (int)WordsEnum.You, (int)WordsEnum.Hungry },
                Text = "Are you hungry?"
            };
            this.sentencesDictionary.Add(s);
        }
コード例 #2
0
        public void init()
        {
            SentenceStructure s = new SentenceStructure
            {
                ID    = 1,
                Codes = new List <int> {
                    (int)WordsEnum.City, (int)WordsEnum.You, (int)WordsEnum.Live
                },
                Text = "What city do you live in?"
            };

            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 2,
                Codes = new List <int> {
                    (int)WordsEnum.You, (int)WordsEnum.Name
                },
                Text = "What is your name?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 3,
                Codes = new List <int> {
                    (int)WordsEnum.You, (int)WordsEnum.Drive
                },
                Text = "Can you drive [a car]?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 4,
                Codes = new List <int> {
                    (int)WordsEnum.Age, (int)WordsEnum.You
                },
                Text = "How old are you?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 5,
                Codes = new List <int> {
                    (int)WordsEnum.You, (int)WordsEnum.Drive, (int)WordsEnum.Bicycle
                },
                Text = "Can you drive a bicycle?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 6,
                Codes = new List <int> {
                    (int)WordsEnum.What, (int)WordsEnum.You, (int)WordsEnum.Food
                },
                Text = "What do you want to eat?"
            };
            this.sentencesDictionary.Add(s);

            s = new SentenceStructure
            {
                ID    = 7,
                Codes = new List <int> {
                    (int)WordsEnum.You, (int)WordsEnum.Hungry
                },
                Text = "Are you hungry?"
            };
            this.sentencesDictionary.Add(s);
        }