Achamenes.ID3.Frames.OfficialAudioFileUrlFrame.CreateParser C# (CSharp) Method

CreateParser() public static method

public static CreateParser ( ID3v2MajorVersion version, string frameID ) : Achamenes.ID3.Frames.Parsers.FrameParser
version ID3v2MajorVersion
frameID string
return Achamenes.ID3.Frames.Parsers.FrameParser
        public static Achamenes.ID3.Frames.Parsers.FrameParser CreateParser(ID3v2MajorVersion version, string frameID)
        {
            if(version==ID3v2MajorVersion.Version2 && frameID=="WAF")
            {
                return new Parsers.OfficialAudioFileUrlFrameParser();
            }
            if((version==ID3v2MajorVersion.Version3 || version==ID3v2MajorVersion.Version4) && frameID=="WOAF")
            {
                return new Parsers.OfficialAudioFileUrlFrameParser();
            }
            return null;
        }