public DataFrame(FrameHeader header) : base(header) { }
public NumericTextFrame(FrameHeader header) : base(header) { }
public BinaryFrame(FrameHeader header) : base(header) { }
public CommentAndLyricsFrame(FrameHeader header) : base(header) { }
public UserDefiniedTextFrame(FrameHeader header) : base(header) { }
public TimestampTextFrame(FrameHeader header) : base(header) { }
public MultiStringTextFrame(FrameHeader header) : base(header) { }
private Frame GetFrame(string id, ID3Version version, FrameHeader header) { FrameID frameID = FrameIDFactory.GetFrameEntry(id, version).ID; switch (frameID) { case FrameID.Length: case FrameID.EncodedBy: //--- case FrameID.Album: case FrameID.Composer: case FrameID.ContentType: case FrameID.CopyrightMessage: case FrameID.TextWriter: case FrameID.FileType: case FrameID.ContentGroupDescription: case FrameID.Title: case FrameID.Subtitle: case FrameID.InitialKey: case FrameID.Languages: case FrameID.MediaType: case FrameID.OriginalAlbum: case FrameID.OriginalFileName: case FrameID.OriginalTextWriter: case FrameID.OriginalArtist: case FrameID.FileOwner: case FrameID.LeadPerformers: //-- case FrameID.Band: case FrameID.Conductor: case FrameID.Interpreted: //remixed case FrameID.PartOfASet: case FrameID.Publisher: case FrameID.TrackNumber: case FrameID.RecordingDates: case FrameID.InternetRadioStationName: case FrameID.InternetRadioStationOwner: case FrameID.ISRC: case FrameID.EncodingSettings: case FrameID.MusicicanCreditsList: case FrameID.InvolvedPeopleList: case FrameID.Mood: case FrameID.ProducedNotice: case FrameID.AlbumSortOrder: case FrameID.PerformerSortOrder: case FrameID.TitleSortOrder: case FrameID.SetSubtitle: return(new MultiStringTextFrame(header)); //multistringtextframe case FrameID.Size: //--- case FrameID.BeatsPerMinute: case FrameID.Date: case FrameID.PlaylistDelay: case FrameID.Time: case FrameID.OriginalReleaseYear: case FrameID.Year: return(new NumericTextFrame(header)); //numerictextframe case FrameID.RecordingTime: case FrameID.OriginalReleaseTime: case FrameID.EncodingTime: case FrameID.ReleaseTime: case FrameID.TaggingTime: return(new TimestampTextFrame(header)); //Timestamptextframe case FrameID.CommercialInformationURL: case FrameID.CopyrightURL: case FrameID.OfficialAudioFileWebpage: case FrameID.OfficialArtistWebpage: case FrameID.OfficialAudioSourceWebpage: case FrameID.InternetRadioStationWebpage: case FrameID.PaymentURL: case FrameID.PublishersOfficialWebpage: return(new TextFrame(header)); //textframe case FrameID.PrivateFrame: case FrameID.UniqueFileIdentifier: return(new DataFrame(header)); case FrameID.MusicCDIdentifier: case FrameID.RecommendedBufferSize: //--- case FrameID.EncryptedMetaData: case FrameID.AudioSeekPointIndex: case FrameID.MPEGLocationLookupTable: case FrameID.SynchronizedTempoCodes: case FrameID.RelativeVolumeAdjustment: case FrameID.RelativeVolumeAdjustmentOld: case FrameID.Equalization: case FrameID.EqualizationOld: return(new BinaryFrame(header)); case FrameID.UserTextInformation: case FrameID.UserURLLinkFrame: return(new UserDefiniedTextFrame(header)); case FrameID.AttachedPicutre: return(new PictureFrame(header, version)); case FrameID.UnsynchronizedLyris: case FrameID.Comments: return(new CommentAndLyricsFrame(header)); case FrameID.TermsOfUse: return(new TermsOfUseFrame(header)); case FrameID.OwnershipFrame: return(new OwnershipFrame(header)); case FrameID.Popularimeter: return(new Popularimeter(header)); } return(null); }
protected Frame(FrameHeader header) { Header = header; }