/// <summary> /// Parse enum values for type CertificateVisibility. /// </summary> /// <param name='value'> /// The value to parse. /// </param> /// <returns> /// The enum value. /// </returns> internal static Common.CertificateVisibility?ParseCertificateVisibility(IList <Protocol.Models.CertificateVisibility> value) { if (value == null) { return(null); } Common.CertificateVisibility flags = CertificateVisibility.None; foreach (Protocol.Models.CertificateVisibility visibility in value) { Common.CertificateVisibility convertedEnum = UtilitiesInternal.MapEnum <Protocol.Models.CertificateVisibility, Common.CertificateVisibility>(visibility); flags |= convertedEnum; } return(flags); }
/// <summary> /// Parse enum values for type CertificateVisibility. /// </summary> /// <param name='value'> /// The value to parse. /// </param> /// <returns> /// The enum value. /// </returns> internal static Common.CertificateVisibility?ParseCertificateVisibility(IList <Protocol.Models.CertificateVisibility?> value) { if (value == null) { return(null); } Common.CertificateVisibility flags = CertificateVisibility.None; foreach (Protocol.Models.CertificateVisibility?visibility in value) { Common.CertificateVisibility?convertedEnum = UtilitiesInternal.MapNullableEnum <Protocol.Models.CertificateVisibility, Common.CertificateVisibility>(visibility); if (convertedEnum.HasValue) { flags |= convertedEnum.Value; } } return(flags); }