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"), }); }