Esempio n. 1
0
        internal Silanis.ESL.API.CustomField toAPICustomField() {
            Silanis.ESL.API.CustomField result = new Silanis.ESL.API.CustomField();
    
            result.Id = Id;
            result.Value = Value;
			result.Name = "";
    
            foreach (Translation translation in translations) 
            {
                    result.AddTranslation (translation.toAPITranslation());
            }
    
            return result;
        }
Esempio n. 2
0
        internal Silanis.ESL.API.CustomField toAPICustomField()
        {
            Silanis.ESL.API.CustomField result = new Silanis.ESL.API.CustomField();

            result.Id    = Id;
            result.Value = Value;
            result.Name  = "";

            foreach (Translation translation in translations)
            {
                result.AddTranslation(translation.toAPITranslation());
            }

            return(result);
        }
        public Silanis.ESL.API.CustomField ToAPICustomField()
        {
            if (sdkCustomField == null)
            {
                return(apiCustomField);
            }

            Silanis.ESL.API.CustomField result = new Silanis.ESL.API.CustomField();

            result.Id       = sdkCustomField.Id;
            result.Value    = sdkCustomField.Value;
            result.Name     = "";
            result.Required = sdkCustomField.Required;

            foreach (Translation translation in sdkCustomField.Translations)
            {
                result.AddTranslation(translation.toAPITranslation());
            }

            return(result);
        }
		public Silanis.ESL.API.CustomField ToAPICustomField()
		{
			if (sdkCustomField == null)
			{
				return apiCustomField;
			}

			Silanis.ESL.API.CustomField result = new Silanis.ESL.API.CustomField();

			result.Id = sdkCustomField.Id;
			result.Value = sdkCustomField.Value;
			result.Name = "";
			result.Required = sdkCustomField.Required;

			foreach (Translation translation in sdkCustomField.Translations) 
			{
				result.AddTranslation (translation.toAPITranslation());
			}

			return result;
		}