Пример #1
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="languageCode">Language code</param>
        /// <param name="dictionarySequence">Dictionary to be used for system phrases</param>
        /// <param name="descriptionToUse">Description</param>
        /// <param name="region">Enter the region the site will use for times, dates and formatting</param>
        /// <param name="applicationCode">Application code of the application the configuration was built with: SPA=Speaker Management, REG=Registration</param>
        /// <param name="configurationCode">Application sequence</param>
        /// <param name="defaultLanguage">"Y" or "N". Default language to be used when usersland on the site for the first time, using the base link that has no language information predefined.</param>
        /// <returns></returns>
        public PublicLanguagesModel Add(string orgCode,
                                        string languageCode,
                                        int dictionarySequence,
                                        string descriptionToUse,
                                        string region,
                                        string applicationCode,
                                        string configurationCode,
                                        string defaultLanguage)
        {
            PublicLanguagesModel language = new PublicLanguagesModel()
            {
                Organization      = orgCode,
                ApplicationCode   = applicationCode,
                ConfigurationCode = configurationCode,
                Language          = languageCode,
                Dictionary        = dictionarySequence,
                Region            = region,
                DescriptionToUse  = descriptionToUse,
                DefaultLanguage   = defaultLanguage
            };

            return(APIUtil.AddPublicLanguage(USISDKClient, language));
        }