FlickrNet.VideoInfo.IFlickrParsable C# (CSharp) Méthode

IFlickrParsable() public méthode

public IFlickrParsable ( System reader ) : void
reader System
Résultat void
        void IFlickrParsable.Load(System.Xml.XmlReader reader)
        {
            while (reader.MoveToNextAttribute())
            {
                switch (reader.LocalName)
                {
                    case "ready":
                        Ready = reader.Value == "1";
                        break;
                    case "failed":
                        Failed = reader.Value == "1";
                        break;
                    case "pending":
                        Pending = reader.Value == "1";
                        break;
                    case "duration":
                        if (String.IsNullOrEmpty(reader.Value))
                            Duration = -1;
                        else
                            Duration = reader.ReadContentAsInt();
                        break;
                    case "width":
                        if (String.IsNullOrEmpty(reader.Value))
                            Width = -1;
                        else
                            Width = reader.ReadContentAsInt();
                        break;
                    case "height":
                        if (String.IsNullOrEmpty(reader.Value))
                            Height = -1;
                        else
                            Height = reader.ReadContentAsInt();
                        break;
                    default:
                        UtilityMethods.CheckParsingException(reader);
                        break;
                }
            }

            reader.Read();
        }
    }