private static ImageFace CreateImageFace(XElement xmlElement) { return(new ImageFace { FaceKey = XElementParser.ParseIntValue(xmlElement, "face key"), FaceIndex = XElementParser.ParseNullableIntValue(xmlElement, "face index"), Rectangle = ParseRectangle(XElementParser.GetElementForKey(xmlElement, "rectangle")), }); }
private static Face CreateFace(XElement xmlElement) { return(new Face { Key = XElementParser.ParseIntValue(xmlElement, "key"), Name = XElementParser.ParseStringValue(xmlElement, "name"), KeyImage = XElementParser.ParseStringValue(xmlElement, "key image"), KeyImageFaceIndex = XElementParser.ParseNullableIntValue(xmlElement, "key image face index"), PhotoCount = XElementParser.ParseNullableIntValue(xmlElement, "PhotoCount"), Order = XElementParser.ParseNullableIntValue(xmlElement, "Order"), }); }
private static Album CreateAlbum(XElement xmlElement) { return(new Album { AlbumId = XElementParser.ParseIntValue(xmlElement, "AlbumId"), AlbumName = XElementParser.ParseStringValue(xmlElement, "AlbumName"), AlbumType = XElementParser.ParseStringValue(xmlElement, "Album Type"), GUID = XElementParser.ParseStringValue(xmlElement, "GUID"), SortOrder = XElementParser.ParseNullableIntValue(xmlElement, "Sort Order"), KeyList = XElementParser.ParseIntArray(xmlElement, "KeyList"), }); }
private static Roll CreateRoll(XElement xmlElement) { return(new Roll { RollID = XElementParser.ParseIntValue(xmlElement, "RollID"), ProjectUuid = XElementParser.ParseStringValue(xmlElement, "ProjectUuid"), RollName = XElementParser.ParseStringValue(xmlElement, "RollName"), RollDateAsTimerInterval = XElementParser.ParseNullableDoubleValue(xmlElement, "RollDateAsTimerInterval"), KeyPhotoKey = XElementParser.ParseNullableIntValue(xmlElement, "KeyPhotoKey"), PhotoCount = XElementParser.ParseNullableIntValue(xmlElement, "PhotoCount"), KeyList = XElementParser.ParseIntArray(xmlElement, "KeyList"), }); }