///<summary>Updates the given bitwise supportedType enum to include onSuccessTransType when jsonFieldValue passes validation.</summary> private static void UpdateSupportedTypes(ref CanSupTransTypes supportedType, EnumNXYZ jsonFieldValue, CanSupTransTypes onSuccessTransType) { //EnumNXYZ.X is supported because it should only ever be given to us if the associated carrier is a version 04 carrier. //Some json carriers report that they support both versions 02 and 04, in this case we always select 04. //If we ever get a version 02 carrier that also returns X then we will need to check the version somewhere around here. supportedType = (jsonFieldValue.In(EnumNXYZ.Y, EnumNXYZ.X)?(supportedType | onSuccessTransType):supportedType); }
///<summary>Updates the given bitwise supportedType enum to include onSuccessTransType when jsonFieldValue passes validation.</summary> private static void UpdateSupportedTypes(CanSupTransTypes supportedType, EnumNXYZ jsonFieldValue, CanSupTransTypes onSuccessTransType) { supportedType = (jsonFieldValue == EnumNXYZ.Y?(supportedType | onSuccessTransType):supportedType); }